Skip to contentSkip to conversation

kcov-unconditionally-add-fno-stack-protector-to-compiler-options.patch removed from -mm tree

merged [email protected] 1 participant 1 message Aug 12, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: kcov: unconditionally add -fno-stack-protector to compiler options
has been removed from the -mm tree. Its filename was
kcov-unconditionally-add-fno-stack-protector-to-compiler-options.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Marco Elver <[email protected]>
Subject: kcov: unconditionally add -fno-stack-protector to compiler options

Unconditionally add -fno-stack-protector to KCOV's compiler options, as all supported compilers support the option. This saves a compiler invocation to determine if the option is supported.

Because Clang does not support -fno-conserve-stack, and -fno-stack-protector was wrapped in the same cc-option, we were missing -fno-stack-protector with Clang. Unconditionally adding this option fixes this for Clang.

---

 kernel/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/Makefile renamed from kernel/Makefile~kcov-unconditionally-add-fno-stack-protector-to-compiler-options +1 -1
@@ -36,7 +36,7 @@ KCOV_INSTRUMENT_stacktrace.o := n
 KCOV_INSTRUMENT_kcov.o := n
 KASAN_SANITIZE_kcov.o := n
 KCSAN_SANITIZE_kcov.o := n
-CFLAGS_kcov.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
+CFLAGS_kcov.o := $(call cc-option, -fno-conserve-stack) -fno-stack-protector
 
 # cond_syscall is currently not LTO compatible
 CFLAGS_sys_ni.o = $(DISABLE_LTO)

_

Patches currently in -mm which might be from [email protected] are