From 2e1dc1599af6e599afd9eda70e9d2d819cc7df0c Mon Sep 17 00:00:00 2001 From: Sedat Dilek Date: Tue, 22 May 2018 12:07:24 +0200 Subject: [PATCH 2/2] x86/paravirt: Mark native_save_fl() with __nostackprotector attribute For details please see [1] and [2]. This requires Clang-7 (>= svn331925) which supports __nostackprotector attribute. [1] https://bugs.llvm.org/show_bug.cgi?id=37512 [2] https://github.com/ClangBuiltLinux/linux/issues/16 --- arch/x86/include/asm/irqflags.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/irqflags.h b/arch/x86/include/asm/irqflags.h index 89f08955fff7..7e6765097adc 100644 --- a/arch/x86/include/asm/irqflags.h +++ b/arch/x86/include/asm/irqflags.h @@ -13,7 +13,7 @@ * Interrupt control: */ -static inline unsigned long native_save_fl(void) +static inline __nostackprotector unsigned long native_save_fl(void) { unsigned long flags; -- 2.17.0