OpenBSD cvs log

created 2020-03-23T22:06:57Z
begin 2020-03-13T00:00:00Z
end 2020-03-14T00:00:00Z
path src/sys
commits 9

date 2020-03-13T00:14:38Z
author kettenis
files src/sys/arch/arm64/arm64/locore.S log diff annotate
message Add speciulation barrier after the last remaining naked ERET instruction.
While the barrier isn't really needed here, it doesn't hurt and having
it there establishes a pattern for people to follow.

idiomatic deraadt@

date 2020-03-13T05:20:07Z
author deraadt
files src/sys/arch/arm64/arm64/syscall.c log diff annotate
message improve comment about the speculation barrier

date 2020-03-13T08:46:50Z
author deraadt
files src/sys/arch/arm/arm/sigcode.S log diff annotate
src/sys/arch/arm/arm/syscall.c log diff annotate
message Anthony Steinhauser reports that 32-bit arm cpus have the same speculation
problems as 64-bit models. All syscall instructions ("swi 0") now have a
nop;nop after them. We make the kernel skip over these when returning, so
that we can (soon) change the nops into a speculation barrier.
ok kettenis

date 2020-03-13T09:25:21Z
author mpi
files src/sys/kern/init_main.c log diff annotate
src/sys/kern/kern_exit.c log diff annotate
src/sys/kern/kern_sig.c log diff annotate
src/sys/sys/signalvar.h log diff annotate
message Rename "sigacts" flag field to avoid conflict with the "process" one.

This shows that atomic_* operations should not be necessery to write
to this field unlike with the process one.

The advantage of using a somewhat-unique prefix for struct member is
moot when multiple definitions use the same prefix :o)

From Amit Kulkarni, ok claudio@

date 2020-03-13T09:30:22Z
author mpi
files src/sys/kern/subr_disk.c log diff annotate
message Simplify logic, the "netboot" interface is always related to `bootdv'.

Logic is hard, so keep only one of two logically equivalent statements.

CID 271085

ok kettenis@, deraadt@, miod@

date 2020-03-13T10:07:01Z
author anton
files src/sys/kern/kern_descrip.c log diff annotate
src/sys/kern/vfs_syscalls.c log diff annotate
src/sys/sys/file.h log diff annotate
src/sys/sys/sysctl.h log diff annotate
message In order to unlock flock(2), make writes to the f_iflags field of struct
file atomic. This also gets rid of the last kernel lock protected field
in the scope of struct file.

ok mpi@ visa@

date 2020-03-13T14:55:46Z
author krw
files src/sys/dev/ic/nvme.c log diff annotate
src/sys/dev/ic/nvmevar.h log diff annotate
message Bump nvme(4) max physio() i/o size to 128K.

date 2020-03-13T15:30:58Z
author patrick
files src/sys/dev/ic/bwfmvar.h log diff annotate
src/sys/dev/sdmmc/if_bwfm_sdio.c log diff annotate
message Recognize BCM43341 as a BCM43340 variant.

From Rob Schmersel

date 2020-03-13T16:35:09Z
author claudio
files src/sys/kern/kern_synch.c log diff annotate
message Initialize sls_sig to 0 and not 1. sls_sig stores the signal number of a
possible signal that was caught during sleep setup. It does not make sense
to have a default of 1 (SIGHUP) for this.
OK visa@ mpi@