]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace/x86: Anotate text_mutex split between ftrace_arch_code_modify_post_process...
authorJiri Kosina <jkosina@suse.cz>
Sat, 29 Jun 2019 21:22:33 +0000 (23:22 +0200)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 2 Jul 2019 19:41:35 +0000 (15:41 -0400)
commit70eee89e7c7c9898c46cba6ebb5bf8eb92c39a7e
treea355f2efe4193e1afe470018af776773ae579b6c
parent777a486237a7ce6f5e67027e50e2490d32cbb3ac
ftrace/x86: Anotate text_mutex split between ftrace_arch_code_modify_post_process() and ftrace_arch_code_modify_prepare()

ftrace_arch_code_modify_prepare() is acquiring text_mutex, while the
corresponding release is happening in ftrace_arch_code_modify_post_process().

This has already been documented in the code, but let's also make the fact
that this is intentional clear to the semantic analysis tools such as sparse.

Link: http://lkml.kernel.org/r/nycvar.YFH.7.76.1906292321170.27227@cbobk.fhfr.pm
Fixes: 36bb674f9d441 ("ftrace/x86: Add a comment to why we take text_mutex in ftrace_arch_code_modify_prepare()")
Fixes: c7d57af481044 ("ftrace/x86: Remove possible deadlock between register_kprobe() and ftrace_run_update_code()")
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
arch/x86/kernel/ftrace.c