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)
Tue, Feb 10, 3:34 AM
Unknown Object (File)
Sun, Feb 8, 8:36 AM
Unknown Object (File)
Sat, Feb 7, 5:05 PM
Unknown Object (File)
Fri, Jan 30, 11:15 PM
Unknown Object (File)
Fri, Jan 30, 6:13 PM
Unknown Object (File)
Jan 5 2026, 9:33 AM
Unknown Object (File)
Jan 1 2026, 6:07 AM
Unknown Object (File)
Nov 27 2025, 2:49 PM
Subscribers

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 64644
Build 61528: arc lint + arc unit

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.