INFO: task syz-executor:15004 blocked for more than 155 seconds. Not tainted 6.10.0-rc6-next-20240703-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor state:D stack:21024 pid:15004 tgid:15004 ppid:1 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5248 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6600 __schedule_loop kernel/sched/core.c:6677 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6692 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6749 __mutex_lock_common kernel/locking/mutex.c:684 [inline] __mutex_lock+0x6a4/0xd70 kernel/locking/mutex.c:752 new_device_store+0x1b4/0x890 drivers/net/netdevsim/bus.c:166 kernfs_fop_write_iter+0x3a1/0x500 fs/kernfs/file.c:334 new_sync_write fs/read_write.c:497 [inline] vfs_write+0xa72/0xc90 fs/read_write.c:590 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f075957475f RSP: 002b:00007ffcc3dabac0 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f075957475f RDX: 0000000000000003 RSI: 00007ffcc3dabb10 RDI: 0000000000000005 RBP: 00007f07595e45c4 R08: 0000000000000000 R09: 00007ffcc3dab917 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003 R13: 00007ffcc3dabb10 R14: 00007f075a234620 R15: 0000000000000003 Showing all locks held in the system: 3 locks held by kworker/u8:0/11: #0: ffff888029f5b948 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3199 [inline] #0: ffff888029f5b948 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3305 #1: ffffc90000107d00 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3200 [inline] #1: ffffc90000107d00 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3305 #2: ffffffff8f5ff788 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_dad_work+0xd0/0x16f0 net/ipv6/addrconf.c:4193 1 lock held by khungtaskd/30: #0: ffffffff8e335860 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:333 [inline] #0: ffffffff8e335860 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:845 [inline] #0: ffffffff8e335860 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6704 2 locks held by getty/4854: #0: ffff88802abcd0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc9000312b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2211 3 locks held by kworker/1:11/6036: #0: ffff888015080948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3199 [inline] #0: ffff888015080948 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3305 #1: ffffc9000407fd00 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3200 [inline] #1: ffffc9000407fd00 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3305 #2: ffffffff8f5ff788 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0xe/0x60 net/core/link_watch.c:276 5 locks held by kworker/1:13/6038: 1 lock held by syz.0.1251/9575: 5 locks held by kworker/u8:17/9868: #0: ffff888015edd948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3199 [inline] #0: ffff888015edd948 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3305 #1: ffffc90003247d00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3200 [inline] #1: ffffc90003247d00 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3305 #2: ffffffff8f5f2c10 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x16a/0xcc0 net/core/net_namespace.c:594 #3: ffffffff8f5ff788 (rtnl_mutex){+.+.}-{3:3}, at: default_device_exit_batch+0xe9/0xa90 net/core/dev.c:11887 #4: ffffffff8e33ac38 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:297 [inline] #4: ffffffff8e33ac38 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x381/0x830 kernel/rcu/tree_exp.h:980 3 locks held by kworker/u8:7/14247: 4 locks held by syz-executor/15004: #0: ffff88807cdb6420 (sb_writers#8){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2876 [inline] #0: ffff88807cdb6420 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x227/0xc90 fs/read_write.c:586 #1: ffff88802330bc88 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1eb/0x500 fs/kernfs/file.c:325 #2: ffff888021d46008 (kn->active#50){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x20f/0x500 fs/kernfs/file.c:326 #3: ffffffff8ef05248 ( nsim_bus_dev_list_lock ){+.+.}-{3:3} , at: new_device_store+0x1b4/0x890 drivers/net/netdevsim/bus.c:166 4 locks held by syz-executor/15072: #0: ffff88807cdb6420 ( sb_writers#8 ){.+.+}-{0:0} , at: file_start_write include/linux/fs.h:2876 [inline] , at: vfs_write+0x227/0xc90 fs/read_write.c:586 #1: ffff888067e5f088 ( &of->mutex){+.+.}-{3:3} , at: kernfs_fop_write_iter+0x1eb/0x500 fs/kernfs/file.c:325 #2: ffff888021d460f8 ( kn->active #49){.+.+}-{0:0} , at: kernfs_fop_write_iter+0x20f/0x500 fs/kernfs/file.c:326 #3: ffffffff8ef05248 ( nsim_bus_dev_list_lock){+.+.}-{3:3} , at: del_device_store+0xfc/0x480 drivers/net/netdevsim/bus.c:216 7 locks held by syz-executor/15077: #0: ffff88807cdb6420 ( sb_writers #8 ){.+.+}-{0:0} , at: file_start_write include/linux/fs.h:2876 [inline] , at: vfs_write+0x227/0xc90 fs/read_write.c:586 #1: ffff88806cff6488 ( &of->mutex){+.+.}-{3:3} , at: kernfs_fop_write_iter+0x1eb/0x500 fs/kernfs/file.c:325 #2: ffff888021d460f8 ( kn->active #49 ){.+.+}-{0:0} , at: kernfs_fop_write_iter+0x20f/0x500 fs/kernfs/file.c:326 #3: ffffffff8ef05248 ( nsim_bus_dev_list_lock ){+.+.}-{3:3} , at: del_device_store+0xfc/0x480 drivers/net/netdevsim/bus.c:216 #4: ffff8880615130e8 ( &dev->mutex){....}-{3:3} , at: device_lock include/linux/device.h:1009 [inline] , at: __device_driver_lock drivers/base/dd.c:1094 [inline] , at: device_release_driver_internal+0xce/0x7c0 drivers/base/dd.c:1292 #5: ffff888061514250 ( &devlink->lock_key #51 ){+.+.}-{3:3} , at: nsim_drv_remove+0x50/0x160 drivers/net/netdevsim/dev.c:1672 #6: ffffffff8f5ff788 ( rtnl_mutex){+.+.}-{3:3} , at: unregister_nexthop_notifier+0x17/0x40 net/ipv4/nexthop.c:3899 1 lock held by syz-executor/15081: #0: ffffffff8f5ff788 ( rtnl_mutex ){+.+.}-{3:3} , at: rtnl_lock net/core/rtnetlink.c:149 [inline] , at: rtnetlink_rcv_msg+0x847/0x1180 net/core/rtnetlink.c:6725 1 lock held by syz-executor/15110: #0: ffffffff8f5ff788 ( rtnl_mutex){+.+.}-{3:3} , at: rtnl_lock net/core/rtnetlink.c:149 [inline] , at: rtnetlink_rcv_msg+0x847/0x1180 net/core/rtnetlink.c:6725 1 lock held by syz-executor/15113: #0: ffffffff8f5ff788 ( rtnl_mutex){+.+.}-{3:3} , at: rtnl_lock net/core/rtnetlink.c:149 [inline] , at: rtnetlink_rcv_msg+0x847/0x1180 net/core/rtnetlink.c:6725 1 lock held by syz-executor/15116: #0: ffffffff8f5ff788 ( rtnl_mutex){+.+.}-{3:3} , at: rtnl_lock net/core/rtnetlink.c:149 [inline] , at: __rtnl_newlink net/core/rtnetlink.c:3807 [inline] , at: rtnl_newlink+0xa0d/0x2070 net/core/rtnetlink.c:3830 1 lock held by syz-executor/15126: #0: ffffffff8f5ff788 ( rtnl_mutex){+.+.}-{3:3} , at: rtnl_lock net/core/rtnetlink.c:149 [inline] , at: rtnetlink_rcv_msg+0x847/0x1180 net/core/rtnetlink.c:6725 1 lock held by syz-executor/15133: #0: ffffffff8f5ff788 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:149 [inline] (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x847/0x1180 net/core/rtnetlink.c:6725 1 lock held by syz-executor/15137: #0: ffffffff8f5ff788 ( rtnl_mutex ){+.+.}-{3:3} , at: rtnl_lock net/core/rtnetlink.c:149 [inline] , at: rtnetlink_rcv_msg+0x847/0x1180 net/core/rtnetlink.c:6725 1 lock held by syz-executor/15138: #0: ffffffff8f5ff788 ( rtnl_mutex){+.+.}-{3:3} , at: rtnl_lock net/core/rtnetlink.c:149 [inline] , at: rtnetlink_rcv_msg+0x847/0x1180 net/core/rtnetlink.c:6725 1 lock held by syz-executor/15144: #0: ffffffff8f5ff788 (rtnl_mutex ){+.+.}-{3:3} , at: rtnl_lock net/core/rtnetlink.c:149 [inline] , at: rtnetlink_rcv_msg+0x847/0x1180 net/core/rtnetlink.c:6725 1 lock held by syz-executor/15149: #0: ffffffff8f5ff788 ( rtnl_mutex){+.+.}-{3:3} , at: rtnl_lock net/core/rtnetlink.c:149 [inline] , at: rtnetlink_rcv_msg+0x847/0x1180 net/core/rtnetlink.c:6725 1 lock held by syz-executor/15151: #0: ffffffff8f5ff788 ( rtnl_mutex ){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:149 [inline] ){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x847/0x1180 net/core/rtnetlink.c:6725 1 lock held by syz-executor/15155: #0: ffffffff8f5ff788 ( rtnl_mutex ){+.+.}-{3:3} , at: rtnl_lock net/core/rtnetlink.c:149 [inline] , at: rtnetlink_rcv_msg+0x847/0x1180 net/core/rtnetlink.c:6725 1 lock held by syz-executor/15157: #0: ffffffff8f5ff788 ( rtnl_mutex){+.+.}-{3:3} , at: rtnl_lock net/core/rtnetlink.c:149 [inline] , at: rtnetlink_rcv_msg+0x847/0x1180 net/core/rtnetlink.c:6725 1 lock held by syz-executor/15160: #0: ffffffff8f5ff788 ( rtnl_mutex ){+.+.}-{3:3} , at: rtnl_lock net/core/rtnetlink.c:149 [inline] , at: rtnetlink_rcv_msg+0x847/0x1180 net/core/rtnetlink.c:6725 1 lock held by syz-executor/15164: #0: ffffffff8f5ff788 ( rtnl_mutex ){+.+.}-{3:3} , at: rtnl_lock net/core/rtnetlink.c:149 [inline] , at: rtnetlink_rcv_msg+0x847/0x1180 net/core/rtnetlink.c:6725 1 lock held by syz-executor/15166: #0: