OpenBSD cvs log

created 2021-06-19T22:53:09Z
begin 2021-06-15T00:00:00Z
end 2021-06-16T00:00:00Z
path src/sys
commits 9

date 2021-06-15T05:06:24Z
author dlg
files src/sys/net/if_pfsync.c log diff annotate
message rework pfsync deferal timeout handling.

instead of having a timeout per deferred packet structure, use a
single timeout in pfsync that pulls items off the list of deferred
packets.

this avoids confusion about whether a timeout is handling the defer
or another context owns it. this way round, the context that removes
a defer from the list owns it and is responsible for completing it.

this should fix a panic we hit on the firewalls at work. there's
still another one that needs a fix, but sashan@ has been looking
at it. this might make it simpler to deal with though.

ok sashan@ jmatthew@

date 2021-06-15T05:24:46Z
author dlg
files src/sys/kern/kern_tc.c log diff annotate
src/sys/kern/subr_pool.c log diff annotate
message factor out nsecuptime and getnsecuptime.

these functions were implemented in a bunch of places with comments
saying it should be moved to kern_tc.c when more pop up, and i was
about to add another one. i think it's time to move them to kern_tc.c.

ok cheloa@ jmatthew@

date 2021-06-15T05:24:47Z
author dlg
files src/sys/kern/vfs_sync.c log diff annotate
src/sys/net/bpf.c log diff annotate
src/sys/sys/time.h log diff annotate
message factor out nsecuptime and getnsecuptime.

these functions were implemented in a bunch of places with comments
saying it should be moved to kern_tc.c when more pop up, and i was
about to add another one. i think it's time to move them to kern_tc.c.

ok cheloa@ jmatthew@

date 2021-06-15T08:36:19Z
author dlg
files src/sys/net/if_pfsync.c log diff annotate
message get the uptime before comparing to it.

"that seems kind of important" jmatthew@

date 2021-06-15T09:52:04Z
author matthieu
files src/sys/arch/riscv64/include/vmparam.h log diff annotate
message Increase MAXDSIZ to 16GB. ok kettenis@

date 2021-06-15T10:10:22Z
author dlg
files src/sys/net/if_pfsync.c log diff annotate
message use getnsecuptime instead of getmicrouptime.

working on a uint64_t is easier than remembering how timercmp and
timersub works.

ok jmatthew@

date 2021-06-15T16:35:21Z
author mpi
files src/sys/uvm/uvm_map.c log diff annotate
message Unref/free amaps before grabbing the KERNEL_LOCK().

This is possible now that amaps & anons are protected by a per-map rwlock.

ok kettenis@, jmatthew@

date 2021-06-15T16:38:09Z
author mpi
files src/sys/uvm/uvm_aobj.c log diff annotate
src/sys/uvm/uvm_km.c log diff annotate
src/sys/uvm/uvm_object.h log diff annotate
message Use a macro to assert that given uobjs correspond to anonymous objects.

Reduce the difference with NetBSD.

ok kettenis@

date 2021-06-15T18:42:23Z
author claudio
files src/sys/kern/kern_unveil.c log diff annotate
src/sys/sys/proc.h log diff annotate
message Remove the uvshrink logic and keep the unveil list in the order of insertion.
unveil_lookup() is now doing a dumb linear search. The problem with the
uvshrink logic was that ps_uvpcwd was a pointer into this array and after
compation it pointed to the wrong element. Also future unveil caches would
suffer from the same issue.
OK semarie@