mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-28 01:04:03 +00:00
s390/kasan: avoid instrumentation of early C code
Instrumented C code cannot run without the kasan shadow area. Exempt source code files from kasan which are running before / used during kasan initialization. Reviewed-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
3484984585
commit
0a9b40911b
4 changed files with 5 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
KCOV_INSTRUMENT := n
|
KCOV_INSTRUMENT := n
|
||||||
GCOV_PROFILE := n
|
GCOV_PROFILE := n
|
||||||
UBSAN_SANITIZE := n
|
UBSAN_SANITIZE := n
|
||||||
|
KASAN_SANITIZE := n
|
||||||
|
|
||||||
KBUILD_AFLAGS := $(KBUILD_AFLAGS_DECOMPRESSOR)
|
KBUILD_AFLAGS := $(KBUILD_AFLAGS_DECOMPRESSOR)
|
||||||
KBUILD_CFLAGS := $(KBUILD_CFLAGS_DECOMPRESSOR)
|
KBUILD_CFLAGS := $(KBUILD_CFLAGS_DECOMPRESSOR)
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
KCOV_INSTRUMENT := n
|
KCOV_INSTRUMENT := n
|
||||||
GCOV_PROFILE := n
|
GCOV_PROFILE := n
|
||||||
UBSAN_SANITIZE := n
|
UBSAN_SANITIZE := n
|
||||||
|
KASAN_SANITIZE := n
|
||||||
|
|
||||||
obj-y := $(if $(CONFIG_KERNEL_UNCOMPRESSED),,decompressor.o) piggy.o info.o
|
obj-y := $(if $(CONFIG_KERNEL_UNCOMPRESSED),,decompressor.o) piggy.o info.o
|
||||||
targets := vmlinux.lds vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2
|
targets := vmlinux.lds vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2
|
||||||
|
|
|
@ -23,6 +23,8 @@ KCOV_INSTRUMENT_early_nobss.o := n
|
||||||
UBSAN_SANITIZE_early.o := n
|
UBSAN_SANITIZE_early.o := n
|
||||||
UBSAN_SANITIZE_early_nobss.o := n
|
UBSAN_SANITIZE_early_nobss.o := n
|
||||||
|
|
||||||
|
KASAN_SANITIZE_early_nobss.o := n
|
||||||
|
|
||||||
#
|
#
|
||||||
# Passing null pointers is ok for smp code, since we access the lowcore here.
|
# Passing null pointers is ok for smp code, since we access the lowcore here.
|
||||||
#
|
#
|
||||||
|
|
|
@ -11,6 +11,7 @@ endif
|
||||||
GCOV_PROFILE_sclp_early_core.o := n
|
GCOV_PROFILE_sclp_early_core.o := n
|
||||||
KCOV_INSTRUMENT_sclp_early_core.o := n
|
KCOV_INSTRUMENT_sclp_early_core.o := n
|
||||||
UBSAN_SANITIZE_sclp_early_core.o := n
|
UBSAN_SANITIZE_sclp_early_core.o := n
|
||||||
|
KASAN_SANITIZE_sclp_early_core.o := n
|
||||||
|
|
||||||
CFLAGS_sclp_early_core.o += -D__NO_FORTIFY
|
CFLAGS_sclp_early_core.o += -D__NO_FORTIFY
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue