syzbot


BUG: using __this_cpu_read() in preemptible code in trace_hardirqs_on

Status: fixed on 2020/11/16 12:12
Reported-by: syzbot+53f8ce8bbc07924b6417@syzkaller.appspotmail.com
Fix commit: f8e48a3dca06 lockdep: Fix preemption WARN for spurious IRQ-enable
First crash: 1288d, last: 1252d
Cause bisection: introduced by (bisect log) :
commit 4d004099a668c41522242aa146a38cc4eb59cb1e
Author: Peter Zijlstra <peterz@infradead.org>
Date: Fri Oct 2 09:04:21 2020 +0000

  lockdep: Fix lockdep recursion

Crash: BUG: using __this_cpu_read() in preemptible code in trace_hardirqs_on (log)
Repro: C syz .config
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCH 5.9 000/391] 5.9.4-rc1 review 406 (406) 2020/11/05 16:26
[tip: locking/urgent] lockdep: Fix preemption WARN for spurious IRQ-enable 1 (1) 2020/10/26 12:41
BUG: using __this_cpu_read() in preemptible code in trace_hardirqs_on 9 (12) 2020/10/23 08:18

Sample crash report:
BUG: using __this_cpu_read() in preemptible [00000000] code: syz-executor375/8498
caller is lockdep_hardirqs_on_prepare+0x5e/0x410 kernel/locking/lockdep.c:4060
CPU: 1 PID: 8498 Comm: syz-executor375 Not tainted 5.10.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x107/0x163 lib/dump_stack.c:118
 check_preemption_disabled+0x123/0x130 lib/smp_processor_id.c:48
 lockdep_hardirqs_on_prepare+0x5e/0x410 kernel/locking/lockdep.c:4060
 trace_hardirqs_on+0x5b/0x1c0 kernel/trace/trace_preemptirq.c:49
 __bad_area_nosemaphore+0xc6/0x400 arch/x86/mm/fault.c:797
 do_user_addr_fault+0x7d7/0xb40 arch/x86/mm/fault.c:1335
 handle_page_fault arch/x86/mm/fault.c:1429 [inline]
 exc_page_fault+0x9e/0x180 arch/x86/mm/fault.c:1485
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:583
RIP: 0033:0x4248d0
Code: 66 0f ef c0 66 0f ef c9 66 0f ef d2 66 0f ef db 48 89 f8 48 89 f9 48 81 e1 ff 0f 00 00 48 81 f9 cf 0f 00 00 77 74 48 83 e0 f0 <66> 0f 74 00 66 0f 74 48 10 66 0f 74 50 20 66 0f 74 58 30 66 0f d7
RSP: 002b:00007ffda07610d8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 00007ffda0761100 RCX: 0000000000000000
RDX: 0000000000000010 RSI: 000000000000000f RDI: 0000000000000000
RBP: 0000000000000003 R08: 0000000000000004 R09: 00000000004002c8
R10: 0000000000000000 R11: 000000000000000f R12: 0000000000402310
R13: 00000000004023a0 R14: 0000000000000000 R15: 0000000000000000
BUG: using __this_cpu_read() in preemptible [00000000] code: syz-executor375/8498
caller is lockdep_hardirqs_on+0x38/0x110 kernel/locking/lockdep.c:4129
CPU: 1 PID: 8498 Comm: syz-executor375 Not tainted 5.10.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x107/0x163 lib/dump_stack.c:118
 check_preemption_disabled+0x123/0x130 lib/smp_processor_id.c:48
 lockdep_hardirqs_on+0x38/0x110 kernel/locking/lockdep.c:4129
 __bad_area_nosemaphore+0xc6/0x400 arch/x86/mm/fault.c:797
 do_user_addr_fault+0x7d7/0xb40 arch/x86/mm/fault.c:1335
 handle_page_fault arch/x86/mm/fault.c:1429 [inline]
 exc_page_fault+0x9e/0x180 arch/x86/mm/fault.c:1485
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:583
RIP: 0033:0x4248d0
Code: 66 0f ef c0 66 0f ef c9 66 0f ef d2 66 0f ef db 48 89 f8 48 89 f9 48 81 e1 ff 0f 00 00 48 81 f9 cf 0f 00 00 77 74 48 83 e0 f0 <66> 0f 74 00 66 0f 74 48 10 66 0f 74 50 20 66 0f 74 58 30 66 0f d7
RSP: 002b:00007ffda07610d8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 00007ffda0761100 RCX: 0000000000000000
RDX: 0000000000000010 RSI: 000000000000000f RDI: 0000000000000000
RBP: 0000000000000003 R08: 0000000000000004 R09: 00000000004002c8
R10: 0000000000000000 R11: 000000000000000f R12: 0000000000402310
R13: 00000000004023a0 R14: 0000000000000000 R15: 0000000000000000

Crashes (502745):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/05 05:11 net-old ac6f929d74ba 64069d48 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/11/05 02:11 net-old ac6f929d74ba 64069d48 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/11/03 06:04 net-old 04a55c944f15 cba33199 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/11/02 11:15 net-old 859191b234f8 8bc4594f .config console log report syz C ci-upstream-net-this-kasan-gce
2020/10/28 09:15 net-old 6daa1da4e262 96e03c1c .config console log report syz C ci-upstream-net-this-kasan-gce
2020/10/28 07:22 net-old 6daa1da4e262 96e03c1c .config console log report syz C ci-upstream-net-this-kasan-gce
2020/10/28 06:37 net-old 6daa1da4e262 96e03c1c .config console log report syz C ci-upstream-net-this-kasan-gce
2020/10/27 20:09 net-old e3364c5ff3ff 94942294 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/10/27 19:48 net-old e3364c5ff3ff 94942294 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/10/27 16:48 net-old e3364c5ff3ff 94942294 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/10/27 15:58 net-old e3364c5ff3ff 94942294 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/10/27 15:41 net-old e3364c5ff3ff 94942294 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/10/24 03:52 net-old 3cb12d27ff65 2bb6666c .config console log report syz C ci-upstream-net-this-kasan-gce
2020/10/23 15:15 net-old 18ded910b589 4e740c00 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/10/20 21:42 net-old df6afe2f7c19 ff4a3345 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/10/19 16:41 net-old 0e8b8d6a2d85 ff4a3345 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/10/19 16:20 net-old 0e8b8d6a2d85 ff4a3345 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/10/19 06:26 net-old 71a0e29e9940 fea47c01 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/10/18 02:30 net-old f355a55f8202 fea47c01 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/10/17 08:18 net-old 137d23cea1c0 6e262c73 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/11/05 03:30 net-next-old 2c24eefb2462 64069d48 .config console log report syz C ci-upstream-net-kasan-gce
2020/11/04 10:39 net-next-old 3fb6928b56f6 cba33199 .config console log report syz C ci-upstream-net-kasan-gce
2020/11/03 06:31 net-next-old 760b3d61fb4e cba33199 .config console log report syz C ci-upstream-net-kasan-gce
2020/11/02 11:15 net-next-old c43fd36f7fec 8bc4594f .config console log report syz C ci-upstream-net-kasan-gce
2020/10/28 07:05 net-next-old 585bd812de4e 96e03c1c .config console log report syz C ci-upstream-net-kasan-gce
2020/10/28 05:11 net-next-old 585bd812de4e 96e03c1c .config console log report syz C ci-upstream-net-kasan-gce
2020/10/28 04:31 net-next-old 585bd812de4e 96e03c1c .config console log report syz C ci-upstream-net-kasan-gce
2020/10/27 19:59 net-next-old 3cb12d27ff65 94942294 .config console log report syz C ci-upstream-net-kasan-gce
2020/10/27 19:36 net-next-old 3cb12d27ff65 94942294 .config console log report syz C ci-upstream-net-kasan-gce
2020/10/27 16:34 net-next-old 3cb12d27ff65 94942294 .config console log report syz C ci-upstream-net-kasan-gce
2020/10/27 15:51 net-next-old 3cb12d27ff65 94942294 .config console log report syz C ci-upstream-net-kasan-gce
2020/10/27 15:33 net-next-old 3cb12d27ff65 94942294 .config console log report syz C ci-upstream-net-kasan-gce
2020/10/24 03:27 net-next-old 3cb12d27ff65 2bb6666c .config console log report syz C ci-upstream-net-kasan-gce
2020/10/23 15:14 net-next-old 9ff9b0d392ea 4e740c00 .config console log report syz C ci-upstream-net-kasan-gce
2020/10/22 18:44 net-next-old 9ff9b0d392ea be6b1582 .config console log report syz C ci-upstream-net-kasan-gce
2020/10/20 21:41 net-next-old 9ff9b0d392ea ff4a3345 .config console log report syz C ci-upstream-net-kasan-gce
2020/10/19 15:21 net-next-old 9ff9b0d392ea ff4a3345 .config console log report syz C ci-upstream-net-kasan-gce
2020/10/19 15:00 net-next-old 9ff9b0d392ea ff4a3345 .config console log report syz C ci-upstream-net-kasan-gce
2020/10/19 05:27 net-next-old 9ff9b0d392ea fea47c01 .config console log report syz C ci-upstream-net-kasan-gce
2020/10/17 03:30 net-next-old 9ff9b0d392ea 6e262c73 .config console log report syz C ci-upstream-net-kasan-gce
2020/10/16 17:15 net-next-old 9ff9b0d392ea 6e262c73 .config console log report syz C ci-upstream-net-kasan-gce
2020/11/02 07:16 upstream 31f020064f9d 8bc4594f .config console log report info ci-qemu-upstream
2020/11/02 00:30 upstream c2dc4c073fb7 8bc4594f .config console log report info ci-upstream-kasan-gce-smack-root
2020/11/02 00:10 upstream c2dc4c073fb7 8bc4594f .config console log report info ci-upstream-kasan-gce-selinux-root
2020/11/02 00:07 upstream c2dc4c073fb7 8bc4594f .config console log report info ci-upstream-kasan-gce-root
2020/11/02 00:02 upstream c2dc4c073fb7 8bc4594f .config console log report info ci-upstream-kasan-gce
2020/10/13 11:21 upstream 865c50e1d279 bd69ee0d .config console log report info ci-upstream-kasan-gce-smack-root
2020/11/02 07:27 upstream 31f020064f9d 8bc4594f .config console log report info ci-qemu-upstream-386
2020/11/01 23:44 upstream c2dc4c073fb7 8bc4594f .config console log report info ci-upstream-kasan-gce-386
2020/11/06 23:03 net-old 2bcbf42add91 64069d48 .config console log report info ci-upstream-net-this-kasan-gce
2020/11/14 08:24 bpf-next c14d61fca0d1 1bf9a662 .config console log report info ci-upstream-bpf-next-kasan-gce
2020/11/13 01:47 bpf-next c36538798fc6 16fca0c8 .config console log report info ci-upstream-bpf-next-kasan-gce
2020/11/11 01:46 bpf-next f52b8fd33257 cca87986 .config console log report info ci-upstream-bpf-next-kasan-gce
2020/11/07 21:39 bpf-next f055f355faf1 64069d48 .config console log report info ci-upstream-bpf-next-kasan-gce
2020/11/07 12:17 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 12:09 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 11:56 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 11:48 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 11:39 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 11:31 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 11:24 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 11:16 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 11:05 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 10:56 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 10:49 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 10:40 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 10:30 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 10:11 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 10:02 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 09:52 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 09:40 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 09:32 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 09:25 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 09:12 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 09:04 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 08:54 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 08:47 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 08:36 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 08:29 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 08:19 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 08:11 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 08:04 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 07:50 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 07:35 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 07:27 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 07:20 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 07:13 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 07:05 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 06:57 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 06:48 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 06:41 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 06:32 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 06:22 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 06:14 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 06:02 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/10/29 07:12 linux-next 1c86f90a16d4 f24824d3 .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/10/09 11:15 linux-next d67bc7812221 92390980 .config console log report info ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.