syzbot


INFO: task hung in virtio_cleanup

Status: auto-obsoleted due to no activity on 2024/10/06 12:15
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+0412dc78d4107e624ce9@syzkaller.appspotmail.com
First crash: 612d, last: 490d
Fix bisection: failed (error log, bisect log)
  
Bug presence (2)
Date Name Commit Repro Result
2023/05/15 linux-5.15.y (ToT) b0ece631f84a C [report] INFO: task hung in virtio_cleanup
2023/05/14 upstream (ToT) 838a854820ee C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in virtio_cleanup usb crypto C done inconclusive 16 1132d 1418d 0/28 closed as invalid on 2023/04/06 23:24
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/10/06 11:17 19m retest repro linux-5.15.y OK log
2024/10/06 11:17 37m retest repro linux-5.15.y OK log
Fix bisection attempts (10)
Created Duration User Patch Repo Result
2024/08/14 22:02 1m fix candidate upstream error job log
2024/06/13 19:33 0m fix candidate upstream error job log
2024/05/13 04:53 2m fix candidate upstream error job log
2024/03/28 02:58 1m fix candidate upstream error job log
2024/02/12 20:39 1m fix candidate upstream error job log
2024/01/02 18:30 0m fix candidate upstream error job log
2023/11/30 19:35 2m fix candidate upstream error job log
2023/10/26 16:34 0m fix candidate upstream error job log
2023/09/25 23:46 0m bisect fix linux-5.15.y error job log
2023/04/21 21:27 54m bisect fix linux-5.15.y OK (0) job log log

Sample crash report:
INFO: task kworker/1:1:25 blocked for more than 143 seconds.
      Not tainted 5.15.118-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/1:1     state:D stack:    0 pid:   25 ppid:     2 flags:0x00000008
Workqueue: usb_hub_wq hub_event
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_timeout+0xb8/0x344 kernel/time/timer.c:1860
 do_wait_for_common+0x214/0x388 kernel/sched/completion.c:85
 __wait_for_common kernel/sched/completion.c:106 [inline]
 wait_for_common kernel/sched/completion.c:117 [inline]
 wait_for_completion+0x4c/0x64 kernel/sched/completion.c:138
 virtio_cleanup+0x7c/0xa4 drivers/char/hw_random/virtio-rng.c:85
 cleanup_rng drivers/char/hw_random/core.c:82 [inline]
 kref_put include/linux/kref.h:65 [inline]
 drop_current_rng+0xa8/0x140 drivers/char/hw_random/core.c:110
 set_current_rng+0x358/0x4ac drivers/char/hw_random/core.c:97
 hwrng_register+0x31c/0x4c8 drivers/char/hw_random/core.c:500
 chaoskey_probe+0x618/0x92c drivers/usb/misc/chaoskey.c:205
 usb_probe_interface+0x500/0x984 drivers/usb/core/driver.c:396
 really_probe+0x26c/0xaec drivers/base/dd.c:595
 __driver_probe_device+0x194/0x3b4 drivers/base/dd.c:755
 driver_probe_device+0x78/0x34c drivers/base/dd.c:785
 __device_attach_driver+0x28c/0x4d8 drivers/base/dd.c:907
 bus_for_each_drv+0x158/0x1e0 drivers/base/bus.c:427
 __device_attach+0x2f0/0x480 drivers/base/dd.c:979
 device_initial_probe+0x24/0x34 drivers/base/dd.c:1028
 bus_probe_device+0xbc/0x1c8 drivers/base/bus.c:487
 device_add+0xae0/0xef4 drivers/base/core.c:3394
 usb_set_configuration+0x15e0/0x1b60 drivers/usb/core/message.c:2170
 usb_generic_driver_probe+0x8c/0x148 drivers/usb/core/generic.c:238
 usb_probe_device+0x120/0x25c drivers/usb/core/driver.c:293
 really_probe+0x26c/0xaec drivers/base/dd.c:595
 __driver_probe_device+0x194/0x3b4 drivers/base/dd.c:755
 driver_probe_device+0x78/0x34c drivers/base/dd.c:785
 __device_attach_driver+0x28c/0x4d8 drivers/base/dd.c:907
 bus_for_each_drv+0x158/0x1e0 drivers/base/bus.c:427
 __device_attach+0x2f0/0x480 drivers/base/dd.c:979
 device_initial_probe+0x24/0x34 drivers/base/dd.c:1028
 bus_probe_device+0xbc/0x1c8 drivers/base/bus.c:487
 device_add+0xae0/0xef4 drivers/base/core.c:3394
 usb_new_device+0x8fc/0x1448 drivers/usb/core/hub.c:2568
 hub_port_connect drivers/usb/core/hub.c:5358 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5502 [inline]
 port_event drivers/usb/core/hub.c:5648 [inline]
 hub_event+0x22e4/0x48c4 drivers/usb/core/hub.c:5730
 process_one_work+0x790/0x11b8 kernel/workqueue.c:2307
 worker_thread+0x910/0x1034 kernel/workqueue.c:2454
 kthread+0x37c/0x45c kernel/kthread.c:319
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870

Showing all locks held in the system:
6 locks held by kworker/1:1/25:
 #0: ffff0000c2756538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 kernel/workqueue.c:2280
 #1: ffff800018a17c00 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 kernel/workqueue.c:2282
 #2: ffff0000cef80220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline]
 #2: ffff0000cef80220 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c8/0x48c4 drivers/usb/core/hub.c:5676
 #3: ffff0000d82cd220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline]
 #3: ffff0000d82cd220 (&dev->mutex){....}-{3:3}, at: __device_attach+0x90/0x480 drivers/base/dd.c:954
 #4: ffff0000d82ce1a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline]
 #4: ffff0000d82ce1a8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x90/0x480 drivers/base/dd.c:954
 #5: ffff800015a63b28 (rng_mutex){+.+.}-{3:3}, at: hwrng_register+0xb4/0x4c8 drivers/char/hw_random/core.c:473
1 lock held by khungtaskd/27:
 #0: ffff800014ac19a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:268
1 lock held by hwrng/1218:
 #0: ffff800015a63b28 (rng_mutex){+.+.}-{3:3}, at: get_current_rng+0x28/0x120 drivers/char/hw_random/core.c:127
2 locks held by getty/3719:
 #0: ffff0000d2086098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x40/0x50 drivers/tty/tty_ldsem.c:340
 #1: ffff80001a0ce2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1200 drivers/tty/n_tty.c:2147

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


Crashes (28):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/25 10:00 linux-5.15.y f67653019430 79782afc .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/03/19 17:35 linux-5.15.y 8020ae3c051d 7939252e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/07/20 03:38 linux-5.15.y d54cfc420586 4547cdf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/07/02 14:23 linux-5.15.y 4af60700a60c bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/07/02 14:13 linux-5.15.y 4af60700a60c bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/07/01 01:14 linux-5.15.y 4af60700a60c af3053d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/06/29 11:21 linux-5.15.y 4af60700a60c 134ddc02 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/06/27 01:53 linux-5.15.y f67653019430 4cd5bb25 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/06/19 22:04 linux-5.15.y 471e639e59d1 d521bc56 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/06/17 16:14 linux-5.15.y 471e639e59d1 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/06/16 12:15 linux-5.15.y 471e639e59d1 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/06/14 20:12 linux-5.15.y 471e639e59d1 d2ee9228 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/06/14 20:03 linux-5.15.y 471e639e59d1 d2ee9228 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/06/13 00:42 linux-5.15.y 7349e40704a0 aaed0183 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/06/06 20:05 linux-5.15.y d7af3e5ba454 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/06/06 19:45 linux-5.15.y d7af3e5ba454 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/06/05 06:47 linux-5.15.y 0ab06468cbd1 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/05/31 15:19 linux-5.15.y 0ab06468cbd1 09898419 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/05/31 15:19 linux-5.15.y 0ab06468cbd1 09898419 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/05/31 01:40 linux-5.15.y 0ab06468cbd1 df37c7f1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/05/29 23:50 linux-5.15.y 1fe619a7d252 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/05/22 07:47 linux-5.15.y 9d6bde853685 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/05/19 11:50 linux-5.15.y 9d6bde853685 3bb7af1d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/05/18 17:44 linux-5.15.y 9d6bde853685 3bb7af1d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/05/12 05:33 linux-5.15.y b0ece631f84a adb9a3cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/03/21 21:50 linux-5.15.y 8020ae3c051d 8b4eb097 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/03/19 19:05 linux-5.15.y 8020ae3c051d 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
2023/03/19 19:05 linux-5.15.y 8020ae3c051d 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in virtio_cleanup
* Struck through repros no longer work on HEAD.