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)
Sat, Jul 4, 1:30 AM
Unknown Object (File)
Wed, Jul 1, 5:27 PM
Unknown Object (File)
Sun, Jun 28, 10:02 AM
Unknown Object (File)
Fri, Jun 26, 2:02 PM
Unknown Object (File)
Wed, Jun 24, 1:03 AM
Unknown Object (File)
Fri, Jun 19, 1:25 AM
Unknown Object (File)
Wed, Jun 17, 1:14 PM
Unknown Object (File)
Mon, Jun 15, 5:02 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 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.