Commit f8e48a3
Peter Zijlstra
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: 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>1 parent ed3e453 commit f8e48a3
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4057 | 4057 | | |
4058 | 4058 | | |
4059 | 4059 | | |
4060 | | - | |
| 4060 | + | |
4061 | 4061 | | |
4062 | 4062 | | |
4063 | 4063 | | |
| |||
4126 | 4126 | | |
4127 | 4127 | | |
4128 | 4128 | | |
4129 | | - | |
| 4129 | + | |
4130 | 4130 | | |
4131 | 4131 | | |
4132 | 4132 | | |
| |||
0 commit comments