INFO: task kworker/0:8:6747 blocked for more than 143 seconds. Not tainted 5.15.173-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/0:8 state:D stack: 0 pid: 6747 ppid: 2 flags:0x00000008 Workqueue: events nsim_dev_trap_report_work 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 schedule_preempt_disabled+0x18/0x2c kernel/sched/core.c:6515 __mutex_lock_common+0xba0/0x2154 kernel/locking/mutex.c:669 __mutex_lock kernel/locking/mutex.c:729 [inline] mutex_lock_nested+0xa4/0xf8 kernel/locking/mutex.c:743 nsim_dev_trap_report_work+0x60/0x90c drivers/net/netdevsim/dev.c:757 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 INFO: task syz-executor:7172 blocked for more than 143 seconds. Not tainted 5.15.173-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor state:D stack: 0 pid: 7172 ppid: 1 flags:0x00000009 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 schedule_preempt_disabled+0x18/0x2c kernel/sched/core.c:6515 __mutex_lock_common+0xba0/0x2154 kernel/locking/mutex.c:669 __mutex_lock kernel/locking/mutex.c:729 [inline] mutex_lock_nested+0xa4/0xf8 kernel/locking/mutex.c:743 rtnl_lock+0x20/0x2c net/core/rtnetlink.c:72 netdev_run_todo+0x90c/0xae0 net/core/dev.c:10664 rtnl_unlock+0x14/0x20 net/core/rtnetlink.c:112 nsim_destroy+0xb4/0x164 drivers/net/netdevsim/netdev.c:387 __nsim_dev_port_del+0x148/0x1a8 drivers/net/netdevsim/dev.c:1349 nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1362 [inline] nsim_dev_reload_destroy+0x13c/0x214 drivers/net/netdevsim/dev.c:1561 nsim_dev_remove+0x5c/0x108 drivers/net/netdevsim/dev.c:1577 nsim_bus_remove+0x20/0x30 drivers/net/netdevsim/bus.c:381 __device_release_driver drivers/base/dd.c:1227 [inline] device_release_driver_internal+0x428/0x6ac drivers/base/dd.c:1262 device_release_driver+0x28/0x38 drivers/base/dd.c:1285 bus_remove_device+0x298/0x38c drivers/base/bus.c:531 device_del+0x57c/0x9b4 drivers/base/core.c:3600 device_unregister+0x2c/0xcc drivers/base/core.c:3633 nsim_bus_dev_del drivers/net/netdevsim/bus.c:454 [inline] del_device_store+0x2a4/0x3bc drivers/net/netdevsim/bus.c:354 bus_attr_store+0x80/0xa4 drivers/base/bus.c:124 sysfs_kf_write+0x200/0x280 fs/sysfs/file.c:139 kernfs_fop_write_iter+0x334/0x48c fs/kernfs/file.c:296 call_write_iter include/linux/fs.h:2174 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x884/0xb44 fs/read_write.c:594 ksys_write+0x15c/0x26c fs/read_write.c:647 __do_sys_write fs/read_write.c:659 [inline] __se_sys_write fs/read_write.c:656 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:656 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Showing all locks held in the system: 5 locks held by kworker/u4:0/9: #0: ffff0000c038c138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 kernel/workqueue.c:2283 #1: ffff80001bc37c00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 kernel/workqueue.c:2285 #2: ffff800016be8690 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0xf4/0x9bc net/core/net_namespace.c:561 #3: ffff800016bf3ea8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:72 #4: ffff800014c967f0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x54/0x4b0 kernel/rcu/tree.c:4039 1 lock held by khungtaskd/27: #0: ffff800014c922e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:311 2 locks held by getty/3782: #0: ffff0000d3477098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x40/0x50 drivers/tty/tty_ldsem.c:340 #1: ffff80001d69e2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1204 drivers/tty/n_tty.c:2158 3 locks held by kworker/u4:7/4147: #0: ffff0000c0029138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 kernel/workqueue.c:2283 #1: ffff800020647c00 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 kernel/workqueue.c:2285 #2: ffff800016bf3ea8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:72 3 locks held by kworker/u4:12/4312: #0: ffff0000c002a138 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 kernel/workqueue.c:2283 #1: ffff8000203d7c00 ((reg_check_chans).work){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 kernel/workqueue.c:2285 #2: ffff800016bf3ea8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:72 2 locks held by kworker/u4:13/4394: 3 locks held by kworker/0:6/6744: #0: ffff0000c0020938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 kernel/workqueue.c:2283 #1: ffff800020ea7c00 (deferred_process_work){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 kernel/workqueue.c:2285 #2: ffff800016bf3ea8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:72 3 locks held by kworker/0:8/6747: #0: ffff0000c0020938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 kernel/workqueue.c:2283 #1: ffff800020fb7c00 ((work_completion)(&(&nsim_dev->trap_data->trap_report_dw)->work)){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 kernel/workqueue.c:2285 #2: ffff0001120cd400 (&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/0:11/6749: #0: ffff0000d2c13938 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 kernel/workqueue.c:2283 #1: ffff800020fc7c00 ((addr_chk_work).work){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 kernel/workqueue.c:2285 #2: ffff800016bf3ea8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:72 7 locks held by syz-executor/7172: #0: ffff0000d4ca4460 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x228/0xb44 fs/read_write.c:590 #1: ffff00011221a888 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1c8/0x48c fs/kernfs/file.c:287 #2: ffff0000c910d578 (kn->active#230){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x1e4/0x48c fs/kernfs/file.c:288 #3: ffff8000161c2428 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xec/0x3bc drivers/net/netdevsim/bus.c:344 #4: ffff0000d5e1d178 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline] #4: ffff0000d5e1d178 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1044 [inline] #4: ffff0000d5e1d178 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xbc/0x6ac drivers/base/dd.c:1259 #5: ffff0001120cd400 (&nsim_dev->port_list_lock){+.+.}-{3:3}, at: nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1359 [inline] #5: ffff0001120cd400 (&nsim_dev->port_list_lock){+.+.}-{3:3}, at: nsim_dev_reload_destroy+0xfc/0x214 drivers/net/netdevsim/dev.c:1561 #6: ffff800016bf3ea8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:72 =============================================