Files
linux/kernel/locking
Peter Zijlstra 4028b42699 lockdep: Fix preemption WARN for spurious IRQ-enable
[ Upstream commit f8e48a3dca ]

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: 4d004099a6 ("lockdep: Fix lockdep recursion")
Reported-by: syzbot+53f8ce8bbc07924b6417@syzkaller.appspotmail.com
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-11-05 11:51:12 +01:00
..
2019-08-08 09:09:25 +02:00
2020-03-21 16:00:24 +01:00