Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 28 Jan 2020 10:49:27 -0800
From: Sami Tolvanen <>
To: Will Deacon <>, Catalin Marinas <>, 
	Steven Rostedt <>, Masami Hiramatsu <>, 
	Ard Biesheuvel <>, Mark Rutland <>,
Cc: Dave Martin <>, Kees Cook <>, 
	Laura Abbott <>, Marc Zyngier <>, 
	Nick Desaulniers <>, Jann Horn <>, 
	Miguel Ojeda <>, 
	Masahiro Yamada <>,,,,, Sami Tolvanen <>
Subject: [PATCH v7 04/11] scs: disable when function graph tracing is enabled

The graph tracer hooks returns by modifying frame records on the
(regular) stack, but with SCS the return address is taken from the
shadow stack, and the value in the frame record has no effect. As we
don't currently have a mechanism to determine the corresponding slot
on the shadow stack (and to pass this through the ftrace
infrastructure), for now let's disable SCS when the graph tracer is

Signed-off-by: Sami Tolvanen <>
 arch/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/Kconfig b/arch/Kconfig
index 1b16aa9a3fe5..0d746373c52e 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -530,6 +530,7 @@ config ARCH_SUPPORTS_SHADOW_CALL_STACK
 	bool "Clang Shadow Call Stack"
 	  This option enables Clang's Shadow Call Stack, which uses a

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.