<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/sys/netinet6, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/sys/netinet6?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/sys/netinet6?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2020-06-22T11:30:23Z</updated>
<entry>
<title>Don't pass a pointer to an uninitialized variable as plenp to</title>
<updated>2020-06-22T11:30:23Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2020-06-22T11:30:23Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=dfec937e4b11c739b114bd6b95c37ea6ed457aa9'/>
<id>urn:sha1:dfec937e4b11c739b114bd6b95c37ea6ed457aa9</id>
<content type='text'>
ip6_hopopts(). The value is tested and non-zero values could cause a
packet to be discarded.

Initialize the pointed at variable to 0, tweaking variable names and
associated comments.

COVERITY 1453098

ok deraadt@ mpi@
</content>
</entry>
<entry>
<title>wireguard can do ipv6, but doesnt do link local addresses.</title>
<updated>2020-06-21T11:32:34Z</updated>
<author>
<name>dlg</name>
<email>dlg@openbsd.org</email>
</author>
<published>2020-06-21T11:32:34Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=8cdd649513bf906e105019216d5d5fc9c59cf957'/>
<id>urn:sha1:8cdd649513bf906e105019216d5d5fc9c59cf957</id>
<content type='text'>
i feel like i should add IFT_L3IPVLAN here so mgre(4) can take
advantage of this too.

from Matt Dunwoodie and Jason A. Donenfeld

ok deraadt@
</content>
</entry>
<entry>
<title>Document the various flavors of NET_LOCK() and rename the reader version.</title>
<updated>2020-05-27T11:19:28Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2020-05-27T11:19:28Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=4d5cbc65b3f249a15784c3b64c2933d8466f7caa'/>
<id>urn:sha1:4d5cbc65b3f249a15784c3b64c2933d8466f7caa</id>
<content type='text'>
Since our last concurrency mistake only ioctl(2) ans sysctl(2) code path
take the reader lock.  This is mostly for documentation purpose as long as
the softnet thread is converted back to use a read lock.

dlg@ said that comments should be good enough.

ok sashan@
</content>
</entry>
<entry>
<title>Do sanity checks in ip6_pullexthdr() preventing a panic in m_copydata(9).</title>
<updated>2020-05-06T07:08:53Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2020-05-06T07:08:53Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=574b3a4fa98da815e768e03fe0bc92c34e9a638c'/>
<id>urn:sha1:574b3a4fa98da815e768e03fe0bc92c34e9a638c</id>
<content type='text'>
An invalid/corrupted hop6 option in rip6_input()/ip6_savecontrol() could
lead m_copydata(9)s' check to trigger a panic.

Fix from maxv@NetBSD where the problem was also reported by syzkaller.

Reported-by: syzbot+3b07b3511b4ceb8bf1e2@syzkaller.appspotmail.com
Reported-by: syzbot+7ee0eb2691d507fcad2e@syzkaller.appspotmail.com

ok sashan@, dlg@, claudio@, deraadt@
</content>
</entry>
<entry>
<title>Assert that ND6 timer is never set for RTF_LOCAL routes.</title>
<updated>2020-04-22T07:51:38Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2020-04-22T07:51:38Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=9a2314e5247f1b2f9fb5b0b1c1ea3a8aa76addc2'/>
<id>urn:sha1:9a2314e5247f1b2f9fb5b0b1c1ea3a8aa76addc2</id>
<content type='text'>
Such routes have a valid link-local entry that should not be overwritten.

The current assert in the timeout routine doesn't give enough information
to know where the bug is, if there is still one.

This should play better with syzkaller.

ok claudio@, visa@ as part of a larger diff
</content>
</entry>
<entry>
<title>Never update the ND entry (cache) corresponding to a RTF_LOCAL route.</title>
<updated>2020-04-22T07:45:31Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2020-04-22T07:45:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=8e6c5245c1d8f965e35007eaa0f907a64f392378'/>
<id>urn:sha1:8e6c5245c1d8f965e35007eaa0f907a64f392378</id>
<content type='text'>
Such route correspond to a locally configured address and the ND6
subsystem expect its link-local address to be always present.

Fix an issue reported by Julian Brost.

ok claudio@, visa@
</content>
</entry>
<entry>
<title>Stop processing packets under non-exclusive (read) netlock.</title>
<updated>2020-04-12T11:56:52Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2020-04-12T11:56:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=3c6c39936460d119f3d0d08761b69e36164ad920'/>
<id>urn:sha1:3c6c39936460d119f3d0d08761b69e36164ad920</id>
<content type='text'>
Prevent concurrency in the socket layer which is not ready for that.

Two recent data corruptions in pfsync(4) and the socket layer pointed
out that, at least, tun(4) was incorrectly using NET_RUNLOCK().  Until
we find a way in software to avoid future mistakes and to make sure that
only the softnet thread and some ioctls are safe to use a read version
of the lock, put everything back to the exclusive version.

ok stsp@, visa@
</content>
</entry>
<entry>
<title>Move ND6_PRIV_* constants from nd6.h to slaacd the only place where</title>
<updated>2020-03-28T16:15:45Z</updated>
<author>
<name>florian</name>
<email>florian@openbsd.org</email>
</author>
<published>2020-03-28T16:15:45Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=4fec1b251c8baa22ae58faaf4d543e8324c13eaf'/>
<id>urn:sha1:4fec1b251c8baa22ae58faaf4d543e8324c13eaf</id>
<content type='text'>
they are used. Nobody in the wider eco system uses these.
While here reduce temporary address valid lifetime to 2 days as per
draft-ietf-6man-rfc4941bis. This should considerably reduce the amount
of addresses configured on an interface - a common complaint.
Original diff from Fernando Gont (fernando AT gont.com.ar), thanks!
Ports tree scanning by sthen@
</content>
</entry>
<entry>
<title>Use strlcpy instead of strncpy to ensure results are NUL terminated.</title>
<updated>2020-03-17T09:53:59Z</updated>
<author>
<name>tobhe</name>
<email>tobhe@openbsd.org</email>
</author>
<published>2020-03-17T09:53:59Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=5c33a6a2c10ae8c83a679a77534448cd35aadfa5'/>
<id>urn:sha1:5c33a6a2c10ae8c83a679a77534448cd35aadfa5</id>
<content type='text'>
ok mpi@
</content>
</entry>
<entry>
<title>Guard SIOCDELMULTI if_ioctl calls with KERNEL_LOCK() where the call is</title>
<updated>2020-03-15T05:34:13Z</updated>
<author>
<name>visa</name>
<email>visa@openbsd.org</email>
</author>
<published>2020-03-15T05:34:13Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=4b9a5ba9326ab6d121f94de858852467809e146d'/>
<id>urn:sha1:4b9a5ba9326ab6d121f94de858852467809e146d</id>
<content type='text'>
made from socket close path. Most device drivers are not MP-safe yet,
and the closing of AF_INET and AF_INET6 sockets is no longer under the
kernel lock.

This fixes a panic seen by jcs@.

OK mpi@
</content>
</entry>
</feed>
