<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/libexec, branch master</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/libexec?h=master</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/libexec?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2021-03-16T18:03:06Z</updated>
<entry>
<title>On i386 don't attempt to map shared libraries in low memory when</title>
<updated>2021-03-16T18:03:06Z</updated>
<author>
<name>kurt</name>
<email>kurt@openbsd.org</email>
</author>
<published>2021-03-16T18:03:06Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=0458707b7ef7291748979ef4c9b23cab3a6812ff'/>
<id>urn:sha1:0458707b7ef7291748979ef4c9b23cab3a6812ff</id>
<content type='text'>
a large executable's .text section crosses the 512MB exec line.

Executables that have MAXTSIZ &gt; 64MB can map above the default
512MB exec line. When this happens, shared libs that attempt to map
into low memory will find their .data section can not be mapped. ld.so
will attempt to remap the share lib at higher addresses until it can be
mapped. For very large executables like chrome this process is very
time consuming. This change detects how much of the executable's
.text section exceeds 512MB and uses that as the initial hint for
shared libs to map into which avoids attempting to map into blocked
memory.

okay deraadt@
</content>
</entry>
<entry>
<title>Check auth_mkvalue(3) return value for NULL (malloc failure).</title>
<updated>2021-01-02T20:32:20Z</updated>
<author>
<name>millert</name>
<email>millert@openbsd.org</email>
</author>
<published>2021-01-02T20:32:20Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=07817e4bdc8b6868189ab279749fa0d1c77e97fb'/>
<id>urn:sha1:07817e4bdc8b6868189ab279749fa0d1c77e97fb</id>
<content type='text'>
For constant strings we don't actually need to use auth_mkvalue(3).
Problem reported by Ross L Richardson.
</content>
</entry>
<entry>
<title>We know about optreset from unistd.h.</title>
<updated>2020-12-27T15:11:04Z</updated>
<author>
<name>florian</name>
<email>florian@openbsd.org</email>
</author>
<published>2020-12-27T15:11:04Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=f06172036150138dcae26d68a3531f0cba729ca9'/>
<id>urn:sha1:f06172036150138dcae26d68a3531f0cba729ca9</id>
<content type='text'>
From Jan Stary, thanks.
OK martijn
</content>
</entry>
<entry>
<title>Fix a nasty mem leak in ld.so's own malloc. This was hard to diagnose, since</title>
<updated>2020-12-26T13:17:33Z</updated>
<author>
<name>otto</name>
<email>otto@openbsd.org</email>
</author>
<published>2020-12-26T13:17:33Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=e85425675158b0b3305d1dde748135080ca0b921'/>
<id>urn:sha1:e85425675158b0b3305d1dde748135080ca0b921</id>
<content type='text'>
malloc dumping and gdb do not help at all when studying ld.so. In the end
it turns out ot be a simple merge error causing extra mmap calls.
ok miller@ tb@
</content>
</entry>
<entry>
<title>Add retguard to macppc kernel locore.S, ofwreal.S, setjmp.S</title>
<updated>2020-11-28T19:49:30Z</updated>
<author>
<name>gkoehler</name>
<email>gkoehler@openbsd.org</email>
</author>
<published>2020-11-28T19:49:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=15572fcf8c6bfa0588565cd23f393a5a1499ea57'/>
<id>urn:sha1:15572fcf8c6bfa0588565cd23f393a5a1499ea57</id>
<content type='text'>
This changes RETGUARD_SETUP(ffs) to RETGUARD_SETUP(ffs, %r11, %r12)
and RETGUARD_CHECK(ffs) to RETGUARD_CHECK(ffs, %r11, %r12)
to show that r11 and r12 are in use between setup and check, and to
pick registers other than r11 and r12 in some kernel functions.

ok mortimer@ deraadt@
</content>
</entry>
<entry>
<title>Retguard asm macros for powerpc libc, ld.so</title>
<updated>2020-10-26T22:07:05Z</updated>
<author>
<name>gkoehler</name>
<email>gkoehler@openbsd.org</email>
</author>
<published>2020-10-26T22:07:05Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=d2c5a4743fb945f45b034a3a830a96f7e1bc695d'/>
<id>urn:sha1:d2c5a4743fb945f45b034a3a830a96f7e1bc695d</id>
<content type='text'>
Add retguard to some, but not all, asm functions in libc.  Edit SYS.h
in libc to remove the PREFIX macros and add SYSENTRY (more like
aarch64 and powerpc64), so we can insert RETGUARD_SETUP after
SYSENTRY.  Some .S files in this commit don't get retguard, but do
stop using the old prefix macros.

Tested by deraadt@, who put this diff in a macppc snap.
</content>
</entry>
<entry>
<title>Use the retguard macros from asm.h to protect the system call stubs.</title>
<updated>2020-10-16T23:42:53Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2020-10-16T23:42:53Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=ac44ab0d128055f2f7e7b4411beb86f83c6eb8ff'/>
<id>urn:sha1:ac44ab0d128055f2f7e7b4411beb86f83c6eb8ff</id>
<content type='text'>
ok mortimer kettenis
</content>
</entry>
<entry>
<title>make three mib[] arrays const, as was done in libc</title>
<updated>2020-10-15T04:12:43Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2020-10-15T04:12:43Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=fa3953dbf8c403a63d907c49154e9f1a9a6d638c'/>
<id>urn:sha1:fa3953dbf8c403a63d907c49154e9f1a9a6d638c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't skip file systems just because the parent fs is nodev and nosuid.</title>
<updated>2020-10-11T18:28:17Z</updated>
<author>
<name>millert</name>
<email>millert@openbsd.org</email>
</author>
<published>2020-10-11T18:28:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=14dbc6804011bf8bc03e02f7e0718c4149b8a1bf'/>
<id>urn:sha1:14dbc6804011bf8bc03e02f7e0718c4149b8a1bf</id>
<content type='text'>
Fixes instances where a mount point uses the nodev and nosuid options
but another file system mounted inside that hierarchy does not.
OK schwarze@
</content>
</entry>
<entry>
<title>afs, nnpfs, and procfs are no longer supported,</title>
<updated>2020-09-17T06:51:06Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2020-09-17T06:51:06Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=352e64a166b7bb06ff5892484e1670bd431699d7'/>
<id>urn:sha1:352e64a166b7bb06ff5892484e1670bd431699d7</id>
<content type='text'>
so stop looking for them in mount(8) output;
no functional change intended;
OK millert@
</content>
</entry>
</feed>
