Page MenuHomeFreeBSD

sys/conf: Introduce NOSAN_CFLAGS and NOSAN_C
ClosedPublic

Authored by andrew on Jun 5 2024, 12:57 PM.
Tags
None
Referenced Files
F174702192: D45498.id142232.diff
Mon, Oct 5, 8:28 AM
F174630613: D45498.id142232.diff
Sun, Oct 4, 7:25 PM
F174626017: D45498.id139952.diff
Sun, Oct 4, 6:47 PM
F174607794: D45498.diff
Sun, Oct 4, 3:36 PM
F174605054: D45498.id139691.diff
Sun, Oct 4, 3:03 PM
F174594223: D45498.id139507.diff
Sun, Oct 4, 12:54 PM
Unknown Object (File)
Sat, Oct 3, 1:01 PM
Unknown Object (File)
Sat, Sep 26, 12:47 PM
Subscribers

Details

Summary

To simplify disabling the kernel sanitizers in some files add
NOSAN_CFLAGS and NOSAN_C variables. These are CFLAGS and NORMAL_C with
the sanitizer flags removed.

While here add MSAN_CFLAGS to simplify keeping KMSAN in kern_kcov.c

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 58127
Build 55015: arc lint + arc unit

Event Timeline

Sorry for not having done this when I added the -fno-sanitize* pattern.

This revision is now accepted and ready to land.Jun 5 2024, 1:53 PM

Fix the module build. NOSAN_CFLAGS was wrong when used in kmod.mk

This revision now requires review to proceed.Jun 10 2024, 4:49 PM
sys/conf/kern.pre.mk
220

Does it not work to define these in kern.mk instead of here and in kmod.mk?

Move NOSAN_CFLAGS to kern.mk

This revision is now accepted and ready to land.Jun 19 2024, 4:38 PM
markj added inline comments.
sys/conf/kern.mk
297 ↗(On Diff #139952)

Maybe mention NOSAN_C in a comment here.

This revision was automatically updated to reflect the committed changes.