Steven Rostedt (VMware) 39611265ed ftrace/x86: Add a comment to why we take text_mutex in ftrace_arch_code_modify_prepare()
Taking the text_mutex in ftrace_arch_code_modify_prepare() is to fix a
race against module loading and live kernel patching that might try to
change the text permissions while ftrace has it as read/write. This
really needs to be documented in the code. Add a comment that does such.

Link: http://lkml.kernel.org/r/20190627211819.5a591f52@gandalf.local.home

Suggested-by: Josh Poimboeuf <jpoimboe@redhat.com>
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
2019-06-28 14:21:25 -04:00
..
2019-05-10 12:33:09 -04:00
2019-05-10 12:33:09 -04:00
2019-04-10 16:41:00 -04:00
2019-04-19 17:58:57 +02:00
2019-03-19 12:10:56 +01:00
2018-10-29 07:13:28 +01:00
2018-10-31 08:54:16 -07:00
2018-10-31 08:54:16 -07:00
2017-12-23 21:13:01 +01:00
2018-10-02 10:14:32 +02:00