Comment #2 on issue 370 by [email protected]: Kernel compilation error
when using KSAN
https://code.google.com/p/address-sanitizer/issues/detail?id=370
Thanks @tetra20, for quick reply, but it doesn't work :(
$ prasanna.k ~/Ksan/work/linux-kasan-git/kasan $ git pull
Already up-to-date
$ prasanna.k ~/Ksan/work/linux-kasan-git/kasan $ git branch
* asan
prasanna.k ~/gcc-git/gcc/install/bin $ ./gcc -v
Using built-in specs.
COLLECT_GCC=./gcc
COLLECT_LTO_WRAPPER=/home/prasanna.k/gcc-git/gcc/install/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --enable-languages=c,c++ --disable-bootstrap
--enable-checking=no --with-gnu-as --with-gnu-ld --with-ld=/usr/bin/ld.bfd
--prefix=/home/prasanna.k/gcc-git/gcc/install
Thread model: posix
gcc version 5.0.0 20150113 (experimental) (GCC)
$ prasanna.k ~/Ksan/work/linux-kasan-git/kasan $ make
CC=/home/prasanna.k/gcc-git/gcc/install/bin/gcc -j20
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
CC scripts/mod/devicetable-offsets.s
cc1: error: invalid parameter ‘asan-fixed-shadow-offset’
cc1: error: invalid parameter ‘asan-fixed-shadow-offset’
make[2]: *** [scripts/mod/devicetable-offsets.s] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [scripts] Error 2
My Observation:
$ vi Makefile + 386
386 CFLAGS_KASAN = -fsanitize=address \
387 --param asan-use-after-return=0 \
388 --param asan-globals=0 \
389 --param asan-memintrin=0 \
390 --param asan-instrumentation-with-call-threshold=0 \
391 --param asan-fixed-shadow-offset=0 \
392 -DKASAN_HOOKS
all the --param options mentioned above in Makefile are added in GCC-5.0
except `asan-fixed-shadow-offset`
Additional information:
$ gcc --param asan-use-after-return=0 global.c -o global
compilation successful
$ gcc --param asan-globals=0 global.c -o global
compilation successful
$ gcc --param asan-memintrin=0 global.c -o global
compilation successful
$ gcc --param asan-instrumentation-with-call-threshold=0 global.c -o global
compilation successful
$ gcc --param asan-fixed-shadow-offset=0 global.c -o global
cc1: error: invalid parameter ‘asan-fixed-shadow-offset’
Sources:
Kernel: https://github.com/google/kasan.git
GCC: https://github.com/gcc-mirror/gcc.git
I'm I missing something??
Any hint will be highly appreciated.
Thanks in advance.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.