OpenBSD cvs log

created 2020-02-07T02:19:07Z
begin 2020-02-01T00:00:00Z
end 2020-02-02T00:00:00Z
path src/sys
commits 5

date 2020-02-01T08:57:27Z
author anton
files src/sys/kern/kern_descrip.c log diff annotate
src/sys/kern/sys_generic.c log diff annotate
src/sys/sys/file.h log diff annotate
src/sys/sys/sysctl.h log diff annotate
message Make writes to the f_flag field of `struct file' MP-safe using atomic
operations. Since the type of f_flag must change in order to use the
atomic(9) API, reorder the struct in order to avoid padding; as pointed
out by tedu@.

ok mpi@ visa@

date 2020-02-01T10:27:40Z
author jmatthew
files src/sys/net/if_vlan.c log diff annotate
message replace vlan instance SRP lists with SMR_SLISTs

As vlan instances obtained from the lists are passed to if_vinput(), which
may sleep (with PF locking enabled), we only traverse the vlan lists inside
the SMR critical section, and keep the existing reference counting in place.

ok visa@ sashan@

date 2020-02-01T15:06:21Z
author anton
files src/sys/kern/kern_sig.c log diff annotate
src/sys/kern/sys_pipe.c log diff annotate
message Grab the kernel lock in pgsigio() as it's strictly needed while
operating on the process structure and issuing signals. This is similar
to what sigio_setown() already does.

With this in place, the pipe subsystem is no longer required to grab the
kernel lock before calling pgsigio().

ok visa@

date 2020-02-01T15:52:34Z
author anton
files src/sys/kern/kern_sig.c log diff annotate
src/sys/kern/sys_pipe.c log diff annotate
message Back out previous. Nothing wrong with the diff per se but I should have
asked for more oks; my bad!

date 2020-02-01T23:09:46Z
author deraadt
files src/sys/arch/arm64/arm64/locore.S log diff annotate
message Also insert two nop instructions after svc instructions for SYS_exit
and SYS_sigreturn in the sigtramp. As these control-flow into a jump
or process termination, we never do the +8 dance over the
instructions, however the speculation prevention (once these nops are
replaced with a speculation barrier) is required.
oversight noticed by Anthony Steinhauser.