The crypto layer needs the kernel lock. ah_zeroize() takes it when
authorbluhm <bluhm@openbsd.org>
Wed, 27 Oct 2021 16:58:44 +0000 (16:58 +0000)
committerbluhm <bluhm@openbsd.org>
Wed, 27 Oct 2021 16:58:44 +0000 (16:58 +0000)
commitc760f44bcb7483af53a4435aa248b0ddd2dd9f43
tree20afe263284321355d6a5390870c58315057dbbc
parentfc464cd91b4680b46ef7ef46bc961874dc577e62
The crypto layer needs the kernel lock.  ah_zeroize() takes it when
called from tdb_walk().  tdb_walk() needs mutex tdb_sadb_mtx to
protect the loop traversal.  First take the kernel lock in tdb_walk()
to preserve lock order.
found by witness
OK tobhe@ mvs@
sys/netinet/ip_ipsp.c