Grab the KERNEL_LOCK() in MP-unsafe fo_close routines. This prevents
authorvisa <visa@openbsd.org>
Wed, 15 Aug 2018 13:19:06 +0000 (13:19 +0000)
committervisa <visa@openbsd.org>
Wed, 15 Aug 2018 13:19:06 +0000 (13:19 +0000)
commitfcba5756a8a8a1d0fcfc7739b7b416fefb81f00f
treebb4625b97f9bc8ec39e3fbe82c7ad4142b1e100e
parent40493fdca8501a22cb125137c841c9edc8ff30fc
Grab the KERNEL_LOCK() in MP-unsafe fo_close routines. This prevents
a scenario where MP-unsafe code gets run without the kernel lock
as a consequence of an unlocked system call.

OK mpi@, kettenis@
sys/dev/pci/drm/drm_linux.c
sys/kern/kern_event.c
sys/kern/sys_pipe.c
sys/kern/vfs_vnops.c