x86/ftrace: Remove fault protection code in prepare_ftrace_return
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 8 Oct 2021 09:13:30 +0000 (11:13 +0200)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 20 Oct 2021 00:33:21 +0000 (20:33 -0400)
commit8646698aefad7547dc7acee8f8c2099d7653dc70
tree84f60ef92cd3770a5bc61d4b728a371fef8f17de
parent1e85010e17c1d72627eaf14d75d22e4d693abf70
x86/ftrace: Remove fault protection code in prepare_ftrace_return

Removing the fault protection code when writing return_hooker
to stack. As Steven noted:

> That protection was there from the beginning due to being "paranoid",
> considering ftrace was bricking network cards. But that protection
> would not have even protected against that.

Link: https://lkml.kernel.org/r/20211008091336.33616-3-jolsa@kernel.org
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
arch/x86/kernel/ftrace.c