INFO: task kworker/u4:3:46 blocked for more than 143 seconds. Not tainted 6.1.106-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:3 state:D stack:20600 pid:46 ppid:2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-7:1) Call Trace: context_switch kernel/sched/core.c:5241 [inline] __schedule+0x143f/0x4570 kernel/sched/core.c:6558 schedule+0xbf/0x180 kernel/sched/core.c:6634 rwsem_down_write_slowpath+0xea1/0x14b0 kernel/locking/rwsem.c:1189 f2fs_down_write fs/f2fs/f2fs.h:2176 [inline] f2fs_balance_fs+0x4fb/0x6c0 fs/f2fs/segment.c:428 f2fs_write_inode+0x4c3/0x540 fs/f2fs/inode.c:739 write_inode fs/fs-writeback.c:1460 [inline] __writeback_single_inode+0x67d/0x11e0 fs/fs-writeback.c:1677 writeback_sb_inodes+0xc2b/0x1b20 fs/fs-writeback.c:1903 __writeback_inodes_wb+0x114/0x400 fs/fs-writeback.c:1974 wb_writeback+0x4b1/0xe10 fs/fs-writeback.c:2079 wb_check_old_data_flush fs/fs-writeback.c:2179 [inline] wb_do_writeback fs/fs-writeback.c:2232 [inline] wb_workfn+0xbec/0x1020 fs/fs-writeback.c:2260 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:295 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8d32b190 (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: ffffffff8d32b990 (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/28: #0: ffffffff8d32afc0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #0: ffffffff8d32afc0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #0: ffffffff8d32afc0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x290 kernel/locking/lockdep.c:6494 4 locks held by kworker/u4:3/46: #0: ffff888145647138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffc90000b77d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #2: ffff8880738900e0 (&type->s_umount_key#74){++++}-{3:3}, at: trylock_super+0x1b/0xf0 fs/super.c:415 #3: ffff888057281140 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2176 [inline] #3: ffff888057281140 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x4fb/0x6c0 fs/f2fs/segment.c:428 2 locks held by getty/3397: #0: ffff88814bf6a098 (&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 6 locks held by kworker/0:3/3644: #0: ffff888012870938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffc90003e5fd20 ((work_completion)(&intf->reset_ws)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #2: ffff888022ebd190 (&dev->mutex){....}-{3:3}, at: device_trylock include/linux/device.h:847 [inline] #2: ffff888022ebd190 (&dev->mutex){....}-{3:3}, at: usb_lock_device_for_reset+0x124/0x320 drivers/usb/core/usb.c:910 #3: ffff8881453654f8 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3159 [inline] #3: ffff8881453654f8 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_reset_device+0x542/0xaf0 drivers/usb/core/hub.c:6262 #4: ffff88801af72368 (hcd->address0_mutex){+.+.}-{3:3}, at: usb_reset_and_verify_device+0x352/0x1470 drivers/usb/core/hub.c:6072 #5: ffffffff8de491d0 (ehci_cf_port_reset_rwsem){.+.+}-{3:3}, at: hub_port_reset+0x1f4/0x1f00 drivers/usb/core/hub.c:3016 5 locks held by syz.1.224/4556: 4 locks held by kworker/0:11/5345: #0: ffff888017ed3538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffc9000371fd20 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #2: ffff888145b21190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline] #2: ffff888145b21190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1fe/0x5730 drivers/usb/core/hub.c:5801 #3: ffff8881453654f8 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3159 [inline] #3: ffff8881453654f8 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x7cd/0x5730 drivers/usb/core/hub.c:5854 3 locks held by kworker/1:13/5752: #0: ffff88814be0cd38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffc9000378fd20 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #2: ffffffff8e4f88a8 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_dad_work+0xcc/0x16b0 net/ipv6/addrconf.c:4115 2 locks held by kworker/0:14/6262: #0: ffff888012872138 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffc9000355fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 3 locks held by kworker/0:16/6264: #0: ffff88814be0cd38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffc90003cbfd20 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #2: ffffffff8e4f88a8 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_dad_work+0xcc/0x16b0 net/ipv6/addrconf.c:4115 1 lock held by syz.1.710/6548: #0: ffffffff8d3305b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline] #0: ffffffff8d3305b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x360/0x930 kernel/rcu/tree_exp.h:962 5 locks held by syz.0.733/6574: #0: ffff888021b091c0 (&tty->legacy_mutex){+.+.}-{3:3}, at: tty_release+0x7d/0x12a0 drivers/tty/tty_io.c:1735 #1: ffff888021b081c0 (&tty->legacy_mutex/1){+.+.}-{3:3}, at: __tty_hangup+0xc0/0x620 drivers/tty/tty_io.c:591 #2: ffff888021b08098 (&tty->ldisc_sem){++++}-{0:0}, at: __tty_ldisc_lock drivers/tty/tty_ldisc.c:290 [inline] #2: ffff888021b08098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_lock+0x68/0xb0 drivers/tty/tty_ldisc.c:314 #3: ffffffff8e4f88a8 (rtnl_mutex){+.+.}-{3:3}, at: unregister_netdev+0x79/0x210 net/core/dev.c:10940 #4: ffffffff8d3305b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:291 [inline] #4: ffffffff8d3305b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x4f0/0x930 kernel/rcu/tree_exp.h:962 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.1.106-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/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:295 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 4556 Comm: syz.1.224 Not tainted 6.1.106-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:debug_spin_lock_before kernel/locking/spinlock_debug.c:85 [inline] RIP: 0010:do_raw_spin_lock+0x89/0x370 kernel/locking/spinlock_debug.c:114 Code: f1 04 f3 f3 f3 48 89 f1 48 89 74 24 38 48 89 04 16 48 8d 5f 04 48 89 d8 48 c1 e8 03 0f b6 04 10 84 c0 0f 85 f1 01 00 00 8b 03 <3d> ad 4e ad de 0f 85 5d 01 00 00 4d 8d 6c 24 10 4c 89 e8 48 c1 e8 RSP: 0018:ffffc900001e0a60 EFLAGS: 00000246 RAX: 00000000dead4ead RBX: ffff888065acf8b4 RCX: 1ffff9200003c154 RDX: dffffc0000000000 RSI: 1ffff9200003c154 RDI: ffff888065acf8b0 RBP: ffffc900001e0b40 R08: dffffc0000000000 R09: fffffbfff20e7660 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888065acf8b0 R13: 1ffff9200003c174 R14: ffff888065acf8b0 R15: ffff888065acf810 FS: 00007f19e01ff6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b31d12ff8 CR3: 000000007a960000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: spin_lock include/linux/spinlock.h:351 [inline] mrp_join_timer+0x24/0x180 net/802/mrp.c:603 call_timer_fn+0x1ad/0x6b0 kernel/time/timer.c:1504 expire_timers kernel/time/timer.c:1549 [inline] __run_timers+0x67c/0x890 kernel/time/timer.c:1820 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1833 handle_softirqs+0x2ee/0xa40 kernel/softirq.c:571 __do_softirq kernel/softirq.c:605 [inline] invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x157/0x240 kernel/softirq.c:654 irq_exit_rcu+0x5/0x20 kernel/softirq.c:666 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 RIP: 0010:__sanitizer_cov_trace_pc+0x37/0x60 kernel/kcov.c:219 Code: 8b 15 75 cb 77 7e 81 e2 00 01 ff 00 74 11 81 fa 00 01 00 00 75 35 83 b9 1c 16 00 00 00 74 2c 8b 91 f8 15 00 00 83 fa 02 75 21 <48> 8b 91 00 16 00 00 48 8b 32 48 8d 7e 01 8b 89 fc 15 00 00 48 39 RSP: 0018:ffffc900031ee2d8 EFLAGS: 00000246 RAX: ffffffff81e25006 RBX: 000000003bcd42a9 RCX: ffff888027011dc0 RDX: 0000000000000002 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc900031ee3f0 R08: ffffffff81e24fb6 R09: fffff940011de6a1 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffffffff91fb8570 R14: ffff88823bcd4000 R15: ffff88823bcd42f4 for_each_canary mm/kfence/core.c:343 [inline] kfence_guarded_alloc+0x7a6/0xe40 mm/kfence/core.c:438 __kfence_alloc+0x340/0x370 mm/kfence/core.c:1048 kfence_alloc include/linux/kfence.h:128 [inline] slab_alloc_node mm/slub.c:3322 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc+0x276/0x2d0 mm/slub.c:3422 mempool_alloc+0x190/0x580 mm/mempool.c:392 bio_alloc_bioset+0x404/0x11b0 block/bio.c:521 f2fs_grab_read_bio+0x283/0x6a0 fs/f2fs/data.c:1043 f2fs_submit_page_read+0xb0/0x580 fs/f2fs/data.c:1087 f2fs_get_read_data_page+0x58b/0x8c0 fs/f2fs/data.c:1279 gc_data_segment fs/f2fs/gc.c:1606 [inline] do_garbage_collect+0x44cc/0x81f0 fs/f2fs/gc.c:1774 f2fs_gc+0x1169/0x32a0 fs/f2fs/gc.c:1873 f2fs_balance_fs+0x506/0x6c0 fs/f2fs/segment.c:429 f2fs_map_blocks+0x2871/0x3ab0 fs/f2fs/data.c:1705 expand_inode_data+0x56d/0xaf0 fs/f2fs/file.c:1751 f2fs_fallocate+0x44a/0x9f0 fs/f2fs/file.c:1848 vfs_fallocate+0x547/0x6b0 fs/open.c:323 do_vfs_ioctl+0x222c/0x2a90 fs/ioctl.c:849 __do_sys_ioctl fs/ioctl.c:868 [inline] __se_sys_ioctl+0x81/0x160 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f19e0379e79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f19e01ff038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f19e0516130 RCX: 00007f19e0379e79 RDX: 00000000200000c0 RSI: 0000000040305828 RDI: 0000000000000004 RBP: 00007f19e03e793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f19e0516130 R15: 00007ffe5b452418