x86/alternatives: Lockdep-enforce text_mutex in text_poke*()
authorJiri Kosina <[email protected]>
Tue, 28 Aug 2018 06:55:14 +0000 (08:55 +0200)
committerThomas Gleixner <[email protected]>
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 <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
arch/x86/kernel/alternative.c