]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r365284:
authorBrooks Davis <brooks@FreeBSD.org>
Wed, 9 Sep 2020 23:11:55 +0000 (23:11 +0000)
committerBrooks Davis <brooks@FreeBSD.org>
Wed, 9 Sep 2020 23:11:55 +0000 (23:11 +0000)
commit68cfeeb1d3c428e3c3881f45bc3a20a252b37d0e
tree07a95a1033d08ccb89e1404099da63ff41d7f174
parentecb30ef19bd101fdc2b1772699aad03de4d72aa2
MFC r365284:

Always report ENOSYS in init

While rare, encountering an unimplemented system call early in init is
catastrophic and difficult to debug.  Even after a SIGSYS handler is
registered, such configurations are problematic.  As such, always report
such events for pid 1 (following kern.lognosys if non-zero).

Reviewed by: kevans, imp
Obtained from: CheriBSD (plus suggestions from kevans)
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D26288
sys/kern/kern_sig.c