OpenBSD cvs log

created 2019-06-22T11:29:20Z
begin 2019-06-21T00:00:00Z
end 2019-06-22T00:00:00Z
path src/sys
commits 7

date 2019-06-21T08:12:35Z
author kn
files src/sys/arch/sparc64/dev/led.c log diff annotate
message Use timeout_add_msec(9)

The current code wants to wait 1/100 [s] = 10 [ms] but at least one tick,
that's exactly what the millisecond version provides.

OK cheloha mpi claudio

date 2019-06-21T09:39:48Z
author visa
files src/sys/kern/exec_subr.c log diff annotate
src/sys/kern/init_main.c log diff annotate
src/sys/kern/kern_descrip.c log diff annotate
src/sys/kern/kern_exec.c log diff annotate
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/kern_sig.c log diff annotate
src/sys/kern/sys_generic.c log diff annotate
src/sys/kern/vfs_vnops.c log diff annotate
src/sys/sys/proc.h log diff annotate
src/sys/sys/resourcevar.h log diff annotate
src/sys/sys/sysctl.h log diff annotate
src/sys/uvm/uvm_extern.h log diff annotate
message Make resource limit access MP-safe. So far, the copy-on-write sharing
of resource limit structs has been done between processes. By applying
copy-on-write also between threads, threads can read rlimits in
a nearly lock-free manner.

Inspired by code in DragonFly BSD and FreeBSD.

OK mpi@, agreement from jmatthew@ and anton@

date 2019-06-21T09:39:49Z
author visa
files src/sys/uvm/uvm_glue.c log diff annotate
src/sys/uvm/uvm_mmap.c log diff annotate
src/sys/uvm/uvm_unix.c log diff annotate
message Make resource limit access MP-safe. So far, the copy-on-write sharing
of resource limit structs has been done between processes. By applying
copy-on-write also between threads, threads can read rlimits in
a nearly lock-free manner.

Inspired by code in DragonFly BSD and FreeBSD.

OK mpi@, agreement from jmatthew@ and anton@

date 2019-06-21T15:34:06Z
author deraadt
files src/sys/arch/alpha/conf/Makefile.alpha log diff annotate
src/sys/arch/amd64/conf/Makefile.amd64 log diff annotate
src/sys/arch/arm64/conf/Makefile.arm64 log diff annotate
message Further improve the filesystem stability of kernel installation by KARL.
Use install -F to instead of cp, for fsync(2). Coupled with the new
sync(8) in the reorder_kernel script, the window for a incomplete /bsd
file on-disk due to a crash has now shrunk substantially.
Discussion with kettenis, millert and tedu

date 2019-06-21T15:34:07Z
author deraadt
files src/sys/arch/armv7/conf/Makefile.armv7 log diff annotate
src/sys/arch/hppa/conf/Makefile.hppa log diff annotate
src/sys/arch/i386/conf/Makefile.i386 log diff annotate
src/sys/arch/landisk/conf/Makefile.landisk log diff annotate
src/sys/arch/loongson/conf/Makefile.loongson log diff annotate
src/sys/arch/luna88k/conf/Makefile.luna88k log diff annotate
src/sys/arch/macppc/conf/Makefile.macppc log diff annotate
src/sys/arch/octeon/conf/Makefile.octeon log diff annotate
src/sys/arch/sgi/conf/Makefile.sgi log diff annotate
src/sys/arch/sparc64/conf/Makefile.sparc64 log diff annotate
message Further improve the filesystem stability of kernel installation by KARL.
Use install -F to instead of cp, for fsync(2). Coupled with the new
sync(8) in the reorder_kernel script, the window for a incomplete /bsd
file on-disk due to a crash has now shrunk substantially.
Discussion with kettenis, millert and tedu

date 2019-06-21T17:11:42Z
author mpi
files src/sys/net/if_spppsubr.c log diff annotate
src/sys/net/route.c log diff annotate
src/sys/net/route.h log diff annotate
src/sys/net/rtable.c log diff annotate
src/sys/net/rtable.h log diff annotate
src/sys/net/rtsock.c log diff annotate
src/sys/netinet/ip_mroute.c log diff annotate
message Prevent recursions by not deleting entries inside rtable_walk(9).

rtable_walk(9) now passes a routing entry back to the caller when
a non zero value is returned and if it asked for it.
This allows us to call rtdeletemsg()/rtrequest_delete() from the
caller without creating a recursion because of rtflushclone().

Multicast code hasn't been adapted and is still possibly creating
recursions. However multicast route entries aren't cloned so if
a recursion exists it isn't because of rtflushclone().

Fix stack exhaustion triggered by the use of "-msave-args".

Issue reported by Dániel Lévai on bugs@ confirmed by and ok bluhm@.

date 2019-06-21T17:11:43Z
author mpi
files src/sys/netinet6/ip6_mroute.c log diff annotate
src/sys/netinet6/nd6.h log diff annotate
src/sys/netinet6/nd6_rtr.c log diff annotate
message Prevent recursions by not deleting entries inside rtable_walk(9).

rtable_walk(9) now passes a routing entry back to the caller when
a non zero value is returned and if it asked for it.
This allows us to call rtdeletemsg()/rtrequest_delete() from the
caller without creating a recursion because of rtflushclone().

Multicast code hasn't been adapted and is still possibly creating
recursions. However multicast route entries aren't cloned so if
a recursion exists it isn't because of rtflushclone().

Fix stack exhaustion triggered by the use of "-msave-args".

Issue reported by Dániel Lévai on bugs@ confirmed by and ok bluhm@.