syzbot


BUG: unable to handle kernel NULL pointer dereference in debug_smp_processor_id

Status: closed as invalid on 2020/06/10 12:27
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+0516f001db1371c0a13a@syzkaller.appspotmail.com
First crash: 1419d, last: 1416d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel NULL pointer dereference in debug_smp_processor_id (2) net 3 1400d 1407d 15/26 fixed on 2020/07/17 17:58

Sample crash report:
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 653c8067 P4D 653c8067 PUD 5e574067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 12853 Comm: syz-executor.0 Not tainted 5.7.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:252 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x43/0x60 kernel/kcov.c:202
Code: 24 74 0f 80 e6 01 74 35 8b 90 04 14 00 00 85 d2 74 2b 8b 90 e0 13 00 00 83 fa 02 75 20 48 8b 88 e8 13 00 00 8b 80 e4 13 00 00 <48> 8b 11 48 83 c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 c3 66 0f
RSP: 0018:ffffc90004cf74c0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000002 RSI: ffffffff839dd0e8 RDI: 0000000000000001
RBP: ffffc90004cf75a8 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000037dc0 R14: 0000000000037dc0 R15: dffffc0000000000
FS:  00007f324d1de700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000053990000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 check_preemption_disabled lib/smp_processor_id.c:14 [inline]
 debug_smp_processor_id+0x8/0x185 lib/smp_processor_id.c:57
 __schedule+0x7b/0x1fc0 kernel/sched/core.c:4082
 preempt_schedule_common+0x4a/0xc0 kernel/sched/core.c:4312
 preempt_schedule_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:50
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline]
 _raw_spin_unlock_irqrestore+0xb2/0xe0 kernel/locking/spinlock.c:191
 spin_unlock_irqrestore include/linux/spinlock.h:408 [inline]
 usb_rh_urb_dequeue drivers/usb/core/hcd.c:874 [inline]
 unlink1+0x2d8/0x3a0 drivers/usb/core/hcd.c:1578
 usb_hcd_unlink_urb+0x123/0x180 drivers/usb/core/hcd.c:1615
 usb_kill_urb drivers/usb/core/urb.c:695 [inline]
 usb_kill_urb+0x116/0x2b0 drivers/usb/core/urb.c:688
 hub_quiesce+0x1de/0x310 drivers/usb/core/hub.c:1326
 hub_suspend+0x496/0x910 drivers/usb/core/hub.c:3747
 usb_suspend_interface drivers/usb/core/driver.c:1247 [inline]
 usb_suspend_both+0x266/0x8a0 drivers/usb/core/driver.c:1352
 usb_runtime_suspend+0x46/0x120 drivers/usb/core/driver.c:1890
 __rpm_callback+0x27e/0x3c0 drivers/base/power/runtime.c:357
 rpm_callback+0x18f/0x230 drivers/base/power/runtime.c:487
 rpm_suspend+0x36f/0x1350 drivers/base/power/runtime.c:627
 __pm_runtime_suspend+0xbe/0x320 drivers/base/power/runtime.c:1050
 usbdev_release+0x3d9/0x4b0 drivers/usb/core/devio.c:1089
 __fput+0x33e/0x880 fs/file_table.c:281
 task_work_run+0xf4/0x1b0 kernel/task_work.c:123
 get_signal+0x207a/0x2510 kernel/signal.c:2533
 do_signal+0x81/0x2240 arch/x86/kernel/signal.c:810
 exit_to_usermode_loop+0x26c/0x360 arch/x86/entry/common.c:161
 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:279 [inline]
 do_syscall_64+0x6b1/0x7d0 arch/x86/entry/common.c:305
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x45ca69
Code: 0d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f324d1ddc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: fffffffffffffff0 RBX: 00000000004f0480 RCX: 000000000045ca69
RDX: 00000000200002c0 RSI: 0000000080045503 RDI: 0000000000000003
RBP: 000000000078bfa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000005d8 R14: 00000000004c8a38 R15: 00007f324d1de6d4
Modules linked in:
CR2: 0000000000000000
---[ end trace e3f818f3262c252f ]---
RIP: 0010:__read_once_size include/linux/compiler.h:252 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x43/0x60 kernel/kcov.c:202
Code: 24 74 0f 80 e6 01 74 35 8b 90 04 14 00 00 85 d2 74 2b 8b 90 e0 13 00 00 83 fa 02 75 20 48 8b 88 e8 13 00 00 8b 80 e4 13 00 00 <48> 8b 11 48 83 c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 c3 66 0f
RSP: 0018:ffffc90004cf74c0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000002 RSI: ffffffff839dd0e8 RDI: 0000000000000001
RBP: ffffc90004cf75a8 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000037dc0 R14: 0000000000037dc0 R15: dffffc0000000000
FS:  00007f324d1de700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000053990000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/06/08 14:56 upstream 7ae77150d94d 7604bb03 .config console log report ci-upstream-kasan-gce
2020/06/06 16:58 upstream 435faf5c218a e6b89e4e .config console log report ci-qemu-upstream
2020/06/09 16:28 upstream 435faf5c218a 092934c1 .config console log report ci-qemu-upstream-386
* Struck through repros no longer work on HEAD.