<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/sys/kern/sys_socket.c, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/sys/kern/sys_socket.c?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/sys/kern/sys_socket.c?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2020-02-22T11:58:29Z</updated>
<entry>
<title>In preparation for unlocking ioctl(2), grab the kernel lock as needed.</title>
<updated>2020-02-22T11:58:29Z</updated>
<author>
<name>anton</name>
<email>anton@openbsd.org</email>
</author>
<published>2020-02-22T11:58:29Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=60e616d4462a6e14a239d984c6c9a30c8c69bf3b'/>
<id>urn:sha1:60e616d4462a6e14a239d984c6c9a30c8c69bf3b</id>
<content type='text'>
ok kettenis@ mpi@ visa@
</content>
</entry>
<entry>
<title>Unify handling of ioctls FIOSETOWN/SIOCSPGRP/TIOCSPGRP and</title>
<updated>2020-01-08T16:27:40Z</updated>
<author>
<name>visa</name>
<email>visa@openbsd.org</email>
</author>
<published>2020-01-08T16:27:40Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=36b1b8b4dfaf3411193c17c2462937014292f2df'/>
<id>urn:sha1:36b1b8b4dfaf3411193c17c2462937014292f2df</id>
<content type='text'>
FIOGETOWN/SIOCGPGRP/TIOCGPGRP. Do this by determining the meaning of
the ID parameter inside the sigio code. Also add cases for FIOSETOWN
and FIOGETOWN where there have been TIOCSPGRP and TIOCGPGRP before.
These changes allow removing the ID translation from sys_fcntl() and
sys_ioctl().

Idea from NetBSD

OK mpi@, claudio@
</content>
</entry>
<entry>
<title>Constify instances of struct fileops.</title>
<updated>2020-01-05T13:46:02Z</updated>
<author>
<name>visa</name>
<email>visa@openbsd.org</email>
</author>
<published>2020-01-05T13:46:02Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c02bfb27cf5527eb0816ec39aad4db3ad4345c8c'/>
<id>urn:sha1:c02bfb27cf5527eb0816ec39aad4db3ad4345c8c</id>
<content type='text'>
OK anton@, mpi@, bluhm@
</content>
</entry>
<entry>
<title>Utilize sigio with sockets.</title>
<updated>2018-11-19T13:15:37Z</updated>
<author>
<name>visa</name>
<email>visa@openbsd.org</email>
</author>
<published>2018-11-19T13:15:37Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=e22141d5ca3312610ade1c4dcf8713b7639f70a5'/>
<id>urn:sha1:e22141d5ca3312610ade1c4dcf8713b7639f70a5</id>
<content type='text'>
OK mpi@
</content>
</entry>
<entry>
<title>Reorder checks in the read/write(2) family of syscalls to prepare making</title>
<updated>2018-08-20T16:00:22Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2018-08-20T16:00:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=2bd648c0c791046970147cb6db731832ad511740'/>
<id>urn:sha1:2bd648c0c791046970147cb6db731832ad511740</id>
<content type='text'>
file operations mp-safe.

This change makes it clear that `f_offset' is only accessed in vn_read()
and vn_write(), which will help taking it out of the KERNEL_LOCK().

This refactoring uncovered a race in vn_read() which is now documented
and will be addressed in a later diff.

ok visa@
</content>
</entry>
<entry>
<title>Use FNONBLOCK instead of SS_NBIO to check/indicate that the I/O mode</title>
<updated>2018-07-30T12:22:14Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2018-07-30T12:22:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=4a4dc3ea4c4158dccd297c17b5ac5a6ff2af5515'/>
<id>urn:sha1:4a4dc3ea4c4158dccd297c17b5ac5a6ff2af5515</id>
<content type='text'>
for sockets is non-blocking.

This allows us to G/C SS_NBIO.  Having to keep the two flags in sync
in a mp-safe way is complicated.

This change introduce a behavior change in sosplice(), it can now
always block.  However this should not matter much due to the socket
lock being taken beforhand.

ok bluhm@, benno@, visa@
</content>
</entry>
<entry>
<title>Move socket &amp; pipe specific logic in their ioctl handler.</title>
<updated>2018-07-10T08:58:50Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2018-07-10T08:58:50Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=30cae0e11a68544aad56fe31465ffb5607069c7a'/>
<id>urn:sha1:30cae0e11a68544aad56fe31465ffb5607069c7a</id>
<content type='text'>
ok visa@, tb@
</content>
</entry>
<entry>
<title>Pass the socket to sounlock(), this prepare the terrain for per-socket</title>
<updated>2018-06-06T06:55:22Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2018-06-06T06:55:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=34bd5584fb2db3006ff476d7134486452e236076'/>
<id>urn:sha1:34bd5584fb2db3006ff476d7134486452e236076</id>
<content type='text'>
locking.

ok visa@, bluhm@
</content>
</entry>
<entry>
<title>Remove solock() surrounding PRU_CONTROL in soo_ioctl().</title>
<updated>2018-04-26T10:45:45Z</updated>
<author>
<name>pirofti</name>
<email>pirofti@openbsd.org</email>
</author>
<published>2018-04-26T10:45:45Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=443bca7307a1df482d6d2b2a713dd4caf4d284b7'/>
<id>urn:sha1:443bca7307a1df482d6d2b2a713dd4caf4d284b7</id>
<content type='text'>
We do not need the lock there.
Missed this in my former commit pushing NET_LOCK() down the stack.

Found the hard way by naddy@, sorry!

OK mpi@.
</content>
</entry>
<entry>
<title>Convert 'struct fileops' definitions to C99.</title>
<updated>2018-04-10T09:17:45Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2018-04-10T09:17:45Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=e7e081a56a3695c910889f20cba3aa8b6127c262'/>
<id>urn:sha1:e7e081a56a3695c910889f20cba3aa8b6127c262</id>
<content type='text'>
ok millert@, deraadt@, florian@
</content>
</entry>
</feed>
