Use `so_lock' to protect key management (PF_KEY) sockets. This can be
authormvs <mvs@openbsd.org>
Wed, 26 May 2021 08:28:34 +0000 (08:28 +0000)
committermvs <mvs@openbsd.org>
Wed, 26 May 2021 08:28:34 +0000 (08:28 +0000)
commit2537beac64567fee2e1bce326e713a4b48960ca9
treeaa1759a722e6c61a4fdd895571fba8bcd2336368
parent4889cc2ae9d464aca16a6ad0d92985957a8e62bf
Use `so_lock' to protect key management (PF_KEY) sockets. This can be
done because we have no cases where one thread should lock two sockets
simultaneously.

tested by yasuoka@

ok bluhm@ markus@
sys/kern/uipc_socket2.c
sys/net/pfkeyv2.c