<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/sys/stand/boot/boot.c, branch jd/simplify-queueing</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/sys/stand/boot/boot.c?h=jd%2Fsimplify-queueing</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/sys/stand/boot/boot.c?h=jd%2Fsimplify-queueing'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2020-06-15T14:43:57Z</updated>
<entry>
<title>align the random buffer so mdrandom() can fill it with register-width</title>
<updated>2020-06-15T14:43:57Z</updated>
<author>
<name>naddy</name>
<email>naddy@openbsd.org</email>
</author>
<published>2020-06-15T14:43:57Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=91bdb1f19a66ebd7f1edbf3def1ae6da94f394d2'/>
<id>urn:sha1:91bdb1f19a66ebd7f1edbf3def1ae6da94f394d2</id>
<content type='text'>
writes without incurring unaligned accesses; ok deraadt@
</content>
</entry>
<entry>
<title>/etc/random.seed reuse can now be detected.  The stat +T bit marks the file</title>
<updated>2020-05-26T13:47:27Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2020-05-26T13:47:27Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=e4a6744d811c9dacc6cbd14518ea6671acce58e9'/>
<id>urn:sha1:e4a6744d811c9dacc6cbd14518ea6671acce58e9</id>
<content type='text'>
(fchmod +T by bootcode, chmod 600 by /etc/rc).  If the seed is reused, and
HWRNG isn't available, the kernel won't get RB_GOODSEED indication...
</content>
</entry>
<entry>
<title>make loadrandom() return 0 for success, -1 for failure.  While here,</title>
<updated>2020-05-25T15:49:41Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2020-05-25T15:49:41Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=a872426c0e19cd2db852b132ac3ba4865f303e4a'/>
<id>urn:sha1:a872426c0e19cd2db852b132ac3ba4865f303e4a</id>
<content type='text'>
relax the fstat() check because the system will have left the file
in the right mode.
ok visa kettenis
</content>
</entry>
<entry>
<title>If either mdrandom() or fwrandom() return 0, set RB_GOODRANDOM</title>
<updated>2020-05-25T15:28:21Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2020-05-25T15:28:21Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=d3cf030a52866b6d79bac7fe33be77150afed39a'/>
<id>urn:sha1:d3cf030a52866b6d79bac7fe33be77150afed39a</id>
<content type='text'>
ok kettenis
</content>
</entry>
<entry>
<title>Use arc4 to bit-spread the 512-byte random buffer over the .openbsd.randomdata</title>
<updated>2019-10-29T02:55:49Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2019-10-29T02:55:49Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=f65494e6b175686dd7c3956310013295142d0607'/>
<id>urn:sha1:f65494e6b175686dd7c3956310013295142d0607</id>
<content type='text'>
section, which has grown a fair bit with the introduction of retguard.
Mortimer discovered the repeated 512-byte sequence as retguard keys, and
this resolves the issue.  (Chacha does not fit on the media, so 1.5K early
drop RC4 is hopefully sufficient in our KARL link universe)
Version crank the bootblocks. sysupgrade -s will install new bootblocks.
ok djm mortimer
</content>
</entry>
<entry>
<title>In the bootblocks, after discovering and opening /bsd.upgrade, fchmod -x</title>
<updated>2019-08-03T15:22:17Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2019-08-03T15:22:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=044dcf883ed02b1363c7ba7b3bffa021c5f0e0e7'/>
<id>urn:sha1:044dcf883ed02b1363c7ba7b3bffa021c5f0e0e7</id>
<content type='text'>
so the file cannot be re-executed upon the next boot.  This provides a
stronger one-shot-upgrade model than the upgrade script's rm /bsd.upgrade.
Now various forms of upgrade failure will reboot into /bsd, which is probably
more recoverable.  Performing fchmod -x depends on (1) use of MI boot.c
(not alpha/macppc/sparc64/sgi/octeon) and (2) "can write blocks" functionality
in the IO layer.  Most architectures have this support now.

Two diagnostics "fchmod a-x %s: failed" and "/bsd.upgrade is not u+x" will
remain in the tree while refinements happen for some of the laggard
architectures.

based upon a discussion florian
tested in snapshots for more than a week without any complaints
</content>
</entry>
<entry>
<title>Unbreak "boot bsd.up" line in /etc/boot.conf</title>
<updated>2019-04-10T19:41:03Z</updated>
<author>
<name>florian</name>
<email>florian@openbsd.org</email>
</author>
<published>2019-04-10T19:41:03Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=3642b21172b7bfac6d68b8419bc035f19e5925a9'/>
<id>urn:sha1:3642b21172b7bfac6d68b8419bc035f19e5925a9</id>
<content type='text'>
Found the hard way by Raf Czlonka (rczlonka AT gmail), thanks!
OK deraadt
</content>
</entry>
<entry>
<title>change marks[] array to uint64_t, so the code can track full 64-bit</title>
<updated>2019-04-10T04:17:31Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2019-04-10T04:17:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=2340cfa57962bd12069f312342c641006c968c28'/>
<id>urn:sha1:2340cfa57962bd12069f312342c641006c968c28</id>
<content type='text'>
details from the ELF header instead of faking it.
Proposal from mlarkin, tested on most architectures already
</content>
</entry>
<entry>
<title>Detect /bsd.upgrade kernel and boot it if present instead of default</title>
<updated>2019-04-08T13:55:46Z</updated>
<author>
<name>florian</name>
<email>florian@openbsd.org</email>
</author>
<published>2019-04-08T13:55:46Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=4eb8cda666a7a5e17c3b5bb32613e7aa022840e0'/>
<id>urn:sha1:4eb8cda666a7a5e17c3b5bb32613e7aa022840e0</id>
<content type='text'>
/bsd. To be used for unattended upgrades in the future.
Idea &amp; OK deraadt
</content>
</entry>
<entry>
<title>Add a hook to use a firmware-supplied random function in addition to the</title>
<updated>2018-04-08T13:24:36Z</updated>
<author>
<name>kettenis</name>
<email>kettenis@openbsd.org</email>
</author>
<published>2018-04-08T13:24:36Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=d975447ccae4114c8837c6b794f3e6b51f8ad53b'/>
<id>urn:sha1:d975447ccae4114c8837c6b794f3e6b51f8ad53b</id>
<content type='text'>
MD-supplied random function to insert entropy into the kernel.

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