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
Unknown Object (File)
Nov 23 2024, 6:17 AM
Unknown Object (File)
Nov 18 2024, 11:07 AM
Unknown Object (File)
Nov 6 2024, 5:55 AM
Unknown Object (File)
Nov 6 2024, 5:38 AM
Unknown Object (File)
Nov 6 2024, 5:37 AM
Unknown Object (File)
Nov 6 2024, 3:23 AM
Unknown Object (File)
Nov 2 2024, 12:23 PM
Unknown Object (File)
Oct 26 2024, 1:10 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 Not Applicable
Unit
Tests Not Applicable

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

Maybe mention NOSAN_C in a comment here.

This revision was automatically updated to reflect the committed changes.