[PATCH] ARM/hw_breakpoint: Fix possible recursive locking for arch_hw_breakpoint_init

Sebastian Andrzej Siewior bigeasy at linutronix.de
Fri Jun 16 08:42:45 PDT 2017


On 2017-06-16 01:22:38 [-0700], Tony Lindgren wrote:
> Recent change to use cpuhp_setup_state_cpuslocked() with commit
> fe2a5cd8aa03 ("ARM/hw_breakpoint: Use cpuhp_setup_state_cpuslocked()")
> missed to change the related paired cpuhp_remove_state_nocalls_cpuslocked().
> 
> Now if arch_hw_breakpoint_init() fails, we get "WARNING: possible recursive
> locking detected" on the exit path.
> 
> Fixes: fe2a5cd8aa03 ("ARM/hw_breakpoint: Use
> cpuhp_setup_state_cpuslocked()")
> Cc: Sebastian Andrzej Siewior <bigeasy at linutronix.de>
> Cc: Ingo Molnar <mingo at kernel.org>
> Cc: Mark Rutland <mark.rutland at arm.com>
> Cc: Paul E. McKenney <paulmck at linux.vnet.ibm.com>
> Cc: Peter Zijlstra <peterz at infradead.org>
> Cc: Will Deacon <will.deacon at arm.com>
> Cc: Steven Rostedt <rostedt at goodmis.org>
> Cc: Russell King <linux at armlinux.org.uk>
> Cc: linux-arm-kernel at lists.infradead.org
> Signed-off-by: Tony Lindgren <tony at atomide.com>

Acked-by: Sebastian Andrzej Siewior <bigeasy at linutronix.de>

Thank you.

Sebastian



More information about the linux-arm-kernel mailing list