--- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c @@ -6611,6 +6611,8 @@ void debug_show_all_locks(void) } pr_warn("\nShowing all locks held in the system:\n"); + local_irq_disable(); + lockdep_lock(); rcu_read_lock(); for_each_process_thread(g, p) { if (!p->lockdep_depth) @@ -6620,6 +6622,8 @@ void debug_show_all_locks(void) touch_all_softlockup_watchdogs(); } rcu_read_unlock(); + lockdep_unlock(); + local_irq_enable(); pr_warn("\n"); pr_warn("=============================================\n\n");