<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/lib/libcrypto/arc4random/arc4random_linux.h, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/lib/libcrypto/arc4random/arc4random_linux.h?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/lib/libcrypto/arc4random/arc4random_linux.h?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2019-07-11T10:37:28Z</updated>
<entry>
<title>Using pthread_atfork instead of __register_atfork with uClibc on noMMU</title>
<updated>2019-07-11T10:37:28Z</updated>
<author>
<name>inoguchi</name>
<email>inoguchi@openbsd.org</email>
</author>
<published>2019-07-11T10:37:28Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=d1c464858201e6c951a93a471f75572ea026e2db'/>
<id>urn:sha1:d1c464858201e6c951a93a471f75572ea026e2db</id>
<content type='text'>
uClibc on noMMU doesn't provide __register_atfork().
Reported by redbirdtek on Github issue.
https://github.com/libressl-portable/portable/issues/538

ok bcook@
</content>
</entry>
<entry>
<title>Tighten behavior of _rs_allocate failure for portable arc4random implementations.</title>
<updated>2016-06-30T12:19:51Z</updated>
<author>
<name>bcook</name>
<email>bcook@openbsd.org</email>
</author>
<published>2016-06-30T12:19:51Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=545f6b86ded87dbc7c6e5c5d540edde0277a0fcf'/>
<id>urn:sha1:545f6b86ded87dbc7c6e5c5d540edde0277a0fcf</id>
<content type='text'>
In the event of a failure in _rs_allocate for rsx, we still have a reference to
freed memory for rs on return. Not a huge deal since we subsequently abort in
_rs_init, but it looks strange on its own.

ok deraadt@
</content>
</entry>
<entry>
<title>Calling clone(2) with CLONE_NEWPID yields multiple processes with pid=1.</title>
<updated>2016-01-04T02:04:56Z</updated>
<author>
<name>bcook</name>
<email>bcook@openbsd.org</email>
</author>
<published>2016-01-04T02:04:56Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=16ddbd421970f0a6f0310bb7de7893b213ea14d8'/>
<id>urn:sha1:16ddbd421970f0a6f0310bb7de7893b213ea14d8</id>
<content type='text'>
Work around this particular case by reseeding whenever pid=1, but as guenther@
notes, directly calling clone(2), and then forking to match another pid,
provides other ways to bypass new process detection on Linux.
Hopefully at some point Linux implements something like MAP_INHERIT_ZERO, and
does not invent a corresponding mechanism to subvert it.

Noted by Sebastian Krahmer and the opmsg team.
See http://stealth.openwall.net/crypto/randup.c for a test program.

ok beck@
</content>
</entry>
<entry>
<title>back in september I did the large abstraction refactoring to allow these</title>
<updated>2015-01-15T06:57:18Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2015-01-15T06:57:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=08735ac4b083dc7098339320478e0474aa968b75'/>
<id>urn:sha1:08735ac4b083dc7098339320478e0474aa968b75</id>
<content type='text'>
other systems to fit into the same mold, so add copyright
</content>
</entry>
<entry>
<title>munmap correct object in (extremely unlikely, and effectively terminal)</title>
<updated>2014-08-13T06:04:10Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2014-08-13T06:04:10Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=9e5260cea2dbf4a8ab2e6cd3fe4f738ddee98eb9'/>
<id>urn:sha1:9e5260cea2dbf4a8ab2e6cd3fe4f738ddee98eb9</id>
<content type='text'>
case of failing to map the 2nd object.
found by Paul Maurers
</content>
</entry>
<entry>
<title>Move more OS-specific functionality to arc4random.h headers.</title>
<updated>2014-07-20T20:51:13Z</updated>
<author>
<name>bcook</name>
<email>bcook@openbsd.org</email>
</author>
<published>2014-07-20T20:51:13Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=d976644eacfa6d27cbbf4dafdfa72a873e2f234a'/>
<id>urn:sha1:d976644eacfa6d27cbbf4dafdfa72a873e2f234a</id>
<content type='text'>
Move &lt;sys/mman.h&gt; and raise(SIGKILL) calls to OS-specific headers.
On OpenBSD, move thread_private.h as well to arc4random.h.
On Windows, use TerminateProcess on getentropy failure.

ok deraadt@
</content>
</entry>
<entry>
<title>Move _ARC4_ATFORK handlers from thread_private.h in portable.</title>
<updated>2014-07-19T15:29:25Z</updated>
<author>
<name>bcook</name>
<email>bcook@openbsd.org</email>
</author>
<published>2014-07-19T15:29:25Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=261955e67d9bcfddc8e9852970196ddb69101835'/>
<id>urn:sha1:261955e67d9bcfddc8e9852970196ddb69101835</id>
<content type='text'>
</content>
</entry>
<entry>
<title>move _ARC4_LOCK/UNLOCK primitives from thread_private into OS-specific modules</title>
<updated>2014-07-19T14:34:38Z</updated>
<author>
<name>bcook</name>
<email>bcook@openbsd.org</email>
</author>
<published>2014-07-19T14:34:38Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=2026839cab434a1fcb6dccc5f376cb83c2423517'/>
<id>urn:sha1:2026839cab434a1fcb6dccc5f376cb83c2423517</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fixup typos</title>
<updated>2014-07-19T13:02:28Z</updated>
<author>
<name>bcook</name>
<email>bcook@openbsd.org</email>
</author>
<published>2014-07-19T13:02:28Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=40d5988388806226c206054dd75b4901e56ee9f6'/>
<id>urn:sha1:40d5988388806226c206054dd75b4901e56ee9f6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change _rs_allocate so it can combine the two regions (rs and rsx)</title>
<updated>2014-07-19T00:08:41Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2014-07-19T00:08:41Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=40e6dbbdc23344efa760fda25be954a21633f69b'/>
<id>urn:sha1:40e6dbbdc23344efa760fda25be954a21633f69b</id>
<content type='text'>
into one if a system has an awesome getentropy().  In that case it
is valid to totally throw away the rsx state in the child.  If the
getentropy() is not very good and has a lazy reseed operation, this
combining is a bad idea, and the reseed should probably continue to
use the "something old, something new" mix.  _rs_allocate() can
accomodate either method, but not on the fly.
ok matthew
</content>
</entry>
</feed>
