syzbot


BUG: corrupted list in usb_hcd_unlink_urb_from_ep

Status: auto-closed as invalid on 2020/10/02 13:36
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+d3a377acbb4eed46c85b@syzkaller.appspotmail.com
First crash: 1383d, last: 1383d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: corrupted list in usb_hcd_unlink_urb_from_ep (2) usb 1 572d 568d 0/26 auto-obsoleted due to no activity on 2023/01/21 17:28

Sample crash report:
list_del corruption. next->prev should be ffff8880a18ff618, but was ffff8880a913ab18
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:54!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 7197 Comm: syz-executor.3 Not tainted 5.8.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_del_entry_valid.cold+0x48/0x55 lib/list_debug.c:54
Code: e8 e1 2a c2 fd 0f 0b 4c 89 e2 48 89 ee 48 c7 c7 60 93 93 88 e8 cd 2a c2 fd 0f 0b 48 89 ee 48 c7 c7 20 94 93 88 e8 bc 2a c2 fd <0f> 0b cc cc cc cc cc cc cc cc cc cc cc 41 57 41 56 41 55 41 54 55
RSP: 0018:ffffc90000007ac8 EFLAGS: 00010082
RAX: 0000000000000054 RBX: ffff8880a18ff600 RCX: 0000000000000000
RDX: ffff8880575644c0 RSI: ffffffff815d4f87 RDI: fffff52000000f4b
RBP: ffff8880a18ff618 R08: 0000000000000054 R09: ffff8880ae6318e7
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88809a5d6c68
R13: ffff88809fa5d618 R14: dffffc0000000000 R15: ffff8880a18ff600
FS:  00000000026e0940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b3332a000 CR3: 0000000057526000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __list_del_entry include/linux/list.h:132 [inline]
 list_del_init include/linux/list.h:204 [inline]
 usb_hcd_unlink_urb_from_ep+0x2c/0x160 drivers/usb/core/hcd.c:1240
 freedev drivers/block/aoe/aoedev.c:289 [inline]
 dummy_timer+0x11cb/0x2f9f drivers/block/aoe/aoedev.c:366
 call_timer_fn+0x1ac/0x760 kernel/time/timer.c:1404
 expire_timers kernel/time/timer.c:1449 [inline]
 __run_timers.part.0+0x54c/0xa20 kernel/time/timer.c:1773
 __run_timers kernel/time/timer.c:1745 [inline]
 run_timer_softirq+0xae/0x1a0 kernel/time/timer.c:1786
 __do_softirq+0x34c/0xa60 kernel/softirq.c:292
 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline]
 do_softirq_own_stack+0x111/0x170 arch/x86/kernel/irq_64.c:77
 invoke_softirq kernel/softirq.c:387 [inline]
 __irq_exit_rcu kernel/softirq.c:417 [inline]
 irq_exit_rcu+0x229/0x270 kernel/softirq.c:429
 sysvec_apic_timer_interrupt+0x54/0x120 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:596
RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:26 [inline]
RIP: 0010:check_kcov_mode kernel/kcov.c:163 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x9/0x60 kernel/kcov.c:197
Code: 5d be 03 00 00 00 e9 26 b3 23 02 66 0f 1f 44 00 00 48 8b be b0 01 00 00 e8 b4 ff ff ff 31 c0 c3 90 65 48 8b 14 25 00 ff 01 00 <65> 8b 05 50 47 8e 7e a9 00 01 ff 00 48 8b 34 24 74 0f f6 c4 01 74
RSP: 0018:ffffc90006f9fb10 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff8145da20
RDX: ffff8880575644c0 RSI: ffff8880575644c0 RDI: 0000000000000005
RBP: ffffc90006f9fd1c R08: 0000000000000001 R09: ffffffff89a09083
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffff88804b9ce0c0 R15: ffff88804b9ce534
 wait_task_continued kernel/exit.c:1225 [inline]
 wait_consider_task+0x1bb/0x3b20 kernel/exit.c:1361
 do_wait_thread kernel/exit.c:1378 [inline]
 do_wait+0x36a/0x9e0 kernel/exit.c:1449
 kernel_wait4+0x14c/0x260 kernel/exit.c:1621
 __do_sys_wait4+0x13f/0x150 kernel/exit.c:1633
 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x4169ca
Code: Bad RIP value.
RSP: 002b:00007ffca7262ab8 EFLAGS: 00000246 ORIG_RAX: 000000000000003d
RAX: ffffffffffffffda RBX: 0000000000050d6b RCX: 00000000004169ca
RDX: 0000000040000001 RSI: 00007ffca7262af0 RDI: ffffffffffffffff
RBP: 000000000000007b R08: 0000000000000001 R09: 00000000026e0940
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 00007ffca7262af0 R14: 000000000005080b R15: 00007ffca7262b00
Modules linked in:
---[ end trace 9b6b1b67c9b6a6f7 ]---
RIP: 0010:__list_del_entry_valid.cold+0x48/0x55 lib/list_debug.c:54
Code: e8 e1 2a c2 fd 0f 0b 4c 89 e2 48 89 ee 48 c7 c7 60 93 93 88 e8 cd 2a c2 fd 0f 0b 48 89 ee 48 c7 c7 20 94 93 88 e8 bc 2a c2 fd <0f> 0b cc cc cc cc cc cc cc cc cc cc cc 41 57 41 56 41 55 41 54 55
RSP: 0018:ffffc90000007ac8 EFLAGS: 00010082
RAX: 0000000000000054 RBX: ffff8880a18ff600 RCX: 0000000000000000
RDX: ffff8880575644c0 RSI: ffffffff815d4f87 RDI: fffff52000000f4b
RBP: ffff8880a18ff618 R08: 0000000000000054 R09: ffff8880ae6318e7
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88809a5d6c68
R13: ffff88809fa5d618 R14: dffffc0000000000 R15: ffff8880a18ff600
FS:  00000000026e0940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b3332a000 CR3: 0000000057526000 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
2020/07/04 13:36 upstream 7cc2a8ea1048 51095195 .config console log report ci-upstream-kasan-gce-root
* Struck through repros no longer work on HEAD.