<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/sys/kern/sys_process.c, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/sys/kern/sys_process.c?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/sys/kern/sys_process.c?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2020-03-16T11:58:46Z</updated>
<entry>
<title>Keep track of traced child under a list of orphans while they are being</title>
<updated>2020-03-16T11:58:46Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2020-03-16T11:58:46Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=8fb2af3abc3ad848e70f6ddec0c3b4bd7f12e036'/>
<id>urn:sha1:8fb2af3abc3ad848e70f6ddec0c3b4bd7f12e036</id>
<content type='text'>
reparented to a debugger process.

Also re-parent exiting traced processes to their original parent, if it
is still alive, after the debugger has seen the exit status.

Logic comes from FreeBSD pointed out by guenther@.

While here rename proc_reparent() into process_reparent() and get rid of
superfluous checks.

ok visa@
</content>
</entry>
<entry>
<title>Replace p_xstat with ps_xexit and ps_xsig</title>
<updated>2019-12-11T07:30:09Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2019-12-11T07:30:09Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=381e34d2ea89fee5668fcdf23ae079bf0d0c5f37'/>
<id>urn:sha1:381e34d2ea89fee5668fcdf23ae079bf0d0c5f37</id>
<content type='text'>
Convert those to a consolidated status when needed in wait4(), kevent(),
	and sysctl()
Pass exit code and signal separately to exit1()
(This also serves as prep for adding waitid(2))

ok mpi@
</content>
</entry>
<entry>
<title>Return EBUSY for successive PT_TRACE_ME calls.</title>
<updated>2019-11-29T12:43:14Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2019-11-29T12:43:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=6ea2c94dc5510d2446ba66c46e5eb0552f8fc1c5'/>
<id>urn:sha1:6ea2c94dc5510d2446ba66c46e5eb0552f8fc1c5</id>
<content type='text'>
Match FreeBSD and NetBSD.

ok bluhm@, deraadt@, kettenis@
</content>
</entry>
<entry>
<title>Change some returns into gotos, will help keeping the unlocking path</title>
<updated>2018-02-19T09:25:13Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2018-02-19T09:25:13Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=81ab7384db7d136a33b34bb7c02d1664cbc8b31b'/>
<id>urn:sha1:81ab7384db7d136a33b34bb7c02d1664cbc8b31b</id>
<content type='text'>
simpler.  No functional change.

Extracted from a larger diff from guenther@, ok kettenis@
</content>
</entry>
<entry>
<title>Remove almost unused `flags' argument of suser().</title>
<updated>2018-02-19T08:59:52Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2018-02-19T08:59:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=3e6763994aeb80a553b07ba51b1db2c4725c5c88'/>
<id>urn:sha1:3e6763994aeb80a553b07ba51b1db2c4725c5c88</id>
<content type='text'>
The account flag `ASU' will no longer be set but that makes suser()
mpsafe since it no longer mess with a per-process field.

No objection from millert@, ok tedu@, bluhm@
</content>
</entry>
<entry>
<title>Split sys_ptrace() by request type:</title>
<updated>2017-10-14T10:17:08Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2017-10-14T10:17:08Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=391b893f3aa2a6109871423109e2628a975482f9'/>
<id>urn:sha1:391b893f3aa2a6109871423109e2628a975482f9</id>
<content type='text'>
 - control operations: trace_me, attach, detach, step, kill, continue.
   Manipulate process relation/state or send a signal
 - kernel-state get/set: thread list, event mask, trace state.
   About the process and don't require target to be stopped, need copyin/out
 - user-state get/set: memory, register, window cookie.
   Often thread-specific, require target to be stopped, need copyin/out

sys_ptrace() changes to handle request checking, copyin/out to
kernel buffers with size check and zeroing, and dispatching to the
routines above for the real work.  This simplfies the permission checks
and copyin/out handling and will simplify lock handling in the future.

Inspired in part by FreeBSD.
ok mpi@ visa@
</content>
</entry>
<entry>
<title>Uninitialized variable can leak kernel memory.</title>
<updated>2017-07-19T14:17:49Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2017-07-19T14:17:49Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=526159242c6c3b5e2bbe61a7f4fd4054c67a8d71'/>
<id>urn:sha1:526159242c6c3b5e2bbe61a7f4fd4054c67a8d71</id>
<content type='text'>
Found by Ilja Van Sprundel
ok kettenis
</content>
</entry>
<entry>
<title>deSCARGize sys_ptrace()</title>
<updated>2017-01-25T07:35:04Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2017-01-25T07:35:04Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=69271cd299480650bfa7c8aedcd8bc8e86f49e7b'/>
<id>urn:sha1:69271cd299480650bfa7c8aedcd8bc8e86f49e7b</id>
<content type='text'>
ok mpi@
</content>
</entry>
<entry>
<title>Rename pfind(9) into tfind(9) to reflect that it deals with threads.</title>
<updated>2017-01-24T00:58:55Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2017-01-24T00:58:55Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=69e7eddb8e077ffc9654dbfe795f357daa3b9d84'/>
<id>urn:sha1:69e7eddb8e077ffc9654dbfe795f357daa3b9d84</id>
<content type='text'>
While here document prfind(9.

with and ok guenther@
</content>
</entry>
<entry>
<title>Split PID from TID, giving processes a PID unrelated to the TID of their</title>
<updated>2016-11-07T00:26:32Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2016-11-07T00:26:32Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=3b7181b7c198203c21e16e10714f0dfd4fb2302e'/>
<id>urn:sha1:3b7181b7c198203c21e16e10714f0dfd4fb2302e</id>
<content type='text'>
initial thread

ok jsing@ kettenis@
</content>
</entry>
</feed>
