syzbot


INFO: task hung in msleep (2)

Status: auto-obsoleted due to no activity on 2025/07/05 04:05
Subsystems: kernel
[Documentation on labels]
First crash: 258d, last: 131d
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in msleep net 1 2 444d 447d 0/29 auto-obsoleted due to no activity on 2024/08/26 19:16
upstream INFO: task can't die in msleep net 1 C done 10 1603d 1600d 0/29 auto-obsoleted due to no activity on 2023/04/25 11:23

Sample crash report:
INFO: task kworker/0:5:5902 blocked for more than 143 seconds.
      Not tainted 6.14.0-syzkaller-13524-gf4d2ef48250a #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/0:5     state:D stack:25048 pid:5902  tgid:5902  ppid:2      task_flags:0x4208060 flags:0x00004000
Workqueue: usb_hub_wq hub_event
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0x116f/0x5de0 kernel/sched/core.c:6767
 __schedule_loop kernel/sched/core.c:6845 [inline]
 schedule+0xe7/0x3a0 kernel/sched/core.c:6860
 schedule_timeout+0x123/0x290 kernel/time/sleep_timeout.c:99
 schedule_timeout_uninterruptible kernel/time/sleep_timeout.c:158 [inline]
 msleep+0xa6/0xf0 kernel/time/sleep_timeout.c:318
 hub_port_wait_reset drivers/usb/core/hub.c:2933 [inline]
 hub_port_reset+0xb6a/0x1cb0 drivers/usb/core/hub.c:3061
 hub_port_init+0x716/0x3a70 drivers/usb/core/hub.c:5020
 hub_port_connect drivers/usb/core/hub.c:5460 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5671 [inline]
 port_event drivers/usb/core/hub.c:5831 [inline]
 hub_event+0x2c67/0x4fa0 drivers/usb/core/hub.c:5913
 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3238
 process_scheduled_works kernel/workqueue.c:3319 [inline]
 worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400
 kthread+0x3c2/0x780 kernel/kthread.c:464
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>

Showing all locks held in the system:
3 locks held by kworker/0:1/10:
 #0: ffff88801b478d48 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x12a2/0x1b70 kernel/workqueue.c:3213
 #1: ffffc900000f7d18 (free_ipc_work){+.+.}-{0:0}, at: process_one_work+0x929/0x1b70 kernel/workqueue.c:3214
 #2: ffffffff8e3ccab8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock+0x280/0x3c0 kernel/rcu/tree_exp.h:304
3 locks held by kworker/u8:1/13:
1 lock held by khungtaskd/31:
 #0: ffffffff8e3c1580 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
 #0: ffffffff8e3c1580 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline]
 #0: ffffffff8e3c1580 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x36/0x1c0 kernel/locking/lockdep.c:6764
3 locks held by kworker/0:2/911:
2 locks held by getty/5579:
 #0: ffff8880372220a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243
 #1: ffffc900036e32f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x41b/0x14f0 drivers/tty/n_tty.c:2222
3 locks held by kworker/0:5/5902:
 #0: ffff8880222f4548 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x12a2/0x1b70 kernel/workqueue.c:3213
 #1: ffffc9000301fd18 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x929/0x1b70 kernel/workqueue.c:3214
 #2: ffff8881457dd198 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:922 [inline]
 #2: ffff8881457dd198 (&dev->mutex){....}-{4:4}, at: hub_event+0x1c0/0x4fa0 drivers/usb/core/hub.c:5859
4 locks held by kworker/u8:14/6833:
 #0: ffff88801c2f3948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x12a2/0x1b70 kernel/workqueue.c:3213
 #1: ffffc9001c33fd18 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x929/0x1b70 kernel/workqueue.c:3214
 #2: ffffffff90115ed0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xc9/0xb30 net/core/net_namespace.c:608
 #3: ffffffff8e3cc980 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x48/0x6e0 kernel/rcu/tree.c:3774
1 lock held by syz.1.886/9717:
 #0: ffffffff9012bd68 (rtnl_mutex){+.+.}-{4:4}, at: tun_detach drivers/net/tun.c:633 [inline]
 #0: ffffffff9012bd68 (rtnl_mutex){+.+.}-{4:4}, at: tun_chr_close+0x38/0x230 drivers/net/tun.c:3390
1 lock held by syz.4.933/10033:
 #0: ffffffff9012bd68 (rtnl_mutex){+.+.}-{4:4}, at: tun_detach drivers/net/tun.c:633 [inline]
 #0: ffffffff9012bd68 (rtnl_mutex){+.+.}-{4:4}, at: tun_chr_close+0x38/0x230 drivers/net/tun.c:3390
1 lock held by syz.6.1124/11026:
 #0: ffffffff9012bd68 (rtnl_mutex){+.+.}-{4:4}, at: tun_detach drivers/net/tun.c:633 [inline]
 #0: ffffffff9012bd68 (rtnl_mutex){+.+.}-{4:4}, at: tun_chr_close+0x38/0x230 drivers/net/tun.c:3390
1 lock held by syz.0.1126/11039:
 #0: ffffffff9012bd68 (rtnl_mutex){+.+.}-{4:4}, at: tun_detach drivers/net/tun.c:633 [inline]
 #0: ffffffff9012bd68 (rtnl_mutex){+.+.}-{4:4}, at: tun_chr_close+0x38/0x230 drivers/net/tun.c:3390
1 lock held by syz.3.1128/11041:
 #0: ffffffff9012bd68 (rtnl_mutex){+.+.}-{4:4}, at: tun_detach drivers/net/tun.c:633 [inline]
 #0: ffffffff9012bd68 (rtnl_mutex){+.+.}-{4:4}, at: tun_chr_close+0x38/0x230 drivers/net/tun.c:3390

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

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.14.0-syzkaller-13524-gf4d2ef48250a #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120
 nmi_cpu_backtrace+0x27b/0x390 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x29c/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:158 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:274 [inline]
 watchdog+0xf70/0x12c0 kernel/hung_task.c:437
 kthread+0x3c2/0x780 kernel/kthread.c:464
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 3 Comm: pool_workqueue_ Not tainted 6.14.0-syzkaller-13524-gf4d2ef48250a #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:remove_class_from_lock_chain kernel/locking/lockdep.c:6195 [inline]
RIP: 0010:remove_class_from_lock_chains kernel/locking/lockdep.c:6234 [inline]
RIP: 0010:zap_class+0x102/0x340 kernel/locking/lockdep.c:6279
Code: 00 0f 84 2c 02 00 00 49 c7 c4 00 00 eb 96 49 bf 22 01 00 00 00 00 ad de 49 8b 1c 24 48 85 db 74 5f 48 83 eb 08 74 59 0f b6 2b <8b> 03 40 c0 ed 02 c1 e8 08 40 0f b6 ed 8d 0c 28 39 c8 7d 39 89 c2
RSP: 0018:ffffc90000087d20 EFLAGS: 00000082
RAX: 0000000000045a43 RBX: ffffffff93c13d20 RCX: 0000000000045a47
RDX: 000000000000002c RSI: 0000000000045a46 RDI: 0000000000040c3d
RBP: 000000000000000c R08: 0000000000045a47 R09: ffffffff95cf344e
R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff96f25f58
R13: 0000000000000c64 R14: ffffffff972b8018 R15: dead000000000122
FS:  0000000000000000(0000) GS:ffff888124ab3000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00002000001bf000 CR3: 000000000e182000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __lockdep_free_key_range+0x34/0x80 kernel/locking/lockdep.c:6405
 lockdep_unregister_key+0xbb/0x130 kernel/locking/lockdep.c:6607
 wq_unregister_lockdep kernel/workqueue.c:4816 [inline]
 pwq_release_workfn+0x5e6/0xa70 kernel/workqueue.c:5112
 kthread_worker_fn+0x30d/0xc50 kernel/kthread.c:1010
 kthread+0x3c2/0x780 kernel/kthread.c:464
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/06 04:04 upstream f4d2ef48250a 1c65791e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in msleep
2025/02/25 13:01 upstream d082ecbc71e9 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in msleep
2024/11/30 03:08 upstream 509f806f7f70 68914665 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in msleep
* Struck through repros no longer work on HEAD.