Page MenuHomeFreeBSD

kern: syscall_thread_enter() cannot fail
ClosedPublic

Authored by kevans on Jun 25 2026, 4:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 14, 7:17 PM
Unknown Object (File)
Thu, Aug 13, 12:08 AM
Unknown Object (File)
Mon, Aug 10, 11:38 AM
Unknown Object (File)
Mon, Aug 10, 9:40 AM
Unknown Object (File)
Mon, Aug 10, 9:40 AM
Unknown Object (File)
Mon, Aug 10, 9:40 AM
Unknown Object (File)
Mon, Aug 10, 9:22 AM
Unknown Object (File)
Sun, Aug 9, 7:11 AM
Subscribers

Details

Summary

Attempting to handle the error gracefully can easily result in missing
SIGSYS, so this was made to always succeed in
39024a89146 ("syscalls: fix missing SIGSYS for several ENOSYS errors")
and returns the nosys entry on failure.

Drop the pretense of returning an error and clean up a few dead error
paths.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/kern/kern_sig.c
2743

I prefer the place for the saved errno to be called nerror still. It is even useful that error would disappear.

kevans marked an inline comment as done.

error back to nerror

This revision is now accepted and ready to land.Jun 25 2026, 4:43 PM
This revision was automatically updated to reflect the committed changes.