Skip to content

Commit 40ea972

Browse files
Peter Zijlstraingomolnar
authored andcommitted
x86/uaccess, kcov: Disable stack protector
New tooling noticed this mishap: kernel/kcov.o: warning: objtool: write_comp_data()+0x138: call to __stack_chk_fail() with UACCESS enabled kernel/kcov.o: warning: objtool: __sanitizer_cov_trace_pc()+0xd9: call to __stack_chk_fail() with UACCESS enabled All the other instrumentation (KASAN,UBSAN) also have stack protector disabled. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Josh Poimboeuf <jpoimboe@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 4a6c91f commit 40ea972

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎kernel/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ KCOV_INSTRUMENT_extable.o := n
3030
# Don't self-instrument.
3131
KCOV_INSTRUMENT_kcov.o := n
3232
KASAN_SANITIZE_kcov.o := n
33+
CFLAGS_kcov.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
3334

3435
# cond_syscall is currently not LTO compatible
3536
CFLAGS_sys_ni.o = $(DISABLE_LTO)

0 commit comments

Comments
 (0)