syzbot


BUG: corrupted list in usb_hcd_link_urb_to_ep (4)

Status: moderation: reported on 2024/11/01 23:15
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+565a307118bc54790723@syzkaller.appspotmail.com
First crash: 39d, last: 10d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: corrupted list in usb_hcd_link_urb_to_ep usb 1 1607d 1607d 0/28 auto-closed as invalid on 2020/11/11 04:30
upstream BUG: corrupted list in usb_hcd_link_urb_to_ep (2) usb C error error 2 379d 1047d 0/28 auto-obsoleted due to no activity on 2024/03/02 17:43
upstream BUG: corrupted list in usb_hcd_link_urb_to_ep (3) usb 1 187d 183d 0/28 auto-obsoleted due to no activity on 2024/08/31 17:07

Sample crash report:
list_add double add: new=ffff88806a37e818, prev=ffff88806a37e818, next=ffff88807a6b9070.
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:35!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 16361 Comm: syz.6.2731 Not tainted 6.12.0-syzkaller-09567-g7eef7e306d3c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:__list_add_valid_or_report+0xd6/0x100 lib/list_debug.c:35
Code: 89 f1 48 c7 c7 00 d8 d1 8b 48 89 de e8 83 e3 d3 fc 90 0f 0b 48 89 f2 48 89 d9 48 89 ee 48 c7 c7 80 d8 d1 8b e8 6b e3 d3 fc 90 <0f> 0b 48 89 f7 48 89 34 24 e8 cc 9b 57 fd 48 8b 34 24 e9 6c ff ff
RSP: 0018:ffffc9000e44f4b0 EFLAGS: 00010086
RAX: 0000000000000058 RBX: ffff88807a6b9070 RCX: ffffc900230c9000
RDX: 0000000000000000 RSI: ffffffff816eb726 RDI: 0000000000000005
RBP: ffff88806a37e818 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000004 R11: ffffffff96232c78 R12: 0000000000000000
R13: ffff88806a37e818 R14: ffff88806a37e818 R15: ffff88807a6b9078
FS:  00007fcf007746c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2ff20000 CR3: 000000004dcf8000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __list_add_valid include/linux/list.h:88 [inline]
 __list_add include/linux/list.h:150 [inline]
 list_add_tail include/linux/list.h:183 [inline]
 usb_hcd_link_urb_to_ep+0x21d/0x390 drivers/usb/core/hcd.c:1158
 dummy_urb_enqueue+0x291/0x8e0 drivers/usb/gadget/udc/dummy_hcd.c:1287
 usb_hcd_submit_urb+0x2d1/0x2090 drivers/usb/core/hcd.c:1533
 usb_submit_urb+0x87c/0x1730 drivers/usb/core/urb.c:581
 cm109_submit_buzz_toggle+0xd8/0x180 drivers/input/misc/cm109.c:351
 cm109_toggle_buzzer_async+0x90/0xa0 drivers/input/misc/cm109.c:484
 cm109_input_ev+0x171/0x1b0 drivers/input/misc/cm109.c:615
 input_event_dispose drivers/input/input.c:321 [inline]
 input_handle_event+0x14e/0x14d0 drivers/input/input.c:369
 input_inject_event+0x1bb/0x370 drivers/input/input.c:428
 kd_sound_helper+0x17a/0x280 drivers/tty/vt/keyboard.c:256
 input_handler_for_each_handle+0xd4/0x250 drivers/input/input.c:2623
 kd_mksound+0x89/0x130 drivers/tty/vt/keyboard.c:280
 handle_ascii drivers/tty/vt/vt.c:2251 [inline]
 do_con_trol drivers/tty/vt/vt.c:2568 [inline]
 do_con_write+0x2e6f/0x7bb0 drivers/tty/vt/vt.c:3092
 con_write+0x23/0xb0 drivers/tty/vt/vt.c:3434
 process_output_block drivers/tty/n_tty.c:574 [inline]
 n_tty_write+0x419/0x1140 drivers/tty/n_tty.c:2389
 iterate_tty_write drivers/tty/tty_io.c:1015 [inline]
 file_tty_write.constprop.0+0x506/0x9a0 drivers/tty/tty_io.c:1090
 new_sync_write fs/read_write.c:586 [inline]
 vfs_write+0x5ae/0x1150 fs/read_write.c:679
 ksys_write+0x12b/0x250 fs/read_write.c:731
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fceff97e819
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcf00774038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fceffb36080 RCX: 00007fceff97e819
RDX: 0000000000001006 RSI: 0000000020001040 RDI: 0000000000000008
RBP: 00007fceff9f175e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fceffb36080 R15: 00007ffe1ab40c38
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_add_valid_or_report+0xd6/0x100 lib/list_debug.c:35
Code: 89 f1 48 c7 c7 00 d8 d1 8b 48 89 de e8 83 e3 d3 fc 90 0f 0b 48 89 f2 48 89 d9 48 89 ee 48 c7 c7 80 d8 d1 8b e8 6b e3 d3 fc 90 <0f> 0b 48 89 f7 48 89 34 24 e8 cc 9b 57 fd 48 8b 34 24 e9 6c ff ff
RSP: 0018:ffffc9000e44f4b0 EFLAGS: 00010086
RAX: 0000000000000058 RBX: ffff88807a6b9070 RCX: ffffc900230c9000
RDX: 0000000000000000 RSI: ffffffff816eb726 RDI: 0000000000000005
RBP: ffff88806a37e818 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000004 R11: ffffffff96232c78 R12: 0000000000000000
R13: ffff88806a37e818 R14: ffff88806a37e818 R15: ffff88807a6b9078
FS:  00007fcf007746c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2ff20000 CR3: 000000004dcf8000 CR4: 00000000003526f0
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
2024/11/26 17:49 upstream 7eef7e306d3c 11dbc254 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: corrupted list in usb_hcd_link_urb_to_ep
2024/11/05 09:29 upstream 557329bcecc2 509da429 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root BUG: corrupted list in usb_hcd_link_urb_to_ep
2024/10/28 23:12 upstream e42b1a9a2557 5fe1d0f5 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: corrupted list in usb_hcd_link_urb_to_ep
* Struck through repros no longer work on HEAD.