OpenBSD cvs log

created 2022-07-03T23:58:06Z
begin 2022-06-30T00:00:00Z
end 2022-07-01T00:00:00Z
path src/sys
commits 8

date 2022-06-30T09:38:22Z
author mlarkin
files src/sys/arch/amd64/amd64/pmap.c log diff annotate
message amd64 pmap: Zero out the EPTP on pmap_create

Non-EPT pmaps were picking up old EPTPs from previous owners.
This doesn't cause any problems but makes debugging harder.

ok dv@

date 2022-06-30T13:17:58Z
author dv
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
src/sys/arch/amd64/include/vmmvar.h log diff annotate
message vmm(4): reference count vm's and vcpu's

Unlocking most of vmm last year at k2k21 exposed bugs related to
lifetime management of vm and vcpu objects.

Add reference counts to make sure we don't attempt to teardown vcpu
or vm related objects while a thread is holding a reference. This
also reduces abuse of rwlocks originally intended to protect the
linked lists cleaning things up quite a bit. While here, also
document assumptions on how struct members are protected for the
next brave soul wander in.

ok mlarkin@

date 2022-06-30T13:51:24Z
author mlarkin
files src/sys/arch/amd64/amd64/pmap.c log diff annotate
message amd64/pmap: Change the wording of a panic string

Change a panic string to make the text locatable in the code since there
is another panic with the same text. Helps debugging when the line number
information isn't available.

no functional change.

ok dv

date 2022-06-30T13:54:37Z
author mpi
files src/sys/uvm/uvm_swap.c log diff annotate
message Remove an incorrect KASSERT() introduced in previous.

If uvm_pagermapin() fails that doesn't mean the emergency pages aren't
in use. In OOM situation, a single segment can still be held by an
asynchronous write so the second call to uvm_pagermapin() can fail.

date 2022-06-30T15:35:14Z
author claudio
files src/sys/kern/kern_pledge.c log diff annotate
message Allow sysctl mib CTL_NET.PF_INET6 with a length of 3 in PLEDGE_VMINFO.

This will be used for sysconf(3) and getconf(1) to handle _POSIX_IPV6
without opening a socket.
OK sthen@ deraadt@

date 2022-06-30T15:46:57Z
author anton
files src/sys/arch/amd64/stand/efiboot/exec_i386.c log diff annotate
src/sys/arch/amd64/stand/libsa/exec_i386.c log diff annotate
message As we now have two bios_consdev_t structures, make use of the old one
until the bootstrap populates the new structure.

Found the hard way by Hrvoje Popovski.

ok kettenis@

date 2022-06-30T19:57:40Z
author stsp
files src/sys/dev/ic/bwfm.c log diff annotate
message Fix bwfm(4) crash during detach on USB.

The net80211 stack detach routine can trigger more tasks to be scheduled,
e.g. to delete WPA keys. So let's not free the driver's taskq before
net80211 has been detached.

fixed with and ok by mpi@
Crash reported by mlarkin@ who yanked the USB cable to test our fix.

date 2022-06-30T20:28:42Z
author mpi
files src/sys/uvm/uvm_pager.c log diff annotate
message Reduce allocations and possible failures in uvm_pagermapin/out().

. If a direct map exists use it to map single-page allocations
. Use pmap_kenter_pa() instead of pmap_enter() in all other cases.

This speeds up file-based mmap up to 75% when I/O are performed and it
also reduces possible allocations failtures in the page daemon making
it more stable in OOM situations.

ok kettenis@, beck@