INFO: task kworker/u4:24:6021 blocked for more than 144 seconds. Not tainted 5.15.167-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:24 state:D stack: 0 pid: 6021 ppid: 2 flags:0x00000008 Workqueue: writeback wb_workfn (flush-7:1) Call trace: __switch_to+0x308/0x5e8 arch/arm64/kernel/process.c:518 context_switch kernel/sched/core.c:5027 [inline] __schedule+0xf10/0x1e48 kernel/sched/core.c:6373 schedule+0x11c/0x1c8 kernel/sched/core.c:6456 rwsem_down_write_slowpath+0xd94/0x17e0 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+0x3e8/0x6a0 fs/f2fs/segment.c:528 f2fs_write_inode+0x42c/0x4a0 fs/f2fs/inode.c:736 write_inode fs/fs-writeback.c:1495 [inline] __writeback_single_inode+0x584/0x13a4 fs/fs-writeback.c:1705 writeback_sb_inodes+0x94c/0x1654 fs/fs-writeback.c:1930 __writeback_inodes_wb+0x110/0x39c fs/fs-writeback.c:2001 wb_writeback+0x410/0xfc8 fs/fs-writeback.c:2106 wb_check_old_data_flush fs/fs-writeback.c:2206 [inline] wb_do_writeback fs/fs-writeback.c:2259 [inline] wb_workfn+0xbb4/0x1070 fs/fs-writeback.c:2288 process_one_work+0x790/0x11b8 kernel/workqueue.c:2310 worker_thread+0x910/0x1034 kernel/workqueue.c:2457 kthread+0x37c/0x45c kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Showing all locks held in the system: 3 locks held by kworker/1:0/21: 1 lock held by khungtaskd/27: #0: ffff800014c917e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:311 2 locks held by kworker/u4:2/148: 4 locks held by kworker/u4:3/285: #0: ffff0000c03f4138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 kernel/workqueue.c:2283 #1: ffff80001dbd7c00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 kernel/workqueue.c:2285 #2: ffff800016be7090 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0xf4/0x9bc net/core/net_namespace.c:561 #3: ffff800016bf2868 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:72 4 locks held by kworker/u4:5/410: #0: ffff0000c21d8138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 kernel/workqueue.c:2283 #1: ffff80001fde7c00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 kernel/workqueue.c:2285 #2: ffff0000cb3400e0 (&type->s_umount_key#52){++++}-{3:3}, at: trylock_super+0x28/0xf8 fs/super.c:418 #3: ffff0000ca349108 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x3e8/0x6a0 fs/f2fs/segment.c:528 3 locks held by kworker/0:3/3604: #0: ffff0000c0020938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 kernel/workqueue.c:2283 #1: ffff800022787c00 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 kernel/workqueue.c:2285 #2: ffff0000f13fb240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x274/0x33c4 drivers/net/netdevsim/fib.c:1478 2 locks held by getty/3794: #0: ffff0000d3f10098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x40/0x50 drivers/tty/tty_ldsem.c:340 #1: ffff80001d60e2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1204 drivers/tty/n_tty.c:2158 3 locks held by kworker/0:5/4066: #0: ffff0000c0020938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 kernel/workqueue.c:2283 #1: ffff800020307c00 ((work_completion)(&(&nsim_dev->trap_data->trap_report_dw)->work)){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 kernel/workqueue.c:2285 #2: ffff0000da2ec400 (&nsim_dev->port_list_lock){+.+.}-{3:3}, at: nsim_dev_trap_report_work+0x60/0x90c drivers/net/netdevsim/dev.c:757 3 locks held by kworker/1:4/4067: #0: ffff0000d1ce0d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 kernel/workqueue.c:2283 #1: ffff800020317c00 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 kernel/workqueue.c:2285 #2: ffff800016bf2868 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:72 3 locks held by kworker/1:10/4702: 4 locks held by kworker/u4:24/6021: #0: ffff0000c21d8138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 kernel/workqueue.c:2283 #1: ffff800021057c00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 kernel/workqueue.c:2285 #2: ffff0000ce6540e0 (&type->s_umount_key#52){++++}-{3:3}, at: trylock_super+0x28/0xf8 fs/super.c:418 #3: ffff0000f67ad108 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x3e8/0x6a0 fs/f2fs/segment.c:528 3 locks held by kworker/0:14/6700: #0: ffff0000d1ce0d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 kernel/workqueue.c:2283 #1: ffff800020107c00 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 kernel/workqueue.c:2285 #2: ffff800016bf2868 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:72 3 locks held by kworker/u4:29/6953: #0: ffff0000c0029138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 kernel/workqueue.c:2283 #1: ffff8000216b7c00 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 kernel/workqueue.c:2285 #2: ffff800016bf2868 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:72 6 locks held by syz.1.909/7869: 3 locks held by kworker/1:16/7907: #0: ffff0000c0020938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 kernel/workqueue.c:2283 #1: ffff800020f97c00 (deferred_process_work){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 kernel/workqueue.c:2285 #2: ffff800016bf2868 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:72 6 locks held by syz.3.1101/8656: 2 locks held by syz-executor/8689: #0: ffff800016bf2868 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:72 #1: ffff800014c95de8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:290 [inline] #1: ffff800014c95de8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x320/0x660 kernel/rcu/tree_exp.h:845 2 locks held by syz-executor/8706: #0: ffff0000d1cf4ff0 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x64/0x1060 net/bluetooth/hci_core.c:1737 #1: ffff0000d1cf4078 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_do_close+0x338/0x1060 net/bluetooth/hci_core.c:1782 7 locks held by syz-executor/8837: #0: ffff0000d4586460 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x228/0xb44 fs/read_write.c:590 #1: ffff0000cf6c8488 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1c8/0x48c fs/kernfs/file.c:287 #2: ffff0000cdcd9a00 (kn->active#230){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x1e4/0x48c fs/kernfs/file.c:288 #3: ffff8000161c1248 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xec/0x3bc drivers/net/netdevsim/bus.c:344 #4: ffff0000e15fa178 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline] #4: ffff0000e15fa178 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1044 [inline] #4: ffff0000e15fa178 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xbc/0x6ac drivers/base/dd.c:1259 #5: ffff0000da2ec400 (&nsim_dev->port_list_lock){+.+.}-{3:3}, at: nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1359 [inline] #5: ffff0000da2ec400 (&nsim_dev->port_list_lock){+.+.}-{3:3}, at: nsim_dev_reload_destroy+0xfc/0x214 drivers/net/netdevsim/dev.c:1561 #6: ffff800016bf2868 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:72 4 locks held by syz-executor/8979: #0: ffff0000d4586460 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x228/0xb44 fs/read_write.c:590 #1: ffff0000e30eb488 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1c8/0x48c fs/kernfs/file.c:287 #2: ffff0000cdcd9a00 (kn->active#230){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x1e4/0x48c fs/kernfs/file.c:288 #3: ffff8000161c1248 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xec/0x3bc drivers/net/netdevsim/bus.c:344 2 locks held by syz.2.1191/9011: #0: ffff0000ddb8a010 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:789 [inline] #0: ffff0000ddb8a010 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: __sock_release net/socket.c:648 [inline] #0: ffff0000ddb8a010 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: sock_close+0x80/0x1fc net/socket.c:1336 #1: ffff800016bf2868 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:72 1 lock held by syz-executor/9009: #0: ffff800016bf2868 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffff800016bf2868 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0xa2c/0xdac net/core/rtnetlink.c:5615 1 lock held by syz.0.1197/9038: #0: ffff800016bf2868 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffff800016bf2868 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0xa2c/0xdac net/core/rtnetlink.c:5615 1 lock held by syz-executor/9040: #0: ffff800016bf2868 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffff800016bf2868 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0xa2c/0xdac net/core/rtnetlink.c:5615 1 lock held by syz-executor/9044: #0: ffff800016bf2868 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffff800016bf2868 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0xa2c/0xdac net/core/rtnetlink.c:5615 1 lock held by syz-executor/9049: #0: ffff800016bf2868 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffff800016bf2868 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0xa2c/0xdac net/core/rtnetlink.c:5615 =============================================