[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210926150838.197719-37-jiangshanlai@gmail.com>
Date: Sun, 26 Sep 2021 23:08:33 +0800
From: Lai Jiangshan <jiangshanlai@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Lai Jiangshan <laijs@...ux.alibaba.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
x86@...nel.org, "H. Peter Anvin" <hpa@...or.com>,
Joerg Roedel <jroedel@...e.de>,
Javier Martinez Canillas <javierm@...hat.com>,
Daniel Bristot de Oliveira <bristot@...hat.com>,
Brijesh Singh <brijesh.singh@....com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Arvind Sankar <nivedita@...m.mit.edu>,
Juergen Gross <jgross@...e.com>, Chester Lin <clin@...e.com>
Subject: [PATCH V2 36/41] x86/sev: Remove stack protector from sev.c
From: Lai Jiangshan <laijs@...ux.alibaba.com>
sev.c is going to contain __entry_code which can not be instrumented
by stack protector.
Signed-off-by: Lai Jiangshan <laijs@...ux.alibaba.com>
---
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
Powered by blists - more mailing lists