INFO: task kworker/u4:8:4203 blocked for more than 143 seconds. Not tainted 5.15.189-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:8 state:D stack: 0 pid: 4203 ppid: 2 flags:0x00000008 Workqueue: writeback wb_workfn (flush-7:1) Call trace: __switch_to+0x2f4/0x558 arch/arm64/kernel/process.c:521 context_switch kernel/sched/core.c:5030 [inline] __schedule+0xe00/0x1c0c kernel/sched/core.c:6376 schedule+0x11c/0x1c8 kernel/sched/core.c:6459 rwsem_down_write_slowpath+0xcb8/0x13f4 kernel/locking/rwsem.c:1165 __down_write_common kernel/locking/rwsem.c:1292 [inline] __down_write kernel/locking/rwsem.c:1301 [inline] down_write+0xe8/0x12c kernel/locking/rwsem.c:1552 f2fs_balance_fs+0x3a4/0x650 fs/f2fs/segment.c:528 f2fs_write_inode+0x3f4/0x598 fs/f2fs/inode.c:738 write_inode fs/fs-writeback.c:1495 [inline] __writeback_single_inode+0x560/0x11f0 fs/fs-writeback.c:1705 writeback_sb_inodes+0x7fc/0x1378 fs/fs-writeback.c:1930 __writeback_inodes_wb+0x110/0x394 fs/fs-writeback.c:2001 wb_writeback+0x3ec/0xe44 fs/fs-writeback.c:2106 wb_check_background_flush fs/fs-writeback.c:2172 [inline] wb_do_writeback fs/fs-writeback.c:2260 [inline] wb_workfn+0xa7c/0xdd8 fs/fs-writeback.c:2288 process_one_work+0x79c/0x1140 kernel/workqueue.c:2310 worker_thread+0x8f4/0x101c kernel/workqueue.c:2457 kthread+0x374/0x454 kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:855 Showing all locks held in the system: 3 locks held by kworker/1:0/21: 2 locks held by kworker/1:1/25: 1 lock held by khungtaskd/27: #0: ffff800014341360 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:311 8 locks held by kworker/u4:1/136: #0: ffff0000c038c138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x678/0x1140 kernel/workqueue.c:2283 #1: ffff80001bd77c00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x6b8/0x1140 kernel/workqueue.c:2285 #2: ffff800016290910 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x12c/0xa98 net/core/net_namespace.c:589 #3: ffff8000162c1f28 (devlink_mutex){+.+.}-{3:3}, at: devlink_pernet_pre_exit+0x98/0x33c net/core/devlink.c:11534 #4: ffff0000ca448670 (&nsim_bus_dev->nsim_bus_reload_lock){+.+.}-{3:3}, at: nsim_dev_reload_down+0x54/0x154 drivers/net/netdevsim/dev.c:870 #5: ffff0000ca449400 (&nsim_dev->port_list_lock){+.+.}-{3:3}, at: nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1359 [inline] #5: ffff0000ca449400 (&nsim_dev->port_list_lock){+.+.}-{3:3}, at: nsim_dev_reload_destroy+0xf4/0x204 drivers/net/netdevsim/dev.c:1561 #6: ffff80001629c1e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:72 #7: ffff800014345e28 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:290 [inline] #7: ffff800014345e28 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x2f0/0x5e0 kernel/rcu/tree_exp.h:845 3 locks held by kworker/0:2/3335: #0: ffff0000c0020938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x678/0x1140 kernel/workqueue.c:2283 #1: ffff800021167c00 ((work_completion)(&(&nsim_dev->trap_data->trap_report_dw)->work)){+.+.}-{0:0}, at: process_one_work+0x6b8/0x1140 kernel/workqueue.c:2285 #2: ffff0000ca449400 (&nsim_dev->port_list_lock){+.+.}-{3:3}, at: nsim_dev_trap_report_work+0x5c/0x938 drivers/net/netdevsim/dev.c:757 2 locks held by getty/3817: #0: ffff0000d5009098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x40/0x50 drivers/tty/tty_ldsem.c:340 #1: ffff80001bd6e2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x2f0/0xf6c drivers/tty/n_tty.c:2158 4 locks held by kworker/u4:8/4203: #0: ffff0000c207b938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x678/0x1140 kernel/workqueue.c:2283 #1: ffff80001fdb7c00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6b8/0x1140 kernel/workqueue.c:2285 #2: ffff0000d94a20e0 (&type->s_umount_key#73){++++}-{3:3}, at: trylock_super+0x24/0xf4 fs/super.c:418 #3: ffff0000c111d1b0 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x3a4/0x650 fs/f2fs/segment.c:528 2 locks held by kworker/1:7/4424: #0: ffff0000c0021938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x678/0x1140 kernel/workqueue.c:2283 #1: ffff800020327c00 ((work_completion)(&rew.rew_work)){+.+.}-{0:0}, at: process_one_work+0x6b8/0x1140 kernel/workqueue.c:2285 5 locks held by syz.1.81/4527: 2 locks held by kworker/u4:9/4769: 4 locks held by syz-executor/8139: #0: ffff0000d525a460 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x228/0xa2c fs/read_write.c:590 #1: ffff0000e908b888 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1c0/0x478 fs/kernfs/file.c:287 #2: ffff0000ce2c4918 (kn->active#236){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x1dc/0x478 fs/kernfs/file.c:288 #3: ffff80001586c388 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: new_device_store+0x128/0x59c drivers/net/netdevsim/bus.c:295 6 locks held by syz-executor/8200: #0: ffff0000d525a460 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x228/0xa2c fs/read_write.c:590 #1: ffff0000e9c9e888 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1c0/0x478 fs/kernfs/file.c:287 #2: ffff0000ce2c4a00 (kn->active#235){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x1dc/0x478 fs/kernfs/file.c:288 #3: ffff80001586c388 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xd4/0x33c drivers/net/netdevsim/bus.c:344 #4: ffff0000ca52c178 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline] #4: ffff0000ca52c178 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1044 [inline] #4: ffff0000ca52c178 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0x9c/0x63c drivers/base/dd.c:1259 #5: ffff8000162c1f28 (devlink_mutex){+.+.}-{3:3}, at: devlink_reload_disable+0x28/0x88 net/core/devlink.c:9019 1 lock held by syz-executor/8246: #0: ffff80001629c1e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffff80001629c1e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x98c/0xd04 net/core/rtnetlink.c:5647 1 lock held by syz-executor/8320: #0: ffff80001629c1e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffff80001629c1e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x98c/0xd04 net/core/rtnetlink.c:5647 2 locks held by syz.1.624/8364: =============================================