mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
x86/kernel: increase kcov coverage under arch/x86/kernel folder
Currently kcov instrument is disabled for object files under arch/x86/kernel folder. For object files under arch/x86/kernel, actually just disabling the kcov instrument of files:"head32.o or head64.o and sev.o" could achieve successful booting and provide kcov coverage for object files that do not disable kcov instrument. The additional kcov coverage collected from arch/x86/kernel folder helps kernel fuzzing efforts to find bugs. Link to related improvement discussion is below: https://groups.google.com/g/syzkaller/c/Dsl-RYGCqs8/m/x-tfpTyFBAAJ Related ticket is as follow: https://bugzilla.kernel.org/show_bug.cgi?id=198443 Link: https://lkml.kernel.org/r/06c0bb7b5f61e5884bf31180e8c122648c752010.1690771380.git.pengfei.xu@intel.com Reviewed-by: Dmitry Vyukov <[email protected]> Tested-by: Dmitry Vyukov <[email protected]> Signed-off-by: Pengfei Xu <[email protected]> Cc: Aleksandr Nogikh <[email protected]> Cc: <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Kees Cook <[email protected]>, Cc: Kirill A. Shutemov <[email protected]> Cc: Sohil Mehta <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
This commit is contained in:
committed by
Andrew Morton
parent
6b72e5f9e7
commit
0d345996e4
@@ -33,11 +33,10 @@ KCSAN_SANITIZE := n
|
||||
KMSAN_SANITIZE_head$(BITS).o := n
|
||||
KMSAN_SANITIZE_nmi.o := n
|
||||
|
||||
# If instrumentation of this dir is enabled, boot hangs during first second.
|
||||
# Probably could be more selective here, but note that files related to irqs,
|
||||
# boot, dumpstack/stacktrace, etc are either non-interesting or can lead to
|
||||
# non-deterministic coverage.
|
||||
KCOV_INSTRUMENT := n
|
||||
# If instrumentation of the following files is enabled, boot hangs during
|
||||
# first second.
|
||||
KCOV_INSTRUMENT_head$(BITS).o := n
|
||||
KCOV_INSTRUMENT_sev.o := n
|
||||
|
||||
CFLAGS_irq.o := -I $(srctree)/$(src)/../include/asm/trace
|
||||
|
||||
|
||||
Reference in New Issue
Block a user