HomeFreeBSD

Always report ENOSYS in init

Description

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)
MFC after: 1 week
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D26288

Details

Provenance
brooksAuthored on
Reviewer
kevans
Differential Revision
D26288: Log ENOSYS in init
Parents
rS365283: Fix the variable name passed to OF_getprop().
Branches
Unknown
Tags
Unknown