syzbot


INFO: task hung in usbdev_open

Status: auto-closed as invalid on 2019/12/23 20:14
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 1049d, last: 1049d
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in usbdev_open (2) 181 12h16m 587d 0/23 upstream: reported on 2020/12/29 11:48
linux-4.19 INFO: task hung in usbdev_open (2) 2 260d 268d 0/1 auto-closed as invalid on 2022/03/21 09:54
linux-4.19 INFO: task hung in usbdev_open 6 560d 647d 0/1 auto-closed as invalid on 2021/05/25 14:21
linux-4.14 INFO: task hung in usbdev_open 7 519d 658d 0/1 auto-closed as invalid on 2021/07/05 05:59

Sample crash report:
INFO: task syz-executor.1:8782 blocked for more than 143 seconds.
      Not tainted 5.3.0+ #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.1  D29272  8782   1752 0x00000004
Call Trace:
 schedule+0xca/0x250 kernel/sched/core.c:4132
 schedule_preempt_disabled+0xc/0x20 kernel/sched/core.c:4191
 __mutex_lock_common kernel/locking/mutex.c:1033 [inline]
 __mutex_lock+0x881/0x1360 kernel/locking/mutex.c:1103
 device_lock include/linux/device.h:1462 [inline]
 usbdev_open+0x19d/0x840 drivers/usb/core/devio.c:1007
 chrdev_open+0x219/0x5c0 fs/char_dev.c:414
 do_dentry_open+0x494/0x1120 fs/open.c:797
 do_last fs/namei.c:3408 [inline]
 path_openat+0x1430/0x3f50 fs/namei.c:3525
 do_filp_open+0x1a1/0x280 fs/namei.c:3555
 do_sys_open+0x3c0/0x580 fs/open.c:1089
 do_syscall_64+0xb7/0x580 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x413911
Code: c3 fe ff ff 31 c0 48 89 ee bf 30 31 44 00 e8 36 d7 00 00 b8 14 fc ff ff e9 ac fe ff ff 66 66 66 2e 0f 1f 84 00 00 00 00 00 53 <48> 89 fe 48 89 fb 31 c0 bf 89 3c 44 00 e8 0d d7 00 00 66 83 bb c8
RSP: 002b:00007fbdc67937a0 EFLAGS: 00000293 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 6666666666666667 RCX: 0000000000413911
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 00007fbdc6793850
RBP: 000000000075bf20 R08: 000000000000000f R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 00007fbdc67946d4
R13: 00000000004c8fb6 R14: 00000000004e0138 R15: 00000000ffffffff
INFO: task syz-executor.1:8783 blocked for more than 143 seconds.
      Not tainted 5.3.0+ #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.1  D29424  8783   1752 0x00000004
Call Trace:
 schedule+0xca/0x250 kernel/sched/core.c:4132
 schedule_preempt_disabled+0xc/0x20 kernel/sched/core.c:4191
 __mutex_lock_common kernel/locking/mutex.c:1033 [inline]
 __mutex_lock+0x881/0x1360 kernel/locking/mutex.c:1103
 device_lock include/linux/device.h:1462 [inline]
 usbdev_open+0x19d/0x840 drivers/usb/core/devio.c:1007
 chrdev_open+0x219/0x5c0 fs/char_dev.c:414
 do_dentry_open+0x494/0x1120 fs/open.c:797
 do_last fs/namei.c:3408 [inline]
 path_openat+0x1430/0x3f50 fs/namei.c:3525
 do_filp_open+0x1a1/0x280 fs/namei.c:3555
 do_sys_open+0x3c0/0x580 fs/open.c:1089
 do_syscall_64+0xb7/0x580 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x413911
Code: c3 fe ff ff 31 c0 48 89 ee bf 30 31 44 00 e8 36 d7 00 00 b8 14 fc ff ff e9 ac fe ff ff 66 66 66 2e 0f 1f 84 00 00 00 00 00 53 <48> 89 fe 48 89 fb 31 c0 bf 89 3c 44 00 e8 0d d7 00 00 66 83 bb c8
RSP: 002b:00007fbdc67727a0 EFLAGS: 00000293 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 6666666666666667 RCX: 0000000000413911
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 00007fbdc6772850
RBP: 000000000075bfc8 R08: 000000000000000f R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 00007fbdc67736d4
R13: 00000000004c8fb6 R14: 00000000004e0138 R15: 00000000ffffffff

Showing all locks held in the system:
1 lock held by khungtaskd/23:
 #0: ffffffff86eff3e0 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x269 kernel/locking/lockdep.c:5335
9 locks held by kworker/1:2/83:
1 lock held by rsyslogd/1598:
 #0: ffff8881c70779e0 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xe3/0x100 fs/file.c:801
2 locks held by getty/1688:
 #0: ffff8881d9175590 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272
 #1: ffffc900004692e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x223/0x1ae0 drivers/tty/n_tty.c:2156
2 locks held by getty/1689:
 #0: ffff8881d9135e10 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272
 #1: ffffc9000048d2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x223/0x1ae0 drivers/tty/n_tty.c:2156
2 locks held by getty/1690:
 #0: ffff8881d9172290 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272
 #1: ffffc900004712e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x223/0x1ae0 drivers/tty/n_tty.c:2156
2 locks held by getty/1691:
 #0: ffff8881d9136690 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272
 #1: ffffc9000047d2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x223/0x1ae0 drivers/tty/n_tty.c:2156
2 locks held by getty/1692:
 #0: ffff8881d9799a10 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272
 #1: ffffc900004892e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x223/0x1ae0 drivers/tty/n_tty.c:2156
2 locks held by getty/1693:
 #0: ffff8881d9135590 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272
 #1: ffffc900004852e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x223/0x1ae0 drivers/tty/n_tty.c:2156
2 locks held by getty/1694:
 #0: ffff8881da03ab10 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272
 #1: ffffc900004552e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x223/0x1ae0 drivers/tty/n_tty.c:2156
1 lock held by syz-executor.1/8782:
 #0: ffff8881d5ca2c80 (&dev->mutex){....}, at: device_lock include/linux/device.h:1462 [inline]
 #0: ffff8881d5ca2c80 (&dev->mutex){....}, at: usbdev_open+0x19d/0x840 drivers/usb/core/devio.c:1007
1 lock held by syz-executor.1/8783:
 #0: ffff8881d5ca2c80 (&dev->mutex){....}, at: device_lock include/linux/device.h:1462 [inline]
 #0: ffff8881d5ca2c80 (&dev->mutex){....}, at: usbdev_open+0x19d/0x840 drivers/usb/core/devio.c:1007

=============================================

NMI backtrace for cpu 0
CPU: 0 PID: 23 Comm: khungtaskd Not tainted 5.3.0+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0xca/0x13e lib/dump_stack.c:113
 nmi_cpu_backtrace.cold+0x55/0x96 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1b0/0x1c7 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:205 [inline]
 watchdog+0x9a4/0xe50 kernel/hung_task.c:289
 kthread+0x318/0x420 kernel/kthread.c:255
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:60 [inline]
NMI backtrace for cpu 1 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:103 [inline]
NMI backtrace for cpu 1 skipped: idling at default_idle+0x28/0x2e0 arch/x86/kernel/process.c:580

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-usb 2019/09/24 20:08 https://github.com/google/kasan.git usb-fuzzer d9e63adcd16e f8368f99 .config log report
ci2-upstream-usb 2019/09/24 19:03 https://github.com/google/kasan.git usb-fuzzer d9e63adcd16e f8368f99 .config log report