OpenBSD cvs log

created 2022-05-14T22:21:14Z
begin 2022-05-12T00:00:00Z
end 2022-05-13T00:00:00Z
path src/sys
commits 8

date 2022-05-12T11:37:57Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
message Add missing AX210/AX211 devices to the device ID matching table.
The driver will now actually match on all those new devices, as intended.

Reported by Guilherme M. Schroeder

date 2022-05-12T12:29:28Z
author stsp
files src/sys/dev/pci/if_iwxvar.h log diff annotate
message Bump IWX_UCODE_SECT_MAX to allow all new AX210/AX211 fw images to be parsed
successfully. Else we get "iwx0: firmware parse error 22, section type 19"
while trying to load iwx-so-a0-gf-a0-67 and iwx-so-a0-gf4-a0-67.

date 2022-05-12T12:48:36Z
author mpi
files src/sys/uvm/uvm_page.c log diff annotate
src/sys/uvm/uvm_page.h log diff annotate
message Introduce uvm_pagedequeue() to reduce code duplication.

ok kettenis@

date 2022-05-12T12:49:31Z
author mpi
files src/sys/uvm/uvm_pdaemon.c log diff annotate
message Consider BUFPAGES_DEFICIT in swap_shortage.

ok beck@

date 2022-05-12T13:33:00Z
author visa
files src/sys/kern/kern_event.c log diff annotate
message kqueue: Fix race condition in knote_remove()

Always fetch the knlist array pointer at the start of every iteration
in knote_remove(). This prevents the use of a stale pointer after
another thread has simultaneously reallocated the kq_knlist array.

Reported and tested by and OK jsing@

date 2022-05-12T13:33:09Z
author mvs
files src/sys/sys/filedesc.h log diff annotate
message Convert `fd_cmask' and `fd_refcnt' types from u_short to 32 bit types.

`fd_cmask' and `fd_refcnt' are 16 bit variables which are protected by
different locks and could be not MP independent on all architectures.
`fd_cmask' modifications already protected by fd_lock' rwlock(9), but
actually we do all access to both variables with kernel lock held. So
convert them both before make `fd_cmask' access without kernel when
umask(2) will be unlocked.

Proposed by bluhm@.

ok deraadt@ bluhm@

date 2022-05-12T16:29:58Z
author claudio
files src/sys/kern/exec_elf.c log diff annotate
message During coredumps only a single thread should be active, check this
by checking that it is a single threaded process or that ps_single is set.
OK mpi@

date 2022-05-12T21:33:31Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
message Fix setting of HT/VHT bits in rate flags of the iwx(4) Tx command.

Firmware can panic if rate flags ask for HT frames in VHT mode.
Version -67 seems to be ignoring what we set here and works either way.
But -66 and below were unhappy on my AX210 device.

Found while investing a bug report by Guilherme M. Schroeder
Fix tested on AX210 and AX200.