x86/alternatives: Lockdep-enforce text_mutex in text_poke*()
authorJiri Kosina <jkosina@suse.cz>
Tue, 28 Aug 2018 06:55:14 +0000 (08:55 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 30 Aug 2018 11:02:30 +0000 (13:02 +0200)
commit9222f606506c5f8ca2c8b8c939d59ed3e6ac4148
treefd08042dd7d4ce57105b764be0c5fc0082f7a3d4
parentf12d11c5c184626b4befdee3d573ec8237405a33
x86/alternatives: Lockdep-enforce text_mutex in text_poke*()

text_poke() and text_poke_bp() must be called with text_mutex held.

Put proper lockdep anotation in place instead of just mentioning the
requirement in a comment.

Reported-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Andy Lutomirski <luto@kernel.org>
Link: https://lkml.kernel.org/r/nycvar.YFH.7.76.1808280853520.25787@cbobk.fhfr.pm
arch/x86/kernel/alternative.c