Page MenuHomeFreeBSD

lib{c,thr}: add kernel version guards on exterrctl
ClosedPublic

Authored by brooks on Jun 4 2025, 4:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 16, 5:03 AM
Unknown Object (File)
Thu, Oct 2, 9:36 AM
Unknown Object (File)
Thu, Sep 25, 7:49 PM
Unknown Object (File)
Wed, Sep 24, 3:54 AM
Unknown Object (File)
Fri, Sep 19, 11:19 PM
Unknown Object (File)
Aug 31 2025, 1:32 AM
Unknown Object (File)
Jul 29 2025, 7:54 AM
Unknown Object (File)
Jul 29 2025, 1:42 AM
Subscribers

Details

Summary

This allows userspace to run on a (somewhat) out of date kernel.

Diff Detail

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

Event Timeline

brooks requested review of this revision.Jun 4 2025, 4:47 PM

Compile tested only. Not calling exterrctl should be equivalent to it returning ENOSYS when the kernel doesn't support it.

This revision is now accepted and ready to land.Jun 4 2025, 5:42 PM

I've now verified that a system with these patches applied, but the __FreeBSD_version bump rolled back boots fine and doesn't call exterrctl(). With the version bumped the calls are made.