OpenBSD cvs log

created 2020-08-23T07:56:45Z
begin 2020-08-19T00:00:00Z
end 2020-08-20T00:00:00Z
path src/sys
commits 7

date 2020-08-19T10:10:57Z
author mpi
files src/sys/arch/alpha/alpha/trap.c log diff annotate
src/sys/arch/amd64/amd64/trap.c log diff annotate
src/sys/kern/kern_sig.c log diff annotate
message Push KERNEL_LOCK/UNLOCK() dance inside trapsignal().

ok kettenis@, visa@

date 2020-08-19T10:10:58Z
author mpi
files src/sys/arch/arm/arm/fault.c log diff annotate
src/sys/arch/arm/arm/undefined.c log diff annotate
src/sys/arch/arm64/arm64/trap.c log diff annotate
src/sys/arch/hppa/hppa/trap.c log diff annotate
src/sys/arch/i386/i386/trap.c log diff annotate
src/sys/arch/i386/isa/npx.c log diff annotate
src/sys/arch/m88k/m88k/m88100_fp.c log diff annotate
src/sys/arch/m88k/m88k/m88110_fp.c log diff annotate
src/sys/arch/m88k/m88k/trap.c log diff annotate
src/sys/arch/mips64/mips64/fp_emulate.c log diff annotate
src/sys/arch/mips64/mips64/trap.c log diff annotate
src/sys/arch/powerpc/powerpc/trap.c log diff annotate
src/sys/arch/powerpc64/powerpc64/trap.c log diff annotate
src/sys/arch/sparc64/fpu/fpu.c log diff annotate
src/sys/arch/sparc64/sparc64/emul.c log diff annotate
src/sys/arch/sparc64/sparc64/trap.c log diff annotate
message Push KERNEL_LOCK/UNLOCK() dance inside trapsignal().

ok kettenis@, visa@

date 2020-08-19T11:23:59Z
author kn
files src/sys/net/if.c log diff annotate
message Allow SIOCSWGDPID and SIOCSWGMAXFLOW ioctls for non-root

ifconfig(8) detects switch(4) through its unique SIOCSWGDPID ioctl(2) and
further does another switch specific ioctl for the default output regardless
of configuration and/or members.

But since these two ioctls are limited to root, running ifconfig as
unprivileged user makes switch interfaces partially appear as bridge devices
because the detection fails, e.g. STP parameters are shown instead of
datapath id and flow parameters.

ifioctl() limits a list of set/write ioctls to root, but these two read-only
ioctls seem to have been listed by mistake, so remove them to omit the root
check and fix "ifconfig switch" output for unprivileged users.

Feedback from dlg

date 2020-08-19T14:53:39Z
author krw
files src/sys/scsi/cd.c log diff annotate
src/sys/scsi/sd.c log diff annotate
src/sys/scsi/sdvar.h log diff annotate
src/sys/scsi/st.c log diff annotate
message Nuke SDF_DYING, CDF_DYING and ST_DYING flags. Use the scsi_link flag
SDEV_S_DYING instead. Makes it clear that the scsi_link and the [cd|sd|st]
device always agree on their state.

date 2020-08-19T19:22:53Z
author gnezdo
files src/sys/netmpls/mpls.h log diff annotate
src/sys/netmpls/mpls_raw.c log diff annotate
message Convert mpls_sysctl to sysctl_bounded_args

OK claudio@

date 2020-08-19T19:24:03Z
author gnezdo
files src/sys/arch/amd64/amd64/machdep.c log diff annotate
message Use sysctl_bounded_args for simple cases in cpu_sysctl on amd64

deraadt@: fine

date 2020-08-19T22:46:19Z
author krw
files src/sys/scsi/scsi_base.c log diff annotate
src/sys/scsi/scsi_ioctl.c log diff annotate
message Replace last 2 'blah & (flag1 | flag2) == 0' with !ISSET(blah, (flag1 | flag2)).