OpenBSD cvs log

created 2018-11-29T21:32:11Z
begin 2018-06-06T00:00:00Z
end 2018-06-07T00:00:00Z
path src/sys
commits 7

date 2018-06-06T06:47:01Z
author mpi
files src/sys/kern/uipc_socket.c log diff annotate
src/sys/net/pfkeyv2.c log diff annotate
src/sys/net/rtsock.c log diff annotate
message Asseert that a pfkey or routing socket is referenced by a `fp' instead
of calling sofree(), when its PCB is detached.

This is different from TCP which does not always detach `inpcb's from
sockets. In the pfkey & routing case caling sofree() there is a noop
whereas for TCP it's needed to free closed connections.

Having fewer sofree() makes it easier to understand the code and move
the locks down.

ok visa@

date 2018-06-06T06:55:22Z
author mpi
files src/sys/kern/sys_socket.c log diff annotate
src/sys/kern/uipc_socket.c log diff annotate
src/sys/kern/uipc_socket2.c log diff annotate
src/sys/kern/uipc_syscalls.c log diff annotate
src/sys/kern/uipc_usrreq.c log diff annotate
src/sys/miscfs/fifofs/fifo_vnops.c log diff annotate
src/sys/net/bfd.c log diff annotate
src/sys/net/if_pflow.c log diff annotate
src/sys/netinet/in_pcb.c log diff annotate
src/sys/nfs/krpc_subr.c log diff annotate
src/sys/nfs/nfs_socket.c log diff annotate
src/sys/nfs/nfs_syscalls.c log diff annotate
src/sys/sys/socketvar.h log diff annotate
message Pass the socket to sounlock(), this prepare the terrain for per-socket
locking.

ok visa@, bluhm@

date 2018-06-06T07:10:12Z
author mpi
files src/sys/net/pfkeyv2.c log diff annotate
src/sys/net/rtsock.c log diff annotate
message Prefix fields of pfkey & routing PCBs, no functionnal change.

ok visa@, tb@

date 2018-06-06T07:12:51Z
author mpi
files src/sys/net/pfkeyv2.c log diff annotate
message Prefix fields of pfkey & routing PCBs, part 2, no functionnal change.

ok tb@

date 2018-06-06T07:12:52Z
author mpi
files src/sys/net/rtsock.c log diff annotate
message Prefix fields of pfkey & routing PCBs, part 2, no functionnal change.

ok tb@

date 2018-06-06T12:58:05Z
author aoyama
files src/sys/arch/luna88k/luna88k/locore0.S log diff annotate
message Make sure cr17 matches curcpu() on non-MULTIPROCESSOR kernels.

This fixes that luna88k non-MULTIPROCESSOR kernel with option
DIAGNOSTIC (i.e. GENERIC) will hang silently at boot.

That problem had been caused after the addition of a
MUTEX_ASSERT_UNLOCKED check in kprintf() in sys/kern/subr_prf.c
1.95.

The diff is suggested from Miod Vallat, tested it on
non-MULTIPROCESSOR and MULTIPROCESSOR kernels by me.

date 2018-06-06T19:02:38Z
author bluhm
files src/sys/kern/vfs_subr.c log diff annotate
message The function dounmount() traverses the mnt_list in forward direction
to call vfs_busy() for all nested mount points. vfs_stall() called
vfs_busy() in reverser order for all mount points. Change the
direction of the latter to resolve the lock order conflict.
OK visa@