HomeFreeBSD

redzone: Raise a compile error if KASAN is configured

Description

redzone: Raise a compile error if KASAN is configured

redzone(9) does some munging of the allocation to insert redzones before
and after a valid memory buffer, but KASAN does not know about this and
will raise false positives if both are configured. Until this is fixed,
do not allow both to be configured. Note that KASAN provides similar
checking on its own but currently does not force the creation of
redzones for all UMA allocations; this should be addressed as well.

Sponsored by: The FreeBSD Foundation

Details

Provenance
markjAuthored on Jul 23 2021, 2:30 PM
Parents
rGf95e683fa231: Annotate amd64 stack unwinders with __nomemorysanitize
Branches
Unknown
Tags
Unknown