<feed xmlns='http://www.w3.org/2005/Atom'>
<title>netbsd/sys/uvm/uvm_swap.c, branch lockdoc-10.99.5-vfs</title>
<subtitle>NetBSD fork for lockdoc analysis</subtitle>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/'/>
<entry>
<title>Reorganize b_cache logging, un-deprecate variable name logging</title>
<updated>2023-08-20T16:36:09+00:00</updated>
<author>
<name>Merlin Scholz</name>
<email>merlin@scholz.ruhr</email>
</author>
<published>2023-08-20T16:36:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=6545533869a1eba7272e380cbf5ca103e9181251'/>
<id>6545533869a1eba7272e380cbf5ca103e9181251</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add logging for buf-&gt;b_cflags BC_BUSY changes</title>
<updated>2023-08-19T17:16:22+00:00</updated>
<author>
<name>Merlin Scholz</name>
<email>merlin@scholz.ruhr</email>
</author>
<published>2023-08-19T17:16:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=e7b3826cda40b7e543318c19b9093dcceb8b4237'/>
<id>e7b3826cda40b7e543318c19b9093dcceb8b4237</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>uvm(9): KASSERT(A &amp;&amp; B) -&gt; KASSERT(A); KASSERT(B)</title>
<updated>2023-04-09T09:00:56+00:00</updated>
<author>
<name>riastradh</name>
<email>riastradh@NetBSD.org</email>
</author>
<published>2023-04-09T09:00:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=8a204295b42e45906660c2dc39d6b343ff5193e7'/>
<id>8a204295b42e45906660c2dc39d6b343ff5193e7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>swap: disallow user opens of swap block device</title>
<updated>2022-12-21T02:28:06+00:00</updated>
<author>
<name>chs</name>
<email>chs@NetBSD.org</email>
</author>
<published>2022-12-21T02:28:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=c46d734a51415e3e3198354b8a3f8725729c538a'/>
<id>c46d734a51415e3e3198354b8a3f8725729c538a</id>
<content type='text'>
the swap/drum block device was never intended to allow user opens,
but when the internal VOP_OPEN() in uvm_swap_init() was added
back in rev 1.135, the d_open method was changed from always-fail
to always-succeed in order to allow the new initial internal open.
this had the side effect of incorrectly allowing user opens too.
fix this by replacing the swap_bdevsw d_open with one that succeeds
for the first call but fails for all subsequent calls.

Reported-by: syzbot+90a23d2f19e5a0a302b3@syzkaller.appspotmail.com</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the swap/drum block device was never intended to allow user opens,
but when the internal VOP_OPEN() in uvm_swap_init() was added
back in rev 1.135, the d_open method was changed from always-fail
to always-succeed in order to allow the new initial internal open.
this had the side effect of incorrectly allowing user opens too.
fix this by replacing the swap_bdevsw d_open with one that succeeds
for the first call but fails for all subsequent calls.

Reported-by: syzbot+90a23d2f19e5a0a302b3@syzkaller.appspotmail.com</pre>
</div>
</content>
</entry>
<entry>
<title>Return immediately from uvm_swap_shutdown() if there are</title>
<updated>2021-08-23T13:08:18+00:00</updated>
<author>
<name>hannken</name>
<email>hannken@NetBSD.org</email>
</author>
<published>2021-08-23T13:08:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=c99998b668b136e64f4452388f10f3493f82e4a6'/>
<id>c99998b668b136e64f4452388f10f3493f82e4a6</id>
<content type='text'>
no (more) swap devices configured.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
no (more) swap devices configured.</pre>
</div>
</content>
</entry>
<entry>
<title>uvm(9): Enable swap encryption by default.</title>
<updated>2021-06-03T20:18:06+00:00</updated>
<author>
<name>riastradh</name>
<email>riastradh@NetBSD.org</email>
</author>
<published>2021-06-03T20:18:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=f4f8e13d1524b64bcb86ea271901e2dea5a50414'/>
<id>f4f8e13d1524b64bcb86ea271901e2dea5a50414</id>
<content type='text'>
For machines where the performance impact of swapping before the
system has an opportunity to process `vm.swap_encrypt=0' in
/etc/sysctl.conf, you can disable it again by adding

options 	VMSWAP_DEFAULT_PLAINTEXT

to the kernel config.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For machines where the performance impact of swapping before the
system has an opportunity to process `vm.swap_encrypt=0' in
/etc/sysctl.conf, you can disable it again by adding

options 	VMSWAP_DEFAULT_PLAINTEXT

to the kernel config.</pre>
</div>
</content>
</entry>
<entry>
<title>avoid taking locks that aren't initialised.</title>
<updated>2021-05-23T00:36:36+00:00</updated>
<author>
<name>mrg</name>
<email>mrg@NetBSD.org</email>
</author>
<published>2021-05-23T00:36:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=a537107c4036da35e579a7f5b09de534c903a6f0'/>
<id>a537107c4036da35e579a7f5b09de534c903a6f0</id>
<content type='text'>
fixes panic when typing 'reboot' at the askroot prompt.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fixes panic when typing 'reboot' at the askroot prompt.</pre>
</div>
</content>
</entry>
<entry>
<title>Consistently use %#jx instead of 0x%jx or just %jx in UVMHIST_LOG formats</title>
<updated>2021-03-13T15:29:55+00:00</updated>
<author>
<name>skrll</name>
<email>skrll@NetBSD.org</email>
</author>
<published>2021-03-13T15:29:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=bde29985357ef29e4ce0ad8336d685a007333a35'/>
<id>bde29985357ef29e4ce0ad8336d685a007333a35</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>When turning off swap during reboot we have to lock with LK_RETRY</title>
<updated>2021-02-19T13:20:43+00:00</updated>
<author>
<name>hannken</name>
<email>hannken@NetBSD.org</email>
</author>
<published>2021-02-19T13:20:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=f44ef1e4b7ef3826d83d1e3fdd8428137abbbf6a'/>
<id>f44ef1e4b7ef3826d83d1e3fdd8428137abbbf6a</id>
<content type='text'>
as regular files got reclaimed during unmount.

Adresses PR kern/54969 (Disk cache is no longer flushed on shutdown)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
as regular files got reclaimed during unmount.

Adresses PR kern/54969 (Disk cache is no longer flushed on shutdown)</pre>
</div>
</content>
</entry>
<entry>
<title>Reorganize uvm_swap_shutdown() a bit, make sure the vnode gets</title>
<updated>2021-02-16T09:56:32+00:00</updated>
<author>
<name>hannken</name>
<email>hannken@NetBSD.org</email>
</author>
<published>2021-02-16T09:56:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=92574d47a65a38794edc32c32b2439cf166c466e'/>
<id>92574d47a65a38794edc32c32b2439cf166c466e</id>
<content type='text'>
locked and referenced across the call to swap_off() and finally
use it from vfs_unmountall1() to remove swap after unmounting
the last file system.

Adresses PR kern/54969 (Disk cache is no longer flushed on shutdown)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
locked and referenced across the call to swap_off() and finally
use it from vfs_unmountall1() to remove swap after unmounting
the last file system.

Adresses PR kern/54969 (Disk cache is no longer flushed on shutdown)</pre>
</div>
</content>
</entry>
</feed>
