<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/regress/sys/kern/exec_self, branch master</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/regress/sys/kern/exec_self?h=master</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/regress/sys/kern/exec_self?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2016-03-17T19:40:43Z</updated>
<entry>
<title>Last parameter to execl[e]() functions *must* be cast to a pointer.</title>
<updated>2016-03-17T19:40:43Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2016-03-17T19:40:43Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=534084640310a3b73784adb5e68a3695b1c4a21c'/>
<id>urn:sha1:534084640310a3b73784adb5e68a3695b1c4a21c</id>
<content type='text'>
Just NULL is not good practise as NULL is theoretically allowed to
be an integer rather than a pointer.

Use (char *)NULL consistently instead of scattering a few (char *)0
and (void *)NULL into the mix.

Prompted by and probably ok deraadt@ millert@ kettenis@

Definitely ok mestre@ ratchov@
</content>
</entry>
<entry>
<title>Test for a nasty complication in the exec code.</title>
<updated>2002-08-17T22:58:59Z</updated>
<author>
<name>art</name>
<email>art@openbsd.org</email>
</author>
<published>2002-08-17T22:58:59Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=31bc67ca70481556b6116415c321321e1c04811f'/>
<id>urn:sha1:31bc67ca70481556b6116415c321321e1c04811f</id>
<content type='text'>
What happens is that if an executable tries to exec itself (happens all
the time on the ramdisk, among others) and needs to page in a page from
the data segment (or rodata) it will need to perform a pagein operation
on the vnode that's execing right now. exec keeps that vnode locked and
fails (no deadlock, that part was fixed a long time ago).
</content>
</entry>
</feed>
