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
Unknown Object (File)
Sat, Oct 10, 4:27 PM
Unknown Object (File)
Sat, Oct 10, 3:54 AM
Unknown Object (File)
Fri, Oct 9, 2:17 PM
Unknown Object (File)
Mon, Oct 5, 2:24 PM
Unknown Object (File)
Thu, Oct 1, 3:38 PM
Unknown Object (File)
Thu, Oct 1, 4:14 AM
Unknown Object (File)
Wed, Sep 30, 8:22 PM
Unknown Object (File)
Thu, Sep 24, 3:47 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