OpenBSD cvs log

created 2021-01-03T15:34:03Z
begin 2020-12-01T00:00:00Z
end 2020-12-02T00:00:00Z
path src/sys
commits 3

date 2020-12-01T11:28:03Z
author sthen
files src/sys/net/wg_noise.c log diff annotate
message bzero the antireplay counter rwlock before rw_init'ing it, not after.
This was triggering a WITNESS detection

witness: lock_object uninitialized: 0xffff800000bcf0d8
Starting stack trace...
witness_checkorder(ffff800000bcf0d8,9,0) at witness_checkorder+0xab
rw_enter_write(ffff800000bcf0c8) at rw_enter_write+0x43
noise_remote_decrypt(ffff800000bcea48,c4992785,0,fffffd80073c89bc,10) at noise_remote_decrypt+0x135
wg_decap(ffff80000054a000,fffffd805f53ac00) at wg_decap+0xda
wg_decap_worker(ffff80000054a000) at wg_decap_worker+0x7a
taskq_thread(ffff80000012d900) at taskq_thread+0x9f

alternating between two lock objects. From Matt Dunwoodie, thanks semarie@
for explanations about witness and looking at the code.

date 2020-12-01T13:40:16Z
author visa
files src/sys/arch/loongson/conf/Makefile.loongson log diff annotate
message Add option to build loongson kernels using clang.

date 2020-12-01T13:56:22Z
author mpi
files src/sys/uvm/uvm_extern.h log diff annotate
src/sys/uvm/uvm_page.c log diff annotate
src/sys/uvm/uvm_pmemrange.c log diff annotate
src/sys/uvm/uvmexp.h log diff annotate
message Turn uvm_pagealloc() mp-safe by checking uvmexp global with pageqlock held.

Use a new flag, UVM_PLA_USERESERVE, to tell uvm_pmr_getpages() that using
kernel reserved pages is allowed.

Merge duplicated checks waking the pagedaemon to uvm_pmr_getpages().

Add two more pages to the amount reserved for the kernel to compensate the
fact that the pagedaemon may now consume an additional page.

Document locking of some uvmexp fields.

ok kettenis@