INFO: task syz.1.17:5287 blocked for more than 143 seconds. Not tainted syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.17 state:D stack: 0 pid: 5287 ppid: 4917 flags:0x00000001 Call trace: __switch_to+0x2f4/0x540 arch/arm64/kernel/process.c:521 context_switch kernel/sched/core.c:5049 [inline] __schedule+0xdfc/0x1bc4 kernel/sched/core.c:6395 schedule+0x11c/0x1c8 kernel/sched/core.c:6478 rwsem_down_write_slowpath+0xc34/0x145c 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 inode_lock include/linux/fs.h:787 [inline] open_last_lookups fs/namei.c:3537 [inline] path_openat+0x604/0x2718 fs/namei.c:3747 do_filp_open+0x184/0x368 fs/namei.c:3777 do_sys_openat2+0x134/0x3f4 fs/open.c:1255 do_sys_open fs/open.c:1271 [inline] __do_sys_openat fs/open.c:1287 [inline] __se_sys_openat fs/open.c:1282 [inline] __arm64_sys_openat+0x118/0x14c fs/open.c:1282 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1d0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/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: 1 lock held by khungtaskd/27: #0: ffff800014461360 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:312 2 locks held by kworker/u4:2/148: 1 lock held by udevd/3660: 2 locks held by getty/3804: #0: ffff0000d2e67098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x40/0x50 drivers/tty/tty_ldsem.c:340 #1: ffff80001befe2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x2f0/0xf6c drivers/tty/n_tty.c:2158 2 locks held by syz.1.17/5277: 2 locks held by syz.1.17/5287: #0: ffff0000c1508460 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:386 #1: ffff0000efd5c188 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline] #1: ffff0000efd5c188 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: open_last_lookups fs/namei.c:3537 [inline] #1: ffff0000efd5c188 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: path_openat+0x604/0x2718 fs/namei.c:3747 2 locks held by syz.0.16/5501: 2 locks held by syz.0.16/5506: #0: ffff0000da754460 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:386 #1: ffff0000fb3d4188 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline] #1: ffff0000fb3d4188 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: open_last_lookups fs/namei.c:3537 [inline] #1: ffff0000fb3d4188 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: path_openat+0x604/0x2718 fs/namei.c:3747 1 lock held by syz.4.20/5515: 2 locks held by syz.4.20/5528: #0: ffff0000d54fc460 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:386 #1: ffff0000fb3d46d0 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline] #1: ffff0000fb3d46d0 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: open_last_lookups fs/namei.c:3537 [inline] #1: ffff0000fb3d46d0 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: path_openat+0x604/0x2718 fs/namei.c:3747 1 lock held by syz.3.19/5517: 2 locks held by syz.3.19/5523: #0: ffff0000d0f68460 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:386 #1: ffff0000efd5c6d0 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline] #1: ffff0000efd5c6d0 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: open_last_lookups fs/namei.c:3537 [inline] #1: ffff0000efd5c6d0 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: path_openat+0x604/0x2718 fs/namei.c:3747 1 lock held by syz.2.18/5527: 2 locks held by syz.2.18/5532: #0: ffff0000ce8c8460 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:386 #1: ffff0000fb3d4c18 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline] #1: ffff0000fb3d4c18 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: open_last_lookups fs/namei.c:3537 [inline] #1: ffff0000fb3d4c18 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: path_openat+0x604/0x2718 fs/namei.c:3747 6 locks held by kworker/u4:7/5530: #0: ffff0000c038c138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x678/0x1138 kernel/workqueue.c:2283 #1: ffff800020317c00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x6b8/0x1138 kernel/workqueue.c:2285 #2: ffff8000163b0410 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x13c/0xaa4 net/core/net_namespace.c:589 #3: ffff8000163e1b28 (devlink_mutex){+.+.}-{3:3}, at: devlink_pernet_pre_exit+0xa4/0x34c net/core/devlink.c:11534 #4: ffff000006b2c670 (&nsim_bus_dev->nsim_bus_reload_lock){+.+.}-{3:3}, at: nsim_dev_reload_down+0x54/0x154 drivers/net/netdevsim/dev.c:870 #5: ffff000006b2d250 (&devlink->lock){+.+.}-{3:3}, at: devlink_traps_unregister+0x40/0x228 net/core/devlink.c:11030 1 lock held by syz.5.21/5662: 2 locks held by syz.5.21/5663: #0: ffff0000dab5e460 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:386 #1: ffff0000fb3d5160 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline] #1: ffff0000fb3d5160 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: open_last_lookups fs/namei.c:3537 [inline] #1: ffff0000fb3d5160 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: path_openat+0x604/0x2718 fs/namei.c:3747 2 locks held by syz.8.24/5780: 2 locks held by syz.8.24/5782: #0: ffff0000d4b80460 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:386 #1: ffff0000fb3d56a8 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline] #1: ffff0000fb3d56a8 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: open_last_lookups fs/namei.c:3537 [inline] #1: ffff0000fb3d56a8 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: path_openat+0x604/0x2718 fs/namei.c:3747 2 locks held by syz.9.25/5784: 2 locks held by syz.9.25/5791: #0: ffff0000d76c2460 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:386 #1: ffff0000fb3d5bf0 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline] #1: ffff0000fb3d5bf0 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: open_last_lookups fs/namei.c:3537 [inline] #1: ffff0000fb3d5bf0 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: path_openat+0x604/0x2718 fs/namei.c:3747 1 lock held by syz.6.22/5786: 2 locks held by syz.6.22/5789: #0: ffff0000da482460 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:386 #1: ffff0000efd5cc18 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline] #1: ffff0000efd5cc18 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: open_last_lookups fs/namei.c:3537 [inline] #1: ffff0000efd5cc18 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: path_openat+0x604/0x2718 fs/namei.c:3747 2 locks held by syz.7.23/5788: 2 locks held by syz.7.23/5792: #0: ffff0000d9d86460 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:386 #1: ffff0000efd5d160 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline] #1: ffff0000efd5d160 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: open_last_lookups fs/namei.c:3537 [inline] #1: ffff0000efd5d160 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: path_openat+0x604/0x2718 fs/namei.c:3747 4 locks held by kworker/u4:8/6255: #0: ffff0000c0029138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x678/0x1138 kernel/workqueue.c:2283 #1: ffff800021aa7c00 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x6b8/0x1138 kernel/workqueue.c:2285 #2: ffff8000163bbce8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:72 #3: ffff800014465e28 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:290 [inline] #3: ffff800014465e28 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x344/0x670 kernel/rcu/tree_exp.h:845 6 locks held by syz-executor/11756: #0: ffff0000d4896460 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22c/0xa60 fs/read_write.c:590 #1: ffff0000117cf088 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1c0/0x478 fs/kernfs/file.c:287 #2: ffff0000c9c3f1d8 (kn->active#299){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x1dc/0x478 fs/kernfs/file.c:288 #3: ffff80001598e848 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xdc/0x34c drivers/net/netdevsim/bus.c:344 #4: ffff000006b2c178 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:764 [inline] #4: ffff000006b2c178 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1044 [inline] #4: ffff000006b2c178 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0x9c/0x63c drivers/base/dd.c:1259 #5: ffff8000163e1b28 (devlink_mutex){+.+.}-{3:3}, at: devlink_reload_disable+0x28/0x88 net/core/devlink.c:9019 =============================================