OpenBSD cvs log

created 2022-03-13T00:09:52Z
begin 2022-03-10T00:00:00Z
end 2022-03-11T00:00:00Z
path src/sys
commits 6

date 2022-03-10T10:30:10Z
author hastings
files src/sys/dev/acpi/pchgpio.c log diff annotate
message Add support for Sunrisepoint-H and Sunrisepoint-LP platforms.

Also mask unhandled interrupts like we do in amdgpio(4).

ok kettenis@, deraadt@

date 2022-03-10T10:46:56Z
author mpi
files src/sys/uvm/uvm_page.c log diff annotate
message Do not clear the PG_BUSY flag before passing the anon to uvm_anon_release().

Should prevent a KASSERT() from tiggering when freeing an anon after swaping-out
its memory.

This code path has been broken since at least January 2021 and is apparently not
so easy to trigger.

Found the hard way by sthen@

ok kettenis@, kn@

date 2022-03-10T11:35:13Z
author jmatthew
files src/sys/dev/pci/if_aq_pci.c log diff annotate
message Invalidate the nic's rx descriptor cache when taking the interface up
or down, and turn off the global tx and rx enables when going down.
Without this, the nic can write to mbufs that were taken off the ring
when the interface was taken down, triggering mbuf cluster pool use
after free checks.

ok dlg@

date 2022-03-10T14:12:40Z
author bluhm
files src/sys/sys/atomic.h log diff annotate
message Provide atomic load and store functions for int and long. FreeBSD
also uses these names. This implements a complete interface for
atomic operations, such functions can be used for every access.
They provide compiler barriers, but no CPU memory barriers. This
is consistent with our other atomic operations.
OK mvs@ visa@

date 2022-03-10T15:21:08Z
author bluhm
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwx.c log diff annotate
src/sys/kern/kern_synch.c log diff annotate
src/sys/netinet/ip_ipsp.c log diff annotate
src/sys/sys/proc.h log diff annotate
src/sys/sys/refcnt.h log diff annotate
message Use atomic load and store functions to access refcnt and wait
variables. Although not necessary everywhere, using atomic functions
exclusively for variables marked as atomic is clearer.
OK mvs@ visa@

date 2022-03-10T21:00:51Z
author bluhm
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwx.c log diff annotate
message KASSERT should not contain memory barriers as they change behavior.
Read the integer values without atomic operations.
OK kettenis@