diff options
author | Peter Zijlstra <peterz@infradead.org> | 2020-10-22 12:23:02 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-10-22 12:37:22 +0200 |
commit | f8e48a3dca060e80f672d398d181db1298fbc86c (patch) | |
tree | 8ccab9b05381c1cd06d368bedf620bcd8bb3ae7b /kernel/futex.c | |
parent | locking/seqlocks: Fix kernel-doc warnings (diff) | |
download | linux-f8e48a3dca060e80f672d398d181db1298fbc86c.tar.xz linux-f8e48a3dca060e80f672d398d181db1298fbc86c.zip |
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: 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>
Diffstat (limited to 'kernel/futex.c')
0 files changed, 0 insertions, 0 deletions