summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2012-04-11 21:17:32 +0000
committerratchov <ratchov@openbsd.org>2012-04-11 21:17:32 +0000
commit61b7370bd47cb392483120c4f811576a0cbc44c7 (patch)
treecc5333d6530e0ec73efed04fb17a51d86861ed01 /sys/kern/kern_fork.c
parentflush the log and abort() if we try to destroy a NULL aproc (diff)
downloadwireguard-openbsd-61b7370bd47cb392483120c4f811576a0cbc44c7.tar.xz
wireguard-openbsd-61b7370bd47cb392483120c4f811576a0cbc44c7.zip
In the "reply" code path, lock the socket while invoking the
write-end code from the read-end code, and don't forget to check if the socket was not destroyed. Fixes very rare random crashes.
Diffstat (limited to 'sys/kern/kern_fork.c')
0 files changed, 0 insertions, 0 deletions