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)
Sun, Jan 19, 9:17 PM
Unknown Object (File)
Fri, Jan 17, 12:25 PM
Unknown Object (File)
Sun, Jan 12, 2:54 AM
Unknown Object (File)
Mon, Dec 30, 12:30 AM
Unknown Object (File)
Dec 11 2024, 2:13 AM
Unknown Object (File)
Dec 8 2024, 10:51 AM
Unknown Object (File)
Nov 30 2024, 1:30 PM
Unknown Object (File)
Nov 25 2024, 9:45 AM
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.