[PATCH V2 36/41] x86/sev: Remove stack protector from sev.c

From: Lai Jiangshan
Date: Sun Sep 26 2021 - 11:13:03 EST


From: Lai Jiangshan <laijs@xxxxxxxxxxxxxxxxx>

sev.c is going to contain __entry_code which can not be instrumented
by stack protector.

Signed-off-by: Lai Jiangshan <laijs@xxxxxxxxxxxxxxxxx>
---
arch/x86/kernel/Makefile | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/x86/kernel/Makefile b/arch/x86/kernel/Makefile
index f56e8088c85d..88bbfeeab929 100644
--- a/arch/x86/kernel/Makefile
+++ b/arch/x86/kernel/Makefile
@@ -52,6 +52,8 @@ CFLAGS_REMOVE_traps.o = -fstack-protector -fstack-protector-strong
CFLAGS_traps.o += -fno-stack-protector
CFLAGS_REMOVE_nmi.o = -fstack-protector -fstack-protector-strong
CFLAGS_nmi.o += -fno-stack-protector
+CFLAGS_REMOVE_sev.o = -fstack-protector -fstack-protector-strong
+CFLAGS_sev.o += -fno-stack-protector

CFLAGS_irq.o := -I $(srctree)/$(src)/../include/asm/trace

--
2.19.1.6.gb485710b