After VFS shutdown, init(8) cannot map a missing page that contains
authorbluhm <bluhm@openbsd.org>
Wed, 14 Jul 2021 22:09:24 +0000 (22:09 +0000)
committerbluhm <bluhm@openbsd.org>
Wed, 14 Jul 2021 22:09:24 +0000 (22:09 +0000)
commitb09eba8dee24fe144fc9b02a31b062a6292b153c
tree7db2b627fc2d63ebfee02f113c347c32c3fd51ef
parent547763d6583564afaacd4c4592d3bda5ac41f7c2
After VFS shutdown, init(8) cannot map a missing page that contains
the signal handler code.  Traditionally a process would spin in
such a case, but we changed the logic in revision 1.167 trapsignal()
to receive a fatal signal.  If that happens to init(8), the kernel
panics.  In case of reboot, jump between init signal handler and
page fault trap until the kernel resets the machine.
reported and tested weerd@; OK deraadt@
sys/kern/kern_sig.c