]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3333659481c19d3fba5c788880c5275aca1dca24
treefd08042dd7d4ce57105b764be0c5fc0082f7a3d4
parentc78077c404bdaa06d324ec23ba42859471c02b2c
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