syzbot


UBSAN: array-index-out-of-bounds in ehci_hub_control

Status: auto-closed as invalid on 2022/02/17 05:27
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+9df2568864dedf79db36@syzkaller.appspotmail.com
First crash: 922d, last: 917d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] UBSAN: array-index-out-of-bounds in ehci_hub_control 1 (2) 2021/10/19 23:35

Sample crash report:
================================================================================
UBSAN: array-index-out-of-bounds in drivers/usb/host/ehci-hub.c:754:39
index 254 is out of range for type 'u32 [15]'
CPU: 0 PID: 11514 Comm: syz-executor.1 Not tainted 5.15.0-rc5-syzkaller #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
Call Trace:
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 ubsan_epilogue+0xb/0x5a lib/ubsan.c:151
 __ubsan_handle_out_of_bounds.cold+0x62/0x6c lib/ubsan.c:291
 ehci_hub_control+0x22ad/0x2720 drivers/usb/host/ehci-hub.c:754
 rh_call_control drivers/usb/core/hcd.c:683 [inline]
 rh_urb_enqueue drivers/usb/core/hcd.c:841 [inline]
 usb_hcd_submit_urb+0xcaf/0x22d0 drivers/usb/core/hcd.c:1544
 usb_submit_urb+0x86d/0x18a0 drivers/usb/core/urb.c:594
 usb_start_wait_urb+0x101/0x4c0 drivers/usb/core/message.c:58
 usb_internal_control_msg drivers/usb/core/message.c:102 [inline]
 usb_control_msg+0x31c/0x4a0 drivers/usb/core/message.c:153
 do_proc_control+0x40a/0x9f0 drivers/usb/core/devio.c:1165
 proc_control drivers/usb/core/devio.c:1191 [inline]
 usbdev_do_ioctl drivers/usb/core/devio.c:2540 [inline]
 usbdev_ioctl+0x10e2/0x36c0 drivers/usb/core/devio.c:2713
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl fs/ioctl.c:860 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fdbaec43a39
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fdbac1b9188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fdbaed46f60 RCX: 00007fdbaec43a39
RDX: 0000000020000000 RSI: 00000000c0185500 RDI: 0000000000000003
RBP: 00007fdbaec9dc5f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe5b9cffbf R14: 00007fdbac1b9300 R15: 0000000000022000
================================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/10/17 14:12 upstream d999ade1cc86 0c5d9412 .config console log report info ci-qemu-upstream UBSAN: array-index-out-of-bounds in ehci_hub_control
2021/10/15 20:36 upstream ec681c53f8d2 0c5d9412 .config console log report info ci-qemu-upstream UBSAN: array-index-out-of-bounds in ehci_hub_control
2021/10/15 20:35 upstream ec681c53f8d2 0c5d9412 .config console log report info ci-qemu-upstream UBSAN: array-index-out-of-bounds in ehci_hub_control
2021/10/20 05:26 upstream d9abdee5fd5a 466b7db1 .config console log report info ci-qemu-upstream-386 UBSAN: array-index-out-of-bounds in ehci_hub_control
2021/10/15 20:44 upstream ec681c53f8d2 0c5d9412 .config console log report info ci-qemu-upstream-386 UBSAN: array-index-out-of-bounds in ehci_hub_control
* Struck through repros no longer work on HEAD.