Protect pool_get() with kernel lock in sys_ypconnect().
authorbluhm <bluhm@openbsd.org>
Fri, 1 Mar 2024 14:15:01 +0000 (14:15 +0000)
committerbluhm <bluhm@openbsd.org>
Fri, 1 Mar 2024 14:15:01 +0000 (14:15 +0000)
commit12be4f565e734d46aedb19ce9af30b3b3ea2210a
treed7e911fc445da5503b10b9d19b0ed32781dfe197
parente70758520e3b94cc3632c465ec64b5e226441cd1
Protect pool_get() with kernel lock in sys_ypconnect().

Pool namei_pool is initialized with IPL_NONE as filesystem always
runs with kernel lock.  So pool_get() needs kernel lock also in
sys_ypconnect().

OK kn@ deraadt@
sys/kern/uipc_syscalls.c