Re: [PATCH] x86/alternatives: lockdep-enforce text_mutex in text_poke*()

2018-08-28 Thread Masami Hiramatsu
On Tue, 28 Aug 2018 08:55:14 +0200 (CEST) Jiri Kosina wrote: > From: Jiri Kosina > > text_poke() and text_poke_bp() must be called with text_mutex held. > Let's put proper lockdep anotation in place instead of just mentioning > the requirement in comment. Thank you! Acked-by: Masami Hiramatsu

Re: [PATCH] x86/alternatives: lockdep-enforce text_mutex in text_poke*()

2018-08-28 Thread Peter Zijlstra
On Tue, Aug 28, 2018 at 08:55:14AM +0200, Jiri Kosina wrote: > From: Jiri Kosina > > text_poke() and text_poke_bp() must be called with text_mutex held. > Let's put proper lockdep anotation in place instead of just mentioning > the requirement in comment. Thanks Jiri! > Reported-by: Peter Zijls

[PATCH] x86/alternatives: lockdep-enforce text_mutex in text_poke*()

2018-08-27 Thread Jiri Kosina
From: Jiri Kosina text_poke() and text_poke_bp() must be called with text_mutex held. Let's put proper lockdep anotation in place instead of just mentioning the requirement in comment. Reported-by: Peter Zijlstra Signed-off-by: Jiri Kosina --- arch/x86/kernel/alternative.c | 9 + 1 fi