INFO: task syz.1.1067:7021 blocked for more than 143 seconds. Not tainted 6.1.96-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.1067 state:D stack:24480 pid:7021 ppid:3556 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5245 [inline] __schedule+0x142d/0x4550 kernel/sched/core.c:6558 schedule+0xbf/0x180 kernel/sched/core.c:6634 io_schedule+0x88/0x100 kernel/sched/core.c:8786 folio_wait_bit_common+0x878/0x1290 mm/filemap.c:1296 __filemap_get_folio+0x47c/0xe80 mm/filemap.c:1931 truncate_inode_pages_range+0x598/0x1340 mm/truncate.c:377 kill_bdev block/bdev.c:76 [inline] blkdev_flush_mapping+0x154/0x2b0 block/bdev.c:664 blkdev_put_whole block/bdev.c:695 [inline] blkdev_put+0x4c0/0x750 block/bdev.c:955 blkdev_close+0x56/0x80 block/fops.c:514 __fput+0x3b7/0x890 fs/file_table.c:320 task_work_run+0x246/0x300 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa73/0x26a0 kernel/exit.c:869 do_group_exit+0x202/0x2b0 kernel/exit.c:1019 get_signal+0x16f7/0x17d0 kernel/signal.c:2862 arch_do_signal_or_restart+0xb0/0x1a10 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:174 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f0efb574950 RSP: 002b:00007f0efc3ddb80 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: 0000000000000006 RBX: 0000000000000000 RCX: 00007f0efb574950 RDX: 0000000000000000 RSI: 00007f0efc3ddc20 RDI: 00000000ffffff9c RBP: 00007f0efc3ddc20 R08: 0000000000000000 R09: 002364626e2f7665 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 000000000000006e R14: 00007f0efb704038 R15: 00007ffe37a4d7e8 Showing all locks held in the system: 2 locks held by kworker/0:0/7: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8d12ae90 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xe30 kernel/rcu/tasks.h:516 1 lock held by rcu_tasks_trace/13: #0: ffffffff8d12b690 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xe30 kernel/rcu/tasks.h:516 1 lock held by khungtaskd/27: #0: ffffffff8d12acc0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #0: ffffffff8d12acc0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #0: ffffffff8d12acc0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x290 kernel/locking/lockdep.c:6494 2 locks held by kworker/u4:2/41: #0: ffff888012479138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffffff8d12acc0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #1: ffffffff8d12acc0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #1: ffffffff8d12acc0 (rcu_read_lock){....}-{1:2}, at: __bpf_trace_run kernel/trace/bpf_trace.c:2272 [inline] #1: ffffffff8d12acc0 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run4+0x16a/0x470 kernel/trace/bpf_trace.c:2314 2 locks held by getty/3307: #0: ffff888028bd1098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900031262f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a7/0x1db0 drivers/tty/n_tty.c:2198 3 locks held by kworker/1:5/3597: #0: ffff888012470938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffc9000430fd20 (fqdir_free_work){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #2: ffffffff8d130180 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x48/0x5f0 kernel/rcu/tree.c:4018 4 locks held by kworker/u4:5/3626: #0: ffff888012616938 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffc9000435fd20 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #2: ffffffff8e28da10 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0xf1/0xb60 net/core/net_namespace.c:566 #3: ffffffff8d1302b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:291 [inline] #3: ffffffff8d1302b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x4f0/0x930 kernel/rcu/tree_exp.h:962 3 locks held by kworker/0:9/4050: #0: ffff88802805f538 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffc9000a33fd20 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #2: ffffffff8e299d68 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_dad_work+0xcc/0x16b0 net/ipv6/addrconf.c:4114 2 locks held by kworker/0:10/5309: #0: ffff888012472138 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffc90014347d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 3 locks held by kworker/0:13/5313: 6 locks held by kworker/1:14/5508: #0: ffff888012470938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffc900031efd20 ((work_completion)(&intf->reset_ws)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #2: ffff888019bfb190 (&dev->mutex){....}-{3:3}, at: device_trylock include/linux/device.h:847 [inline] #2: ffff888019bfb190 (&dev->mutex){....}-{3:3}, at: usb_lock_device_for_reset+0x124/0x320 drivers/usb/core/usb.c:910 #3: ffff8881453374f8 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3159 [inline] #3: ffff8881453374f8 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_reset_device+0x542/0xaf0 drivers/usb/core/hub.c:6262 #4: ffff888021d61568 (hcd->address0_mutex){+.+.}-{3:3}, at: usb_reset_and_verify_device+0x352/0x1470 drivers/usb/core/hub.c:6072 #5: ffff8880b993aa18 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 kernel/sched/core.c:537 1 lock held by syz.1.1067/7021: #0: ffff88801f7164c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0x100/0x750 block/bdev.c:913 2 locks held by syz-executor/9692: #0: ffffffff8e299d68 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:74 [inline] #0: ffffffff8e299d68 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x7c1/0xff0 net/core/rtnetlink.c:6118 #1: ffff88814535d3e8 (&wg->device_update_lock){+.+.}-{3:3}, at: wg_open+0x224/0x410 drivers/net/wireguard/device.c:49 2 locks held by syz.4.1889/9956: #0: ffff888073577a10 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #0: ffff888073577a10 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: __sock_release net/socket.c:653 [inline] #0: ffff888073577a10 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: sock_close+0x98/0x230 net/socket.c:1400 #1: ffffffff8d1302b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline] #1: ffffffff8d1302b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x360/0x930 kernel/rcu/tree_exp.h:962 2 locks held by sed/9990: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 6.1.96-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 nmi_cpu_backtrace+0x4e1/0x560 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1b0/0x3f0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xf88/0xfd0 kernel/hung_task.c:377 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 5508 Comm: kworker/1:14 Not tainted 6.1.96-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Workqueue: events __usb_queue_reset_device RIP: 0010:format_decode+0x0/0x1f10 lib/vsprintf.c:2513 Code: 89 f1 80 e1 07 38 c1 0f 8c 67 ff ff ff 4c 89 f7 e8 e5 a0 5c f7 e9 5a ff ff ff e8 5b a5 05 00 66 2e 0f 1f 84 00 00 00 00 00 90 <55> 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec c0 00 RSP: 0018:ffffc900031eeeb8 EFLAGS: 00000293 RAX: ffffffff8a856a9d RBX: ffffffff8aecc5e5 RCX: ffff8880265e5940 RDX: 0000000000000000 RSI: ffffc900031eef40 RDI: ffffffff8aecc5e5 RBP: ffffc900031eefb0 R08: ffffffff8a85b09e R09: ffffc900031eee20 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc900031ef241 R13: dffffc0000000000 R14: ffffc900031eef40 R15: ffffffff8aecc5e5 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fffa1e69f2c CR3: 0000000062764000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vsnprintf+0x14d/0x1c70 lib/vsprintf.c:2757 sprintf+0xd6/0x120 lib/vsprintf.c:3009 print_time kernel/printk/printk.c:1274 [inline] info_print_prefix+0x167/0x300 kernel/printk/printk.c:1300 record_print_text kernel/printk/printk.c:1349 [inline] console_emit_next_record+0x74f/0x1000 kernel/printk/printk.c:2760 console_unlock+0x278/0x7c0 kernel/printk/printk.c:2906 vprintk_emit+0x523/0x740 kernel/printk/printk.c:2303 dev_vprintk_emit+0x2aa/0x323 drivers/base/core.c:4925 dev_printk_emit+0xd9/0x118 drivers/base/core.c:4936 _dev_err+0x11e/0x165 drivers/base/core.c:4991 hub_port_init+0x2029/0x2940 drivers/usb/core/hub.c:4975 usb_reset_and_verify_device+0x3a3/0x1470 drivers/usb/core/hub.c:6079 usb_reset_device+0x54b/0xaf0 drivers/usb/core/hub.c:6263 __usb_queue_reset_device+0x6f/0x90 drivers/usb/core/message.c:1899 process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308