Re: [PATCH 09/18] trace: disable function graph tracing with SCS

2019-10-20 Thread Ard Biesheuvel
On Fri, 18 Oct 2019 at 18:11, Sami Tolvanen wrote: > > With CONFIG_FUNCTION_GRAPH_TRACER, function return addresses are > modified in ftrace_graph_caller and prepare_ftrace_return to redirect > control flow to ftrace_return_to_handler. This is incompatible with > return address protection. > > Sig

Re: [PATCH 09/18] trace: disable function graph tracing with SCS

2019-10-18 Thread Sami Tolvanen
On Fri, Oct 18, 2019 at 10:01 AM Steven Rostedt wrote: > NAK, Put this in the arch code. > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 41a9b4257b72..d68339987604 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -149,7 +149,7 @@ config ARM64 > select HAVE_

Re: [PATCH 09/18] trace: disable function graph tracing with SCS

2019-10-18 Thread Steven Rostedt
On Fri, 18 Oct 2019 09:10:24 -0700 Sami Tolvanen wrote: > With CONFIG_FUNCTION_GRAPH_TRACER, function return addresses are > modified in ftrace_graph_caller and prepare_ftrace_return to redirect > control flow to ftrace_return_to_handler. This is incompatible with > return address protection. >

[PATCH 09/18] trace: disable function graph tracing with SCS

2019-10-18 Thread Sami Tolvanen
With CONFIG_FUNCTION_GRAPH_TRACER, function return addresses are modified in ftrace_graph_caller and prepare_ftrace_return to redirect control flow to ftrace_return_to_handler. This is incompatible with return address protection. Signed-off-by: Sami Tolvanen --- kernel/trace/Kconfig | 1 + 1 fil