INFO: task syz.7.752:10716 blocked for more than 145 seconds. Not tainted 6.14.0-rc3-next-20250218-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.7.752 state:D stack:27200 pid:10716 tgid:10709 ppid:7728 task_flags:0x400040 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5373 [inline] __schedule+0x190e/0x4c90 kernel/sched/core.c:6760 __schedule_loop kernel/sched/core.c:6837 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6852 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6909 rwsem_down_write_slowpath+0xeee/0x13b0 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write_nested+0x1e0/0x220 kernel/locking/rwsem.c:1694 inode_lock_nested include/linux/fs.h:902 [inline] lock_rename fs/namei.c:3223 [inline] do_renameat2+0x622/0x1280 fs/namei.c:5152 __do_sys_rename fs/namei.c:5253 [inline] __se_sys_rename fs/namei.c:5251 [inline] __x64_sys_rename+0x82/0x90 fs/namei.c:5251 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:0x7f002d78d169 RSP: 002b:00007f002e525038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f002d9a6240 RCX: 00007f002d78d169 RDX: 0000000000000000 RSI: 0000400000000040 RDI: 0000400000000000 RBP: 00007f002d80e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f002d9a6240 R15: 00007ffe78039f28 Showing all locks held in the system: 3 locks held by kworker/u8:1/12: #0: ffff88801b089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88801b089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x98b/0x18e0 kernel/workqueue.c:3319 #1: ffffc90000117c60 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90000117c60 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x9c6/0x18e0 kernel/workqueue.c:3319 #2: ffffffff8fee0408 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60 net/core/link_watch.c:285 1 lock held by khungtaskd/30: #0: ffffffff8eb3b3a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8eb3b3a0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8eb3b3a0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6746 5 locks held by kworker/u8:8/3504: #0: ffff88801bef5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88801bef5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x98b/0x18e0 kernel/workqueue.c:3319 #1: ffffc9000c467c60 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc9000c467c60 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x9c6/0x18e0 kernel/workqueue.c:3319 #2: ffffffff8fed3c90 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0x17a/0xd60 net/core/net_namespace.c:606 #3: ffff88806268d4e8 (&wg->device_update_lock){+.+.}-{4:4}, at: wg_destruct+0x110/0x2e0 drivers/net/wireguard/device.c:249 #4: ffffffff8eb408b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline] #4: ffffffff8eb408b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x451/0x820 kernel/rcu/tree_exp.h:998 2 locks held by dhcpcd/5496: #0: ffffffff8fec53c8 (vlan_ioctl_mutex){+.+.}-{4:4}, at: sock_ioctl+0x661/0x8e0 net/socket.c:1280 #1: ffffffff8fee0408 (rtnl_mutex){+.+.}-{4:4}, at: vlan_ioctl_handler+0x112/0x9d0 net/8021q/vlan.c:553 2 locks held by getty/5584: #0: ffff88823bfc88a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc9000331b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x616/0x1770 drivers/tty/n_tty.c:2211 3 locks held by kworker/u8:19/9579: 3 locks held by syz.7.752/10715: 2 locks held by syz.7.752/10716: #0: ffff88806d092420 (sb_writers#14){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:556 #1: ffff88805f368680 (&type->i_mutex_dir_key#10/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:902 [inline] #1: ffff88805f368680 (&type->i_mutex_dir_key#10/1){+.+.}-{4:4}, at: lock_rename fs/namei.c:3223 [inline] #1: ffff88805f368680 (&type->i_mutex_dir_key#10/1){+.+.}-{4:4}, at: do_renameat2+0x622/0x1280 fs/namei.c:5152 2 locks held by syz-executor/10782: #0: ffff888035668d80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_dev_do_close net/bluetooth/hci_core.c:480 [inline] #0: ffff888035668d80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_unregister_dev+0x203/0x510 net/bluetooth/hci_core.c:2677 #1: ffff888035668078 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x60d/0x1260 net/bluetooth/hci_sync.c:5185 4 locks held by syz-executor/10785: #0: ffff888036448420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3033 [inline] #0: ffff888036448420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x225/0xd10 fs/read_write.c:680 #1: ffff888146736888 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1ef/0x510 fs/kernfs/file.c:325 #2: ffff8880280fa5a8 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x213/0x510 fs/kernfs/file.c:326 #3: ffffffff8f7865a8 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xfc/0x480 drivers/net/netdevsim/bus.c:216 8 locks held by syz-executor/10787: #0: ffff888036448420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3033 [inline] #0: ffff888036448420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x225/0xd10 fs/read_write.c:680 #1: ffff88814d128888 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1ef/0x510 fs/kernfs/file.c:325 #2: ffff8880280fa5a8 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x213/0x510 fs/kernfs/file.c:326 #3: ffffffff8f7865a8 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xfc/0x480 drivers/net/netdevsim/bus.c:216 #4: ffff88805b30e0e8 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1030 [inline] #4: ffff88805b30e0e8 (&dev->mutex){....}-{4:4}, at: __device_driver_lock drivers/base/dd.c:1095 [inline] #4: ffff88805b30e0e8 (&dev->mutex){....}-{4:4}, at: device_release_driver_internal+0xce/0x7c0 drivers/base/dd.c:1293 #5: ffff888061c92250 (&devlink->lock_key#20){+.+.}-{4:4}, at: nsim_drv_remove+0x50/0x160 drivers/net/netdevsim/dev.c:1675 #6: ffffffff8fee0408 (rtnl_mutex){+.+.}-{4:4}, at: nsim_destroy+0xa4/0x620 drivers/net/netdevsim/netdev.c:1014 #7: ffffffff8eb408b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline] #7: ffffffff8eb408b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x451/0x820 kernel/rcu/tree_exp.h:998 2 locks held by syz-executor/10921: #0: ffffffff903de090 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff903de090 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff903de090 (&ops->srcu#2){.+.+}-{0:0}, at: rtnl_link_ops_get+0x22/0x250 net/core/rtnetlink.c:569 #1: ffffffff8fee0408 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #1: ffffffff8fee0408 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:340 [inline] #1: ffffffff8fee0408 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0xc55/0x1d30 net/core/rtnetlink.c:4026 1 lock held by syz-executor/10938: #0: ffffffff8fee0408 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:130 [inline] #0: ffffffff8fee0408 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x47e/0x1bc0 net/ipv4/devinet.c:979 1 lock held by syz-executor/10944: #0: ffffffff8fee0408 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffffffff8fee0408 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:340 [inline] #0: ffffffff8fee0408 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0xc55/0x1d30 net/core/rtnetlink.c:4026 1 lock held by syz-executor/10947: #0: ffffffff8fee0408 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:130 [inline] #0: ffffffff8fee0408 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x47e/0x1bc0 net/ipv4/devinet.c:979 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.14.0-rc3-next-20250218-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:236 [inline] watchdog+0x1058/0x10a0 kernel/hung_task.c:399 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 10715 Comm: syz.7.752 Not tainted 6.14.0-rc3-next-20250218-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:unwind_next_frame+0x77/0x2380 arch/x86/kernel/unwind_orc.c:471 Code: 6c 24 38 48 89 e8 48 c1 e8 03 48 89 44 24 50 42 80 3c 28 00 74 08 48 89 ef e8 35 31 bc 00 4d 8b 7c 24 38 4c 89 e3 48 c1 eb 03 <42> 0f b6 04 2b 84 c0 0f 85 f0 1a 00 00 41 8b 04 24 85 c0 0f 84 41 RSP: 0018:ffffc9000b0ad788 EFLAGS: 00000a06 RAX: 1ffff92001615b13 RBX: 1ffff92001615b0c RCX: ffffffff919f4000 RDX: dffffc0000000000 RSI: ffffffff82027cbc RDI: ffffc9000b0ad860 RBP: ffffc9000b0ad898 R08: 000000000000000c R09: ffffc9000b0ad950 R10: dffffc0000000000 R11: ffffffff81ada960 R12: ffffc9000b0ad860 R13: dffffc0000000000 R14: ffffffff82027cbc R15: ffffc9000b0af220 FS: 00007f002e5466c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffe6a4e11a8 CR3: 0000000020ff8000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: arch_stack_walk+0x11c/0x150 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x59/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2367 [inline] slab_free mm/slub.c:4623 [inline] kmem_cache_free+0x195/0x410 mm/slub.c:4725 free_buffer_head+0x54/0x240 fs/buffer.c:3031 try_to_free_buffers+0x2fa/0x3b0 fs/buffer.c:2972 shrink_folio_list+0x2075/0x5ac0 mm/vmscan.c:1478 evict_folios+0x45fd/0x56a0 mm/vmscan.c:4674 try_to_shrink_lruvec+0x713/0x9b0 mm/vmscan.c:4835 lru_gen_shrink_lruvec mm/vmscan.c:4984 [inline] shrink_lruvec+0x535/0x30f0 mm/vmscan.c:5729 shrink_node_memcgs mm/vmscan.c:5962 [inline] shrink_node+0xb03/0x3e10 mm/vmscan.c:6003 shrink_zones mm/vmscan.c:6248 [inline] do_try_to_free_pages+0x78c/0x1cf0 mm/vmscan.c:6310 try_to_free_mem_cgroup_pages+0x48c/0xab0 mm/vmscan.c:6638 try_charge_memcg+0x8c7/0x1150 mm/memcontrol.c:2261 try_charge mm/memcontrol.c:2403 [inline] charge_memcg+0x9f/0x170 mm/memcontrol.c:4540 __mem_cgroup_charge+0x27/0x80 mm/memcontrol.c:4557 mem_cgroup_charge include/linux/memcontrol.h:644 [inline] filemap_add_folio+0xb7/0x380 mm/filemap.c:966 __filemap_get_folio+0x52b/0xae0 mm/filemap.c:1981 grow_dev_folio fs/buffer.c:1039 [inline] grow_buffers fs/buffer.c:1105 [inline] __getblk_slow fs/buffer.c:1131 [inline] bdev_getblk+0x1d4/0x670 fs/buffer.c:1431 __bread_gfp+0x86/0x400 fs/buffer.c:1485 sb_bread include/linux/buffer_head.h:346 [inline] bfs_find_entry+0x1c8/0x400 fs/bfs/dir.c:333 bfs_lookup+0x14b/0x270 fs/bfs/dir.c:137 lookup_open fs/namei.c:3637 [inline] open_last_lookups fs/namei.c:3758 [inline] path_openat+0x11cc/0x35b0 fs/namei.c:3994 do_filp_open+0x282/0x4e0 fs/namei.c:4024 do_sys_openat2+0x13f/0x1c0 fs/open.c:1428 do_sys_open fs/open.c:1443 [inline] __do_sys_openat fs/open.c:1459 [inline] __se_sys_openat fs/open.c:1454 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1454 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:0x7f002d78d169 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f002e546038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f002d9a6160 RCX: 00007f002d78d169 RDX: 0000000000143042 RSI: 0000400000000040 RDI: ffffffffffffff9c RBP: 00007f002d80e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f002d9a6160 R15: 00007ffe78039f28