syzbot


general protection fault in raw_event_queue_add

Status: closed as invalid on 2019/11/05 14:21
Subsystems: usb
[Documentation on labels]
First crash: 1911d, last: 1911d

Sample crash report:
usb 2-1: new high-speed USB device number 83 using dummy_hcd
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
CPU: 0 PID: 22744 Comm: kworker/0:4 Not tainted 5.4.0-rc6+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: usb_hub_wq hub_event
RIP: 0010:__lock_acquire+0x10b0/0x3b60 kernel/locking/lockdep.c:3828
Code: 00 0f 85 84 1e 00 00 48 81 c4 e8 00 00 00 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 db 20 00 00 49 81 3e 60 49 64 88 0f 84 11 f0 ff
RSP: 0018:ffff888196aff290 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 00000000000000d9 RSI: 0000000000000000 RDI: 00000000000006c8
RBP: ffff8881b10b6000 R08: 0000000000000001 R09: 0000000000000001
R10: fffffbfff0f0cd20 R11: ffffffff87866907 R12: 0000000000000001
R13: 0000000000000000 R14: 00000000000006c8 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8881db200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff0f1bbdb0 CR3: 00000001b42bd000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lock_acquire+0x127/0x320 kernel/locking/lockdep.c:4487
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x32/0x50 kernel/locking/spinlock.c:159
 raw_event_queue_add+0x2f/0x1f0 drivers/usb/gadget/raw/raw.c:52
 raw_queue_event drivers/usb/gadget/raw/raw.c:210 [inline]
 gadget_disconnect+0x44/0x70 drivers/usb/gadget/raw/raw.c:340
 usb_gadget_udc_reset+0x2f/0xb0 drivers/usb/gadget/udc/core.c:1062
 set_link_state+0x7b8/0xcf0 drivers/usb/gadget/udc/dummy_hcd.c:464
 dummy_hub_control+0x4ea/0x13f0 drivers/usb/gadget/udc/dummy_hcd.c:2290
 rh_call_control drivers/usb/core/hcd.c:682 [inline]
 rh_urb_enqueue drivers/usb/core/hcd.c:841 [inline]
 usb_hcd_submit_urb+0xb93/0x1ee0 drivers/usb/core/hcd.c:1548
 usb_submit_urb+0x6e5/0x13b0 drivers/usb/core/urb.c:569
 usb_start_wait_urb+0x108/0x2b0 drivers/usb/core/message.c:57
 usb_internal_control_msg drivers/usb/core/message.c:101 [inline]
 usb_control_msg+0x31c/0x4a0 drivers/usb/core/message.c:152
 set_port_feature+0x69/0x90 drivers/usb/core/hub.c:429
 hub_port_reset+0x22c/0x1460 drivers/usb/core/hub.c:2874
 hub_port_init+0xa0a/0x2d30 drivers/usb/core/hub.c:4698
 hub_port_connect drivers/usb/core/hub.c:5116 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5324 [inline]
 port_event drivers/usb/core/hub.c:5470 [inline]
 hub_event+0x1c1b/0x3800 drivers/usb/core/hub.c:5552
 process_one_work+0x92b/0x1530 kernel/workqueue.c:2269
 worker_thread+0x96/0xe20 kernel/workqueue.c:2415
 kthread+0x318/0x420 kernel/kthread.c:255
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
Modules linked in:
---[ end trace 092d9c18484bbbbb ]---
RIP: 0010:__lock_acquire+0x10b0/0x3b60 kernel/locking/lockdep.c:3828
Code: 00 0f 85 84 1e 00 00 48 81 c4 e8 00 00 00 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 db 20 00 00 49 81 3e 60 49 64 88 0f 84 11 f0 ff
RSP: 0018:ffff888196aff290 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 00000000000000d9 RSI: 0000000000000000 RDI: 00000000000006c8
RBP: ffff8881b10b6000 R08: 0000000000000001 R09: 0000000000000001
R10: fffffbfff0f0cd20 R11: ffffffff87866907 R12: 0000000000000001
R13: 0000000000000000 R14: 00000000000006c8 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8881db200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff0f1bbdb0 CR3: 00000001b42bd000 CR4: 00000000001406f0
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/11/05 05:04 https://github.com/google/kasan.git usb-fuzzer 16bfd2aef585 76630fc9 .config console log report ci2-upstream-usb
* Struck through repros no longer work on HEAD.