syzbot


BUG: unable to handle kernel NULL pointer dereference in __should_failslab

Status: closed as invalid on 2019/12/18 15:54
Subsystems: mm
[Documentation on labels]
First crash: 1590d, last: 1590d

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 1d59f6067 P4D 1d59f6067 PUD 1d59f7067 PMD 0 
Oops: 0000 [#1] SMP KASAN
CPU: 1 PID: 83 Comm: kworker/1:2 Not tainted 5.5.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: usb_hub_wq hub_event
RIP: 0010:__read_once_size include/linux/compiler.h:199 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x3d/0x60 kernel/kcov.c:203
Code: 01 1f 00 48 8b 34 24 74 09 80 b8 d4 12 00 00 00 74 2b 8b 90 b0 12 00 00 83 fa 02 75 20 48 8b 88 b8 12 00 00 8b 80 b4 12 00 00 <48> 8b 11 48 83 c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 c3 0f 1f
RSP: 0018:ffff8881d8b07968 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff8881da003900 RCX: 0000000000000000
RDX: 0000000000000002 RSI: ffffffff816792eb RDI: 0000000000000001
RBP: 0000000000000000 R08: ffff8881d8d4b100 R09: 0000000000000001
R10: ffff8881d8b07aa0 R11: ffff8881d4ec1837 R12: 0000000000000000
R13: 0000000000000008 R14: ffffffff83579529 R15: 0000000000000c00
FS:  0000000000000000(0000) GS:ffff8881db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000001d59f5000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __should_failslab+0xdb/0x180 mm/failslab.c:33
 should_failslab+0x5/0xf mm/slab_common.c:1810
 slab_pre_alloc_hook mm/slab.h:567 [inline]
 slab_alloc_node mm/slub.c:2683 [inline]
 slab_alloc mm/slub.c:2767 [inline]
 kmem_cache_alloc_trace+0x248/0x2f0 mm/slub.c:2784
 kmalloc include/linux/slab.h:556 [inline]
 usb_control_msg+0xb9/0x4a0 drivers/usb/core/message.c:142
 get_port_status drivers/usb/core/hub.c:570 [inline]
 hub_ext_port_status+0x125/0x460 drivers/usb/core/hub.c:587
 hub_port_status drivers/usb/core/hub.c:609 [inline]
 port_event drivers/usb/core/hub.c:5378 [inline]
 hub_event+0x5cd/0x3860 drivers/usb/core/hub.c:5552
 process_one_work+0x92b/0x1530 kernel/workqueue.c:2264
 worker_thread+0x96/0xe20 kernel/workqueue.c:2410
 kthread+0x318/0x420 kernel/kthread.c:255
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
Modules linked in:
CR2: 0000000000000000
---[ end trace b20052b74a84d490 ]---
RIP: 0010:__read_once_size include/linux/compiler.h:199 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x3d/0x60 kernel/kcov.c:203
Code: 01 1f 00 48 8b 34 24 74 09 80 b8 d4 12 00 00 00 74 2b 8b 90 b0 12 00 00 83 fa 02 75 20 48 8b 88 b8 12 00 00 8b 80 b4 12 00 00 <48> 8b 11 48 83 c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 c3 0f 1f
RSP: 0018:ffff8881d8b07968 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff8881da003900 RCX: 0000000000000000
RDX: 0000000000000002 RSI: ffffffff816792eb RDI: 0000000000000001
RBP: 0000000000000000 R08: ffff8881d8d4b100 R09: 0000000000000001
R10: ffff8881d8b07aa0 R11: ffff8881d4ec1837 R12: 0000000000000000
R13: 0000000000000008 R14: ffffffff83579529 R15: 0000000000000c00
FS:  0000000000000000(0000) GS:ffff8881db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000001d59f5000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/12/17 21:43 https://github.com/google/kasan.git usb-fuzzer d533c9925862 1af3875f .config console log report ci2-upstream-usb
* Struck through repros no longer work on HEAD.