OpenBSD cvs log

created 2021-06-19T22:57:33Z
begin 2021-06-17T00:00:00Z
end 2021-06-18T00:00:00Z
path src/sys
commits 7

date 2021-06-17T00:18:09Z
author dlg
files src/sys/net/if_pfsync.c log diff annotate
message more consistently use pfsync_free_deferral to free the mbuf.

pfsync_free_deferral doesnt need to check pd_m for NULL before
calling m_freem because m_freem does that anyway.

if pf_setup_pdesc in pfsync_undefer_notify failed, the mbuf was
freed but the pd_m pointer was not cleared, which would have led
to a double free when pfsync_free_deferral tried to do the same
thing for it.

if pfsync_undefer is supposed to drop the mbuf, let pfsync_free_deferral
do it for us.

ok jmatthew@

date 2021-06-17T09:29:01Z
author kettenis
files src/sys/dev/mii/miidevs log diff annotate
message Add Broadcom BCM5725. Based on a diff from Brad Smith.

ok jsg@

date 2021-06-17T09:29:36Z
author kettenis
files src/sys/dev/mii/miidevs.h log diff annotate
message regen

date 2021-06-17T09:30:32Z
author kettenis
files src/sys/dev/mii/brgphy.c log diff annotate
message Add BCM5725 support. Based on a diff from Brad Smith.

ok jsg@

date 2021-06-17T16:09:08Z
author kettenis
files src/sys/arch/riscv64/include/setjmp.h log diff annotate
message On OpenBSD _JBLEN is the number of slots (of type long) in jmp_buf.
We don't need 256 slots, so change it to 32 which leaves us with a few
spare slots and is probably what was intended.

This fixes building emacs which does some insane setjmp(3)/longjmp(3)
stuff and gets upset when jmp_buf is 2048 bytes.

ok deraadt@

date 2021-06-17T16:10:39Z
author mpi
files src/sys/uvm/uvm_map.c log diff annotate
message Revert previous: unref of amap outside of the KERNEL_LOCK().

This change introduced or exposed a leak of anons which result in system
freezes.

anton@ observed a high number of INUSE for anonpl and semarie@ saw multiple
processes waiting in the fault handler on "flt_noramX" probably the one
related to allocating an anon.

date 2021-06-17T16:10:50Z
author kettenis
files src/sys/arch/riscv64/conf/GENERIC log diff annotate
src/sys/arch/riscv64/conf/RAMDISK log diff annotate
src/sys/arch/riscv64/conf/files.riscv64 log diff annotate
src/sys/arch/riscv64/dev/sfclock.c log diff annotate
message Add sfclock(4), a driver for the PRCI (Power Reset Clocking Interrupt) block
of the SiFive FU740 SoC.

ok deraadt@