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
F101981199: D45498.diff
Wed, Nov 6, 3:23 AM
Unknown Object (File)
Sat, Nov 2, 12:23 PM
Unknown Object (File)
Sat, Oct 26, 1:10 PM
Unknown Object (File)
Sat, Oct 26, 1:10 PM
Unknown Object (File)
Sat, Oct 26, 1:10 PM
Unknown Object (File)
Sat, Oct 26, 1:10 PM
Unknown Object (File)
Sat, Oct 26, 12:49 PM
Unknown Object (File)
Fri, Oct 18, 11:44 AM
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.