Commit 4028b42
lockdep: Fix preemption WARN for spurious IRQ-enable
[ Upstream commit f8e48a3 ]
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: 4d00409 ("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>1 parent 9558038 commit 4028b42
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3681 | 3681 | | |
3682 | 3682 | | |
3683 | 3683 | | |
3684 | | - | |
| 3684 | + | |
3685 | 3685 | | |
3686 | 3686 | | |
3687 | 3687 | | |
| |||
3750 | 3750 | | |
3751 | 3751 | | |
3752 | 3752 | | |
3753 | | - | |
| 3753 | + | |
3754 | 3754 | | |
3755 | 3755 | | |
3756 | 3756 | | |
| |||
0 commit comments