HomeFreeBSD

sanitizers: Avoid building genassym.c and genoffset.c with sanitizers

Description

sanitizers: Avoid building genassym.c and genoffset.c with sanitizers

Some, particularly KASAN, may insert redzones around global symbols,
resulting in incorrect offset definitions because genassym.sh (ab)uses
symbol sizes to assign semantic meaning.

(Ideally I would be able to define this pattern in one place, but I
haven't found a way to define a GENSYM_CFLAGS that actually works for
all of the consumers (kern.post.mk, kmod.mk, sys/conf/files*).)

MFC after: 1 week
Sponsored by: Klara, Inc.
Sponsored by: Juniper Networks, Inc.

Details

Provenance
markjAuthored on Oct 10 2023, 6:14 PM
Parents
rGd07acc58d898: systm: Relax __result_use_check annotations
Branches
Unknown
Tags
Unknown