Page MenuHomeFreeBSD

kern: add bounds-safety soft-trap runtime
AcceptedPublic

Authored by abhijeetsharma2002_gmail.com on Aug 19 2026, 12:03 PM.
Tags
None
Referenced Files
F172700956: D58987.id186122.diff
Sun, Sep 20, 8:44 AM
Unknown Object (File)
Sat, Sep 19, 5:15 PM
Unknown Object (File)
Fri, Sep 18, 10:10 PM
Unknown Object (File)
Fri, Sep 18, 9:05 PM
Unknown Object (File)
Fri, Sep 18, 4:13 PM
Unknown Object (File)
Fri, Sep 18, 9:32 AM
Unknown Object (File)
Thu, Sep 17, 4:09 PM
Unknown Object (File)
Thu, Sep 17, 2:28 PM
Subscribers

Details

Reviewers
rpaulo
emaste
Summary

__bounds_safety_soft_trap() counts violations via counter(9), fires a
SDT probe carrying the trap site, and continues instead of panicking.
Console logging is opt-in and rate-limited. The deliberate-violation
test hook lives in a separate file so enabling it never instruments the
handler itself.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 76626
Build 73509: arc lint + arc unit