Skip to content
Commit f8e48a3d authored by Peter Zijlstra's avatar Peter Zijlstra
Browse files

lockdep: Fix preemption WARN for spurious IRQ-enable



It is valid (albeit uncommon) to call local_irq_enable() without first
having called local_irq_disable(). In this case we enter
lockdep_hardirqs_on*() with IRQs enabled and trip a preemption warning
for using __this_cpu_read().

Use this_cpu_read() instead to avoid the warning.

Fixes: 4d004099 ("lockdep: Fix lockdep recursion")
Reported-by: default avatar <syzbot+53f8ce8bbc07924b6417@syzkaller.appspotmail.com>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
parent ed3e4537
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment