syzbot


INFO: task hung in usbdev_open

Status: upstream: reported C repro on 2023/04/01 11:58
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+3caba32a3e955196dbd2@syzkaller.appspotmail.com
First crash: 417d, last: 25d
Fix bisection: failed (error log, bisect log)
  
Bug presence (2)
Date Name Commit Repro Result
2023/05/13 linux-5.15.y (ToT) b0ece631f84a C [report] INFO: task hung in usbdev_open
2023/05/12 upstream (ToT) 47a2ee5d4a0b C Didn't crash
Similar bugs (11)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in usbdev_open (3) 1 514d 514d 0/1 upstream: reported on 2022/12/25 16:08
upstream INFO: task hung in usbdev_open (2) usb C error 644 6d02h 1240d 0/26 upstream: reported C repro on 2020/12/29 11:48
linux-6.1 INFO: task hung in usbdev_open origin:lts-only C done 3 360d 417d 3/3 fixed on 2023/06/28 17:15
linux-4.19 INFO: task hung in usbdev_open (2) 2 913d 920d 0/1 auto-closed as invalid on 2022/03/21 09:54
linux-6.1 INFO: task hung in usbdev_open (2) 1 163d 163d 0/3 auto-obsoleted due to no activity on 2024/03/20 05:29
linux-4.19 INFO: task hung in usbdev_open 6 1213d 1299d 0/1 auto-closed as invalid on 2021/05/25 14:21
linux-4.14 INFO: task hung in usbdev_open 7 1172d 1311d 0/1 auto-closed as invalid on 2021/07/05 05:59
upstream INFO: task hung in usbdev_open usb 2 1701d 1701d 0/26 auto-closed as invalid on 2019/12/23 20:14
linux-6.1 INFO: task hung in usbdev_open (3) 1 52d 52d 0/3 upstream: reported on 2024/03/31 03:03
linux-4.14 INFO: task hung in usbdev_open (2) 1 464d 464d 0/1 upstream: reported on 2023/02/13 07:50
upstream INFO: task can't die in usbdev_open usb 4 1206d 1318d 0/26 auto-closed as invalid on 2021/04/02 18:49
Fix bisection attempts (6)
Created Duration User Patch Repo Result
2024/04/30 05:02 1m fix candidate upstream error job log (0)
2024/03/07 11:43 0m fix candidate upstream error job log (0)
2024/01/29 12:01 0m fix candidate upstream error job log (0)
2023/12/26 03:37 1m fix candidate upstream error job log (0)
2023/09/02 11:16 1m fix candidate upstream error job log (0)
2023/06/12 13:20 0m bisect fix linux-5.15.y error job log (0)

Sample crash report:
INFO: task syz-executor100:4100 blocked for more than 143 seconds.
      Not tainted 5.15.105-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor100 state:D stack:    0 pid: 4100 ppid:  4086 flags:0x00000001
Call trace:
 __switch_to+0x308/0x5e8 arch/arm64/kernel/process.c:518
 context_switch kernel/sched/core.c:5026 [inline]
 __schedule+0xf10/0x1e38 kernel/sched/core.c:6372
 schedule+0x11c/0x1c8 kernel/sched/core.c:6455
 schedule_preempt_disabled+0x18/0x2c kernel/sched/core.c:6514
 __mutex_lock_common+0xba0/0x2154 kernel/locking/mutex.c:669
 __mutex_lock kernel/locking/mutex.c:729 [inline]
 mutex_lock_nested+0xa4/0xf8 kernel/locking/mutex.c:743
 device_lock include/linux/device.h:760 [inline]
 usbdev_open+0x13c/0x6ec drivers/usb/core/devio.c:1030
 chrdev_open+0x3e8/0x4fc fs/char_dev.c:414
 do_dentry_open+0x780/0xed8 fs/open.c:826
 vfs_open+0x7c/0x90 fs/open.c:956
 do_open fs/namei.c:3538 [inline]
 path_openat+0x1f28/0x26f0 fs/namei.c:3672
 do_filp_open+0x1a8/0x3b4 fs/namei.c:3699
 do_sys_openat2+0x128/0x3d8 fs/open.c:1211
 do_sys_open fs/open.c:1227 [inline]
 __do_sys_openat fs/open.c:1243 [inline]
 __se_sys_openat fs/open.c:1238 [inline]
 __arm64_sys_openat+0x1f0/0x240 fs/open.c:1238
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584

Showing all locks held in the system:
5 locks held by kworker/0:0/7:
 #0: ffff0000c27af538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 kernel/workqueue.c:2279
 #1: ffff8000188a7c00 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 kernel/workqueue.c:2281
 #2: ffff0000ccaee220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline]
 #2: ffff0000ccaee220 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c8/0x48c4 drivers/usb/core/hub.c:5676
 #3: ffff0000cfa6c220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline]
 #3: ffff0000cfa6c220 (&dev->mutex){....}-{3:3}, at: __device_attach+0x90/0x480 drivers/base/dd.c:949
 #4: ffff0000cfa6e1a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline]
 #4: ffff0000cfa6e1a8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x90/0x480 drivers/base/dd.c:949
1 lock held by khungtaskd/27:
 #0: ffff800014a91660 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:268
2 locks held by getty/3733:
 #0: ffff0000d3ab0098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x40/0x50 drivers/tty/tty_ldsem.c:340
 #1: ffff80001a2ce2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1200 drivers/tty/n_tty.c:2147
4 locks held by udevd/4090:
 #0: ffff0000c8314418 (&p->lock){+.+.}-{3:3}, at: seq_read_iter+0xac/0xc44 fs/seq_file.c:182
 #1: ffff0000d56e7c88 (&of->mutex){+.+.}-{3:3}, at: kernfs_seq_start+0x58/0x3a0 fs/kernfs/file.c:112
 #2: ffff0000c170ebd0 (kn->active#65){++++}-{0:0}, at: kernfs_seq_start+0x74/0x3a0 fs/kernfs/file.c:113
 #3: ffff0000cfa6c220 (&dev->mutex){....}-{3:3}, at: device_lock_interruptible include/linux/device.h:765 [inline]
 #3: ffff0000cfa6c220 (&dev->mutex){....}-{3:3}, at: manufacturer_show+0x30/0xac drivers/usb/core/sysfs.c:141
1 lock held by syz-executor100/4100:
 #0: ffff0000ccaee220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline]
 #0: ffff0000ccaee220 (&dev->mutex){....}-{3:3}, at: usbdev_open+0x13c/0x6ec drivers/usb/core/devio.c:1030

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


Crashes (18):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/01 11:58 linux-5.15.y c957cbb87315 f325deb0 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in usbdev_open
2024/04/27 17:00 linux-5.15.y b925f60c6ee7 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in usbdev_open
2024/04/09 20:10 linux-5.15.y 9465fef4ae35 171ec371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in usbdev_open
2024/04/03 15:47 linux-5.15.y 9465fef4ae35 51c4dcff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in usbdev_open
2024/03/28 06:09 linux-5.15.y 9465fef4ae35 120789fd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in usbdev_open
2024/03/27 00:00 linux-5.15.y 9465fef4ae35 454571b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in usbdev_open
2024/03/18 04:51 linux-5.15.y b95c01af2113 d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in usbdev_open
2024/03/18 02:19 linux-5.15.y b95c01af2113 d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in usbdev_open
2023/08/27 02:36 linux-5.15.y 5ddfe5cc8716 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in usbdev_open
2023/08/11 03:59 linux-5.15.y c275eaaaa342 da3c3ef8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in usbdev_open
2023/07/06 17:22 linux-5.15.y d54cfc420586 1a2f6297 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in usbdev_open
2023/06/29 01:21 linux-5.15.y 4af60700a60c ca69c785 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in usbdev_open
2023/05/13 12:14 linux-5.15.y b0ece631f84a 2b9ba477 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in usbdev_open
2023/05/06 18:06 linux-5.15.y 8a7f2a5c5aa1 90c93c40 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in usbdev_open
2023/05/01 11:48 linux-5.15.y 8a7f2a5c5aa1 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in usbdev_open
2023/04/06 12:11 linux-5.15.y d86dfc4d95cd 08707520 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in usbdev_open
2023/04/05 20:38 linux-5.15.y d86dfc4d95cd 8b834965 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in usbdev_open
2023/04/05 12:33 linux-5.15.y d86dfc4d95cd 831373d3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in usbdev_open
* Struck through repros no longer work on HEAD.