]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit00866edd436ba3a2e538f16b9db7d6f133f4c030
tree84f60ef92cd3770a5bc61d4b728a371fef8f17de
parentf20bacb347880573da84ccba19f858749c2e3a66
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