Page MenuHomeFreeBSD

libc: Disable ASAN for certain string functions
ClosedPublic

Authored by arichardson on Jul 5 2021, 10:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 8, 12:34 AM
Unknown Object (File)
Sun, Apr 7, 9:06 AM
Unknown Object (File)
Sun, Apr 7, 3:43 AM
Unknown Object (File)
Sat, Apr 6, 11:06 PM
Unknown Object (File)
Wed, Apr 3, 1:16 AM
Unknown Object (File)
Fri, Mar 22, 3:43 PM
Unknown Object (File)
Fri, Mar 22, 3:43 PM
Unknown Object (File)
Fri, Mar 22, 3:43 PM
Subscribers

Details

Summary

They deliberately read out-of-bounds values to avoid byte-by-byte
loads and check multiple bytes at once. While this will work on x86,
it is flagged as an out-of-bounds read with ASAN, so we have to
disable instrumentation here. This also causes bounds errors for CHERI,
so in CheriBSD we use implementations that avoid OOB reads.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40295
Build 37184: arc lint + arc unit

Event Timeline

arichardson retitled this revision from libc: Disable ASAN for certain str* functions to libc: Disable ASAN for certain string functions.Jul 5 2021, 5:42 PM
This revision was not accepted when it landed; it landed in state Needs Review.Aug 2 2021, 1:35 PM
This revision was automatically updated to reflect the committed changes.