OpenBSD cvs log

created 2019-01-12T16:13:45Z
begin 2019-01-06T00:00:00Z
end 2019-01-07T00:00:00Z
path src/sys
commits 8

date 2019-01-06T02:15:40Z
author mlarkin
files src/sys/arch/amd64/amd64/pmap.c log diff annotate
message remove some old comments that were inherited from i386 (and wrong)

date 2019-01-06T11:05:09Z
author claudio
files src/sys/netinet/ip_output.c log diff annotate
message Rewrite ip_pcbopts() to fill a fresh mbuf with the ip options instead
of fiddling with the user supplied mbuf and then copy it at the end.
OK visa@

date 2019-01-06T12:59:45Z
author visa
files src/sys/kern/kern_exit.c log diff annotate
src/sys/kern/kern_fork.c log diff annotate
src/sys/kern/kern_resource.c log diff annotate
src/sys/kern/sched_bsd.c log diff annotate
src/sys/sys/proc.h log diff annotate
src/sys/sys/resourcevar.h log diff annotate
message Fix unsafe use of ptsignal() in mi_switch().

ptsignal() has to be called with the kernel lock held. As ensuring the
locking in mi_switch() is not easy, and deferring the signaling using
the task API is not possible because of lock order issues in
mi_switch(), move the CPU time checking into a periodic timer where
the kernel can be locked without issues.

With this change, each process has a dedicated resource check timer.
The timer gets activated only when a CPU time limit is set. Because the
checking is not done as frequently as before, some precision is lost.

Use of timers adapted from FreeBSD.

OK tedu@

Reported-by: [email protected]

date 2019-01-06T14:59:56Z
author kn
files src/sys/dev/softraidvar.h log diff annotate
message Unbreak SR_DEBUG builds

In arch/amd64/amd64/machdep.c r1.239 (21.02.2018) guenther added DPRINTF,
redefining the one from dev/softraidvar.h. softraid(4) has been using
DNPRINTF exclusively since import in 2007, so simply remove the DPRINTF
macro definition from there.

OK krw

date 2019-01-06T18:33:26Z
author kettenis
files src/sys/kern/kern_unveil.c log diff annotate
message Clear ps_uvpcwd when we free ps_uvpaths. Fixes a crash seen by kn@ and me
where ps_uvpcwd obviously contains a dangling pointer.

ok deraadt@, krw@

date 2019-01-06T18:35:55Z
author tedu
files src/sys/kern/kern_pledge.c log diff annotate
message fold a bunch of similar sysctl cases into a switch.
ok deraadt mestre

date 2019-01-06T21:43:19Z
author mlarkin
files src/sys/arch/amd64/include/pmap.h log diff annotate
message Increase L2 PTE reservation for the kernel

Bump the number of L2 page table entries reserved for the kernel from 16
to 64, to allow for larger kernels. This diff was in snaps for 21 days
without any reported fallout.

ok deraadt

date 2019-01-06T22:09:55Z
author deraadt
files src/sys/kern/kern_pledge.c log diff annotate
message the pledge handing for access(2) of /var/run/ypbind.lock is artificially
tough (so that non-YP using developers don't break the tree for YP/LDAP
users). This check failed to handle the newish RPATH+UNVEIL_INSPECT namei
operation.
discovered by florian, ok beck