INFO: task syz.7.213:7886 blocked for more than 143 seconds. Not tainted 6.15.0-rc3-syzkaller-00342-g5bc1018675ec #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.7.213 state:D stack:24352 pid:7886 tgid:7822 ppid:7100 task_flags:0x400040 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x168f/0x4c70 kernel/sched/core.c:6767 __schedule_loop kernel/sched/core.c:6845 [inline] schedule+0x165/0x360 kernel/sched/core.c:6860 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6917 rwsem_down_write_slowpath+0xbec/0x1030 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write+0x1ab/0x1f0 kernel/locking/rwsem.c:1578 inode_lock include/linux/fs.h:867 [inline] lock_two_nondirectories+0xe7/0x180 fs/inode.c:1233 vfs_rename+0x69a/0xec0 fs/namei.c:5092 do_renameat2+0x878/0xc50 fs/namei.c:5270 __do_sys_renameat2 fs/namei.c:5304 [inline] __se_sys_renameat2 fs/namei.c:5301 [inline] __x64_sys_renameat2+0xce/0xe0 fs/namei.c:5301 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2a87b8e969 RSP: 002b:00007f2a859d5038 EFLAGS: 00000246 ORIG_RAX: 000000000000013c RAX: ffffffffffffffda RBX: 00007f2a87db6160 RCX: 00007f2a87b8e969 RDX: ffffffffffffff9c RSI: 00002000000000c0 RDI: ffffffffffffff9c RBP: 00007f2a87c10ab1 R08: 0000000000000002 R09: 0000000000000000 R10: 0000200000001240 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f2a87db6160 R15: 00007ffc4b3aa5c8 Showing all locks held in the system: 3 locks held by kworker/u8:0/12: #0: ffff88801a089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88801a089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x9b1/0x17a0 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+0x9ec/0x17a0 kernel/workqueue.c:3319 #2: ffffffff8f2e1508 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60 net/core/link_watch.c:303 1 lock held by khungtaskd/31: #0: ffffffff8df3b860 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8df3b860 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8df3b860 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6764 6 locks held by kworker/u8:5/145: #0: ffff88801aef3948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88801aef3948 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x9b1/0x17a0 kernel/workqueue.c:3319 #1: ffffc90002ebfc60 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90002ebfc60 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x9ec/0x17a0 kernel/workqueue.c:3319 #2: ffffffff8f2d49d0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0x145/0xbd0 net/core/net_namespace.c:608 #3: ffff88807d4460e8 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:922 [inline] #3: ffff88807d4460e8 (&dev->mutex){....}-{4:4}, at: devl_dev_lock net/devlink/devl_internal.h:108 [inline] #3: ffff88807d4460e8 (&dev->mutex){....}-{4:4}, at: devlink_pernet_pre_exit+0x10a/0x3d0 net/devlink/core.c:506 #4: ffff88807d447250 (&devlink->lock_key#17){+.+.}-{4:4}, at: devl_lock net/devlink/core.c:276 [inline] #4: ffff88807d447250 (&devlink->lock_key#17){+.+.}-{4:4}, at: devl_dev_lock net/devlink/devl_internal.h:109 [inline] #4: ffff88807d447250 (&devlink->lock_key#17){+.+.}-{4:4}, at: devlink_pernet_pre_exit+0x11c/0x3d0 net/devlink/core.c:506 #5: ffffffff8df41200 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x570 kernel/rcu/tree.c:3774 2 locks held by getty/5576: #0: ffff8880343720a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900036d32f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400 drivers/tty/n_tty.c:2222 5 locks held by syz.7.213/7885: #0: ffff88804d504420 (sb_writers#29){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:556 #1: ffff888059202740 (&sb->s_type->i_mutex_key#35){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline] #1: ffff888059202740 (&sb->s_type->i_mutex_key#35){++++}-{4:4}, at: do_truncate+0x186/0x220 fs/open.c:63 #2: ffff88804a500a70 (&c->snapshot_create_lock){.+.+}-{4:4}, at: bch2_truncate+0xeb/0x200 fs/bcachefs/io_misc.c:295 #3: ffff88804a504228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #3: ffff88804a504228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #3: ffff88804a504228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x806/0xda0 fs/bcachefs/btree_iter.c:3385 #4: ffff88804a526590 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x68f/0x14c0 fs/bcachefs/btree_update_interior.c:1179 5 locks held by syz.7.213/7886: #0: ffff88804d504420 (sb_writers#29){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:556 #1: ffff88804d504730 (&type->s_vfs_rename_key#7){+.+.}-{4:4}, at: lock_rename fs/namei.c:3269 [inline] #1: ffff88804d504730 (&type->s_vfs_rename_key#7){+.+.}-{4:4}, at: do_renameat2+0x37f/0xc50 fs/namei.c:5216 #2: ffff888051c388e0 (&sb->s_type->i_mutex_key#35/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:902 [inline] #2: ffff888051c388e0 (&sb->s_type->i_mutex_key#35/1){+.+.}-{4:4}, at: lock_two_directories+0x141/0x220 fs/namei.c:3235 #3: ffff888059202ed8 (&sb->s_type->i_mutex_key#35/5){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:902 [inline] #3: ffff888059202ed8 (&sb->s_type->i_mutex_key#35/5){+.+.}-{4:4}, at: lock_two_directories+0x16b/0x220 fs/namei.c:3236 #4: ffff888059202740 (&sb->s_type->i_mutex_key#35){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline] #4: ffff888059202740 (&sb->s_type->i_mutex_key#35){++++}-{4:4}, at: lock_two_nondirectories+0xe7/0x180 fs/inode.c:1233 2 locks held by bch-copygc/loop/7882: 2 locks held by syz-executor/9761: #0: ffffffff8ea7bd20 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8ea7bd20 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8ea7bd20 (&ops->srcu#2){.+.+}-{0:0}, at: rtnl_link_ops_get+0x23/0x250 net/core/rtnetlink.c:570 #1: ffffffff8f2e1508 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline] #1: ffffffff8f2e1508 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:341 [inline] #1: ffffffff8f2e1508 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x8db/0x1c70 net/core/rtnetlink.c:4064 2 locks held by syz-executor/9887: #0: ffffffff8ea7bd20 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8ea7bd20 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8ea7bd20 (&ops->srcu#2){.+.+}-{0:0}, at: rtnl_link_ops_get+0x23/0x250 net/core/rtnetlink.c:570 #1: ffffffff8f2e1508 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline] #1: ffffffff8f2e1508 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:341 [inline] #1: ffffffff8f2e1508 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x8db/0x1c70 net/core/rtnetlink.c:4064 2 locks held by syz.0.414/10004: 1 lock held by sed/10017: ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.15.0-rc3-syzkaller-00342-g5bc1018675ec #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 nmi_cpu_backtrace+0x39e/0x3d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x17a/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:158 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:274 [inline] watchdog+0xfee/0x1030 kernel/hung_task.c:437 kthread+0x70e/0x8a0 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153 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: 8751 Comm: syz-executor Not tainted 6.15.0-rc3-syzkaller-00342-g5bc1018675ec #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 RIP: 0010:__rq_lockp kernel/sched/sched.h:1384 [inline] RIP: 0010:lockdep_assert_rq_held kernel/sched/sched.h:1504 [inline] RIP: 0010:rq_clock kernel/sched/sched.h:1652 [inline] RIP: 0010:sched_info_enqueue kernel/sched/stats.h:292 [inline] RIP: 0010:sched_info_depart kernel/sched/stats.h:310 [inline] RIP: 0010:sched_info_switch kernel/sched/stats.h:327 [inline] RIP: 0010:prepare_task_switch kernel/sched/core.c:5179 [inline] RIP: 0010:context_switch kernel/sched/core.c:5329 [inline] RIP: 0010:__schedule+0xb07/0x4c70 kernel/sched/core.c:6767 Code: 03 48 b9 00 00 00 00 00 fc ff df 0f b6 04 08 84 c0 0f 85 fd 13 00 00 83 3d 55 5f 2e 04 00 74 74 48 b8 00 00 00 00 00 fc ff df <48> 8b 4c 24 78 0f b6 04 01 84 c0 0f 85 60 14 00 00 48 8b 7c 24 08 RSP: 0018:ffffc90004017800 EFLAGS: 00000002 RAX: dffffc0000000000 RBX: 1ffff1101710749e RCX: dffffc0000000000 RDX: 0000000000000000 RSI: ffffffff8d91f812 RDI: ffff888030ce1e18 RBP: ffffc90004017a10 R08: ffffffff8f7d9f77 R09: 1ffffffff1efb3ee R10: dffffc0000000000 R11: fffffbfff1efb3ef R12: ffff8880b883a4d0 R13: 1ffff1100619c460 R14: 1ffff1101710749a R15: ffff888030ce2300 FS: 0000555571ab5500(0000) GS:ffff888126102000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f23834585e8 CR3: 0000000049f2c000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: preempt_schedule_irq+0xb5/0x150 kernel/sched/core.c:7090 irqentry_exit+0x6f/0x90 kernel/entry/common.c:354 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:lock_is_held_type+0x137/0x190 kernel/locking/lockdep.c:5943 Code: 01 75 44 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 4c 41 f7 c4 00 02 00 00 74 01 fb 65 48 8b 05 89 44 23 07 <48> 3b 44 24 08 75 43 89 d8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f RSP: 0018:ffffc90004017b98 EFLAGS: 00000206 RAX: cd450ae51a67fe00 RBX: 0000000000000000 RCX: cd450ae51a67fe00 RDX: 0000000000000000 RSI: ffffffff8d91f812 RDI: ffffffff8bc0fa60 RBP: 00000000ffffffff R08: 00000000ffffffff R09: 0000000000000000 R10: ffff88806be79100 R11: ffffffff81ce8216 R12: 0000000000000246 R13: ffff888030ce1e00 R14: ffffffff8df3b920 R15: 0000000000000000 lock_is_held include/linux/lockdep.h:249 [inline] __might_resched+0xf5/0x610 kernel/sched/core.c:8780 __might_fault+0x77/0x130 mm/memory.c:7149 strncpy_from_user+0x31/0x290 lib/strncpy_from_user.c:117 getname_flags+0xf3/0x540 fs/namei.c:157 getname include/linux/fs.h:2852 [inline] do_sys_openat2+0xbc/0x1c0 fs/open.c:1423 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1455 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f518078e261 Code: 44 24 18 31 c0 41 83 e2 40 75 3e 89 f0 25 00 00 41 00 3d 00 00 41 00 74 30 89 f2 b8 01 01 00 00 48 89 fe bf 9c ff ff ff 0f 05 <48> 3d 00 f0 ff ff 77 3f 48 8b 54 24 18 64 48 2b 14 25 28 00 00 00 RSP: 002b:00007ffd5c0db6a0 EFLAGS: 00000287 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000030 RCX: 00007f518078e261 RDX: 0000000000090800 RSI: 00007f5180810dd1 RDI: 00000000ffffff9c RBP: 00007ffd5c0db74c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000287 R12: 000000000000000f R13: 0000000000000000 R14: 000000000005562e R15: 00007ffd5c0db7a0