Re: [bp:tip-x86-fpu 2/2] test_fpu.c:undefined reference to `__sanitizer_cov_trace_cmpd'
From: Borislav Petkov
Date: Sat Jun 27 2020 - 06:22:54 EST
On Sat, Jun 27, 2020 at 11:15:42AM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git tip-x86-fpu
> head: dca364a883e0ac1f61b4d4e482edf66e63ffcdd2
> commit: dca364a883e0ac1f61b4d4e482edf66e63ffcdd2 [2/2] selftests/fpu: Add an FPU selftest
> config: x86_64-allyesconfig (attached as .config)
> compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
>
> All errors (new ones prefixed by >>):
>
> ld: lib/test_fpu.o: in function `test_fpu_get':
> >> test_fpu.c:(.text+0x16e): undefined reference to `__sanitizer_cov_trace_cmpd'
> >> ld: test_fpu.c:(.text+0x1a7): undefined reference to `__sanitizer_cov_trace_cmpd'
> ld: test_fpu.c:(.text+0x1e0): undefined reference to `__sanitizer_cov_trace_cmpd'
>
> ---
I'm getting sick'n'tired of having to deal with compilers lately:
---
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index e4add3e89c47..5842885ab184 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -2309,7 +2309,7 @@ config TEST_HMM
config TEST_FPU
tristate "Test floating point operations in kernel space"
- depends on X86
+ depends on X86 && !KCOV_INSTRUMENT_ALL
help
Enable this option to add /sys/kernel/debug/selftest_helpers/test_fpu
which will trigger a sequence of floating point operations. This is used
---
Thx for the report, folded in.
--
Regards/Gruss,
Boris.
SUSE Software Solutions Germany GmbH, GF: Felix ImendÃrffer, HRB 36809, AG NÃrnberg