[Bug c/69624] sanitize-coverage=trace-pc miscompiles kernel
jirislaby at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Feb 2 14:46:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69624
--- Comment #7 from Jiri Slaby <jirislaby at gmail dot com> ---
(In reply to Dmitry Vyukov from comment #6)
> Also what gcc version?
$ gcc-6 --version
gcc-6 (SUSE Linux) 6.0.0 20160121 (experimental) [trunk revision 232670]
> I've tried:
> gcc version 6.0.0 20160105 (experimental) (GCC)
> $ gcc /tmp/af_netlink.c -c -O2 -fsanitize-coverage=trace-pc
> -fsanitize=kernel-address --param asan-stack=1 --param asan-globals=1
> --param asan-instrumentation-with-call-threshold=10000
> -fasan-shadow-offset=0xdffffc0000000000
With this I see that too:
movq %r12, %rdx
#APP
# 28 "../arch/x86/include/asm/arch_hweight.h" 1
661:
call __sw_hweight32
662:
#...more ALTINST crap
#NO_APP
addl 720(%rbx), %eax
shrq $3, %rdx
movl %eax, %r13d
movabsq $-2305847407260205056, %rax
cmpb $0, (%rdx,%rax)
More information about the Gcc-bugs
mailing list