syzbot


general protection fault in usb_gadget_udc_reset (2)

Status: auto-closed as invalid on 2019/10/25 08:44
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+326669f39a76a997dc02@syzkaller.appspotmail.com
First crash: 1766d, last: 1738d
Discussions (4)
Title Replies (including bot) Last reply
Reminder: 67 open syzbot bugs in usb subsystem 1 (1) 2019/07/24 01:35
Reminder: 47 open syzbot bugs in usb subsystem 1 (1) 2019/07/09 19:01
Reminder: 42 open syzbot bugs in usb subsystem 1 (1) 2019/06/25 03:44
general protection fault in usb_gadget_udc_reset (2) 0 (1) 2019/05/29 14:08
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in usb_gadget_udc_reset (3) usb 1 703d 697d 0/26 auto-closed as invalid on 2022/08/24 11:51
upstream general protection fault in usb_gadget_udc_reset usb 1 1793d 1793d 0/26 closed as invalid on 2019/05/14 14:46

Sample crash report:
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: 1 PID: 21 Comm: kworker/1:1 Not tainted 5.2.0-rc5+ #11
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: usb_hub_wq hub_event
RIP: 0010:usb_gadget_udc_reset+0x23/0xb0 drivers/usb/gadget/udc/core.c:1051
Code: eb d4 0f 1f 44 00 00 41 54 49 89 fc 53 48 89 f3 e8 f2 e4 a0 fd 48 8d 7b 40 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 6a 4c 89 e7 ff 53 40 49 8d 7c 24 70 48 b8 00 00 00
RSP: 0018:ffff8881d9eff4d8 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000e7f3000
RDX: 0000000000000008 RSI: ffffffff839bf38e RDI: 0000000000000040
RBP: ffff8881d4b5cdf4 R08: ffff8881d9e36000 R09: ffffed103a96b841
R10: ffffed103a96b840 R11: ffff8881d4b5c203 R12: ffff8881d4b5cdf8
R13: ffff8881d4b5c200 R14: ffff8881d4048423 R15: ffff8881d40483e4
FS:  0000000000000000(0000) GS:ffff8881db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb4ba168b8c CR3: 00000001b192f000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 set_link_state+0x7b8/0xcf0 drivers/usb/gadget/udc/dummy_hcd.c:463
 dummy_hub_control+0xbfa/0x1670 drivers/usb/gadget/udc/dummy_hcd.c:2289
 rh_call_control drivers/usb/core/hcd.c:685 [inline]
 rh_urb_enqueue drivers/usb/core/hcd.c:844 [inline]
 usb_hcd_submit_urb+0xb93/0x1ee0 drivers/usb/core/hcd.c:1652
 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:428
 hub_port_reset+0x20a/0x1440 drivers/usb/core/hub.c:2871
 hub_port_init+0x9b0/0x2c00 drivers/usb/core/hub.c:4688
 hub_port_connect drivers/usb/core/hub.c:5021 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5204 [inline]
 port_event drivers/usb/core/hub.c:5350 [inline]
 hub_event+0x18fd/0x3590 drivers/usb/core/hub.c:5432
 process_one_work+0x905/0x1570 kernel/workqueue.c:2269
 process_scheduled_works kernel/workqueue.c:2331 [inline]
 worker_thread+0x7ab/0xe20 kernel/workqueue.c:2417
 kthread+0x30b/0x410 kernel/kthread.c:255
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
Modules linked in:
---[ end trace 23ee6b515ba08ce3 ]---
RIP: 0010:usb_gadget_udc_reset+0x23/0xb0 drivers/usb/gadget/udc/core.c:1051
Code: eb d4 0f 1f 44 00 00 41 54 49 89 fc 53 48 89 f3 e8 f2 e4 a0 fd 48 8d 7b 40 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 6a 4c 89 e7 ff 53 40 49 8d 7c 24 70 48 b8 00 00 00
RSP: 0018:ffff8881d9eff4d8 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000e7f3000
RDX: 0000000000000008 RSI: ffffffff839bf38e RDI: 0000000000000040
RBP: ffff8881d4b5cdf4 R08: ffff8881d9e36000 R09: ffffed103a96b841
R10: ffffed103a96b840 R11: ffff8881d4b5c203 R12: ffff8881d4b5cdf8
R13: ffff8881d4b5c200 R14: ffff8881d4048423 R15: ffff8881d40483e4
FS:  0000000000000000(0000) GS:ffff8881db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb4ba168b8c CR3: 00000001b192f000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/06/25 13:58 https://github.com/google/kasan.git usb-fuzzer 9939f56ee6c0 0a8d1a96 .config console log report ci2-upstream-usb
2019/05/29 12:05 https://github.com/google/kasan.git usb-fuzzer 69bbe8c72e6f 6bd61501 .config console log report ci2-upstream-usb
* Struck through repros no longer work on HEAD.