summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_socket.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2016-12-20 18:33:43 +0000
committerbluhm <bluhm@openbsd.org>2016-12-20 18:33:43 +0000
commit4eb8db84bc9d6a660b66b3f79301db47bc24b926 (patch)
tree0ccaf106b2bfb5c91eb9a0858f2bd9eae444e8c1 /sys/kern/uipc_socket.c
parentIn midiread() and midiwrite(), add a second goto label to (diff)
downloadwireguard-openbsd-4eb8db84bc9d6a660b66b3f79301db47bc24b926.tar.xz
wireguard-openbsd-4eb8db84bc9d6a660b66b3f79301db47bc24b926.zip
A NET_LOCK() was is missing in tcp_sysctl() which shows up as spl
softnet assert failures. It is better to place the lock into net_sysctl() where all the protocol sysctls are called via pr_sysctl. As calling sysctl(2) is in the slow path, doing fine grained locking has no benefit. Many sysctl cases copy out a struct. Having a lock around that keeps the struct consistent. Put assertions in the protocol sysctls that need it. OK mpi@
Diffstat (limited to 'sys/kern/uipc_socket.c')
0 files changed, 0 insertions, 0 deletions