<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/sys/kern/kern_sysctl.c, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/sys/kern/kern_sysctl.c?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/sys/kern/kern_sysctl.c?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2020-06-22T02:45:18Z</updated>
<entry>
<title>there's not going to be any whole kernel wide network livelocks soon.</title>
<updated>2020-06-22T02:45:18Z</updated>
<author>
<name>dlg</name>
<email>dlg@openbsd.org</email>
</author>
<published>2020-06-22T02:45:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=0de7037a968aa89f7ec4dba4389f41679183f182'/>
<id>urn:sha1:0de7037a968aa89f7ec4dba4389f41679183f182</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rndvar.h not needed here</title>
<updated>2020-05-29T01:22:53Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2020-05-29T01:22:53Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=416e7f624d7c7e736f2321f05d8daf48d6111744'/>
<id>urn:sha1:416e7f624d7c7e736f2321f05d8daf48d6111744</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Return EINVAL for KERN_PROC if the size parameter is 0.</title>
<updated>2020-03-09T19:59:53Z</updated>
<author>
<name>millert</name>
<email>millert@openbsd.org</email>
</author>
<published>2020-03-09T19:59:53Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=5ce64eef948c7f368c4a2f4130eb9e9b2fe88b1a'/>
<id>urn:sha1:5ce64eef948c7f368c4a2f4130eb9e9b2fe88b1a</id>
<content type='text'>
Prevents a panic due to a NULL dereference; Coverity CID 1452899.
Based on a diff from mpi@, OK deraadt@ kettenis@
</content>
</entry>
<entry>
<title>New `kern.allowdt' button must be set to open(2) /dev/dt.</title>
<updated>2020-01-24T14:00:31Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2020-01-24T14:00:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c4318b7540a1c4c503732a1e40da9aaf95e3d46b'/>
<id>urn:sha1:c4318b7540a1c4c503732a1e40da9aaf95e3d46b</id>
<content type='text'>
dt(4) exposes kernel internals, addresses and content of states to
userland.  As such its interface shouldn't be available without
enabling it consciously.

ok millert@, deraadt@
</content>
</entry>
<entry>
<title>Exclude offline cpus in KERN_CPTIME calculation. Without this too high</title>
<updated>2020-01-02T08:52:53Z</updated>
<author>
<name>claudio</name>
<email>claudio@openbsd.org</email>
</author>
<published>2020-01-02T08:52:53Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=6a2219e047a6bf62e09a0b176cd153e00effe3c9'/>
<id>urn:sha1:6a2219e047a6bf62e09a0b176cd153e00effe3c9</id>
<content type='text'>
idle time is reported in tools like vmstat.
OK visa@ benno@ krw@
</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>struct proc: change ps_start from utc time to uptime</title>
<updated>2019-10-22T21:19:22Z</updated>
<author>
<name>cheloha</name>
<email>cheloha@openbsd.org</email>
</author>
<published>2019-10-22T21:19:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=fe57de6bf86372f8c8b447012d1d082826b5f1c4'/>
<id>urn:sha1:fe57de6bf86372f8c8b447012d1d082826b5f1c4</id>
<content type='text'>
Allows us to determine how long a process has been running, even if the
UTC clock jumps.

With help from bluhm@ and millert@, who squashed several bugs.

ok bluhm@ millert@
</content>
</entry>
<entry>
<title>sysctl(2): add kern.utc_offset: successor to the DST/TIMEZONE options(4)</title>
<updated>2019-08-21T20:44:09Z</updated>
<author>
<name>cheloha</name>
<email>cheloha@openbsd.org</email>
</author>
<published>2019-08-21T20:44:09Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=db1dd8d3f33835b58b53ec8a2619245839b6c1bf'/>
<id>urn:sha1:db1dd8d3f33835b58b53ec8a2619245839b6c1bf</id>
<content type='text'>
The DST and TIMEZONE options(4) are incompatible with KARL, so we need
some other way to compensate for an RTC running with a known offset.

Enter kern.utc_offset, an offset in minutes East of UTC.  TIMEZONE has
always been minutes West, but this is inconsistent with how everyone
else talks about timezones, hence the flip.

TIMEZONE has the advantage of being compiled into the binary.  Our new
sysctl(2) has no such luck, so it needs to be set as early as possible
in boot, from sysctl.conf(5), so we can correct the kernel clock from
the RTC's local time to UTC before daemons like ntpd(8) and cron(8)
start.  To encourage this, kern.utc_offset is made immutable after the
securelevel(7) is raised to 1.

Prompted by yasuoka@.  Discussed with deraadt@, kettenis@, yasuoka@.
Additional testing by yasuoka@.

ok deraadt@, yasuoka@
</content>
</entry>
<entry>
<title>Allow concurrent reads of the f_offset field of struct file by</title>
<updated>2019-08-05T08:35:59Z</updated>
<author>
<name>anton</name>
<email>anton@openbsd.org</email>
</author>
<published>2019-08-05T08:35:59Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=836f297b392ea9a1d38b1ff0cf70716087e44f8a'/>
<id>urn:sha1:836f297b392ea9a1d38b1ff0cf70716087e44f8a</id>
<content type='text'>
serializing both read/write operations using the existing file mutex.
The vnode lock still grants exclusive write access to the offset; the
mutex is only used to make the actual write atomic and prevent any
concurrent reader from observing intermediate values.

ok mpi@ visa@
</content>
</entry>
<entry>
<title>Prevent integer overflow in kernel and userland when checking mbuf</title>
<updated>2019-07-16T17:39:02Z</updated>
<author>
<name>bluhm</name>
<email>bluhm@openbsd.org</email>
</author>
<published>2019-07-16T17:39:02Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=9392a7356dcbb9aa55ba792313ca7916e2904c2b'/>
<id>urn:sha1:9392a7356dcbb9aa55ba792313ca7916e2904c2b</id>
<content type='text'>
limits.  Convert kernel variables and calculations for mbuf memory
into long to allow larger values on 64 bit machines.  Put a range
check into the kernel sysctl.  For the interface itself int is still
sufficient.  In netstat -m cast all multiplications to unsigned
long to hold the product of two unsigned int.
input and OK visa@
</content>
</entry>
</feed>
