HomeFreeBSD

kcov: Integrate with KMSAN

Description

kcov: Integrate with KMSAN

  • kern_kcov.c needs to be compiled with -fsanitize=kernel-memory when KMSAN is configured since it calls into various other subsystems.
  • Disable address and memory sanitizers in kcov(4)'s coverage sanitizer callbacks, as they do not provide useful checking. Moreover, with KMSAN we may otherwise get false positives since the caller (coverage sanitizer runtime) is not instrumented.
  • Disable KASAN and KMSAN interceptors in subr_coverage.c, as they do not provide any benefit but do introduce overhead when fuzzing.

Sponsored by: The FreeBSD Foundation

Details

Provenance
markjAuthored on Sep 14 2021, 6:29 PM
Parents
R10:272c4a4dc5fb: Allow setting NFS server scope and owner.
Branches
Unknown
Tags
Unknown