<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/sys/uvm, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/sys/uvm?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/sys/uvm?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2020-05-23T06:15:09Z</updated>
<entry>
<title>Prevent km_alloc() from returning garbage if pagelist is empty.</title>
<updated>2020-05-23T06:15:09Z</updated>
<author>
<name>jan</name>
<email>jan@openbsd.org</email>
</author>
<published>2020-05-23T06:15:09Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=ede08b286d5ed515ff3655d12e9b9ee3f69054c7'/>
<id>urn:sha1:ede08b286d5ed515ff3655d12e9b9ee3f69054c7</id>
<content type='text'>
ok bluhm@, visa@
</content>
</entry>
<entry>
<title>Document uvmexp.nswget without relying on implementation details.</title>
<updated>2020-04-23T07:57:27Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2020-04-23T07:57:27Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=4334c9128c07ac5e3b1f7102606c103368919cf2'/>
<id>urn:sha1:4334c9128c07ac5e3b1f7102606c103368919cf2</id>
<content type='text'>
Prompted by a question from schwarze@

ok deraadt@, schwarze@, visa@
</content>
</entry>
<entry>
<title>Tweak the code that wakes up uvm_pmalloc sleepers in the page daemin.</title>
<updated>2020-04-04T22:08:02Z</updated>
<author>
<name>kettenis</name>
<email>kettenis@openbsd.org</email>
</author>
<published>2020-04-04T22:08:02Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=4ed81bdbc74603870c9a88f2f51b98d7c64db3a6'/>
<id>urn:sha1:4ed81bdbc74603870c9a88f2f51b98d7c64db3a6</id>
<content type='text'>
Although there are open questions about whether we should flag failures with
UVM_PMA_FAIL or not, we really should only wake up a sleeper if we unlink
the pma.  For now only do that if pages were actually freed in the requested
region.

Prompted by:

CID 1453061 Logically dead code

which should be fixed by this commit.

ok (and together with) beck@
</content>
</entry>
<entry>
<title>Do not test against NULL a variable which is dereference before that.</title>
<updated>2020-03-25T14:55:14Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2020-03-25T14:55:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=42867869a0aca8567597554fc6534cfb2f2bceee'/>
<id>urn:sha1:42867869a0aca8567597554fc6534cfb2f2bceee</id>
<content type='text'>
CID 1453116

ok kettenis@
</content>
</entry>
<entry>
<title>Use FALLTHROUGH in uvm_total() like it is done in uvm_loadav().</title>
<updated>2020-03-24T15:03:59Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2020-03-24T15:03:59Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=14285caa1dee3b474385578d29bbed53f5e41cb9'/>
<id>urn:sha1:14285caa1dee3b474385578d29bbed53f5e41cb9</id>
<content type='text'>
CID 1453262.
</content>
</entry>
<entry>
<title>Do not count pages mapped as PROT_NONE against the RLIMIT_DATA limit.</title>
<updated>2020-03-04T21:15:38Z</updated>
<author>
<name>kettenis</name>
<email>kettenis@openbsd.org</email>
</author>
<published>2020-03-04T21:15:38Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=003533bf0926d96714c78f5d18235ab424aeb529'/>
<id>urn:sha1:003533bf0926d96714c78f5d18235ab424aeb529</id>
<content type='text'>
Instead count (and check the limit) when their protection gets flipped
from PROT_NONE to something that permits access.  This means that
mprotect(2) may now fail if changing the protection would exceed RLIMIT_DATA.

This helps code (such as Chromium's JavaScript interpreter that reserves
large chunks of address space but populates it sparsely.

ok deraadt@, otto@, kurt@, millert@, robert@
</content>
</entry>
<entry>
<title>Cleanup &lt;sys/kthread.h&gt; and &lt;sys/proc.h&gt; includes.</title>
<updated>2020-02-18T12:13:39Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2020-02-18T12:13:39Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=63cf9471a61d4f7a002fa265fd31e4f833fe840f'/>
<id>urn:sha1:63cf9471a61d4f7a002fa265fd31e4f833fe840f</id>
<content type='text'>
Do not include &lt;sys/kthread.h&gt; where it is not needed and stop including
&lt;sys/proc.h&gt; in it.

ok visa@, anton@
</content>
</entry>
<entry>
<title>struct vops is not modified during runtime so use const which moves each</title>
<updated>2020-01-20T23:21:55Z</updated>
<author>
<name>claudio</name>
<email>claudio@openbsd.org</email>
</author>
<published>2020-01-20T23:21:55Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=2d6b9e38f30a31b6aa3a85df5a94059bc694a80e'/>
<id>urn:sha1:2d6b9e38f30a31b6aa3a85df5a94059bc694a80e</id>
<content type='text'>
into read-only data segment.
OK deraadt@ tedu@
</content>
</entry>
<entry>
<title>Use list for freeing pages in uvn_flush() to optimize freeing chunks of</title>
<updated>2020-01-16T15:35:22Z</updated>
<author>
<name>kettenis</name>
<email>kettenis@openbsd.org</email>
</author>
<published>2020-01-16T15:35:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=cded8e25bc6bc6fb4ec6d24fd0b8cc54aa7ef9d9'/>
<id>urn:sha1:cded8e25bc6bc6fb4ec6d24fd0b8cc54aa7ef9d9</id>
<content type='text'>
contiguous pages.

ok beck@
</content>
</entry>
<entry>
<title>Add uvm_anfree_list() to free anons as a list of pages. Use this in</title>
<updated>2020-01-04T16:17:29Z</updated>
<author>
<name>beck</name>
<email>beck@openbsd.org</email>
</author>
<published>2020-01-04T16:17:29Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=39ee22840c2ed3473c6f7a59d1f1db78a5a61297'/>
<id>urn:sha1:39ee22840c2ed3473c6f7a59d1f1db78a5a61297</id>
<content type='text'>
the amap code to free pages as a list instead of one at a time to
allow for more efficient freeing.

Most of the work done at elk lakes, with testing by me and mlarkin
and kettenis. Speeds up a test program which zeros a big pile of memory
and then exits considerably.

ok kettenis@
</content>
</entry>
</feed>
