INFO: task syz.3.150:7435 blocked for more than 143 seconds. Not tainted 6.15.0-rc2-syzkaller-00471-g119009db2674 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.3.150 state:D stack:19280 pid:7435 tgid:7404 ppid:5833 task_flags:0x400140 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x1b33/0x51f0 kernel/sched/core.c:6767 __schedule_loop kernel/sched/core.c:6845 [inline] schedule+0x163/0x360 kernel/sched/core.c:6860 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6917 rwsem_down_write_slowpath+0xedd/0x1420 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write+0x1da/0x220 kernel/locking/rwsem.c:1578 inode_lock include/linux/fs.h:867 [inline] lock_two_nondirectories+0xe1/0x170 fs/inode.c:1233 vfs_rename+0x686/0xf10 fs/namei.c:5092 do_renameat2+0xdbc/0x1410 fs/namei.c:5270 __do_sys_rename fs/namei.c:5317 [inline] __se_sys_rename fs/namei.c:5315 [inline] __x64_sys_rename+0x82/0x90 fs/namei.c:5315 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbb6158e169 RSP: 002b:00007fbb62347038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007fbb617b6080 RCX: 00007fbb6158e169 RDX: 0000000000000000 RSI: 000020000001fb80 RDI: 000020000001fb40 RBP: 00007fbb61610a68 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fbb617b6080 R15: 00007fff0e783c88 Showing all locks held in the system: 3 locks held by kworker/u8:0/12: #0: ffff88803131a148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88803131a148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc90000117c60 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90000117c60 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 #2: ffffffff900eb288 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:130 [inline] #2: ffffffff900eb288 (rtnl_mutex){+.+.}-{4:4}, at: addrconf_verify_work+0x19/0x30 net/ipv6/addrconf.c:4735 1 lock held by khungtaskd/31: #0: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x30/0x180 kernel/locking/lockdep.c:6764 3 locks held by kworker/u8:3/48: #0: ffff8880b8639998 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:605 #1: ffff8880b8623b08 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x41f/0x7a0 kernel/sched/psi.c:987 #2: ffff888021717250 (&devlink->lock_key#4){+.+.}-{4:4}, at: nsim_dev_trap_report_work+0x57/0xb50 drivers/net/netdevsim/dev.c:838 3 locks held by kworker/u8:5/752: #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+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc90003377c60 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90003377c60 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 #2: ffffffff900eb288 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60 net/core/link_watch.c:303 2 locks held by dhcpcd/5494: #0: ffff88804a1936d0 (nlk_cb_mutex-ROUTE){+.+.}-{4:4}, at: __netlink_dump_start+0x119/0x790 net/netlink/af_netlink.c:2388 #1: ffffffff900eb288 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline] #1: ffffffff900eb288 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dumpit+0x99/0x200 net/core/rtnetlink.c:6823 2 locks held by getty/5580: #0: ffff888031cee0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc9000334b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x5bb/0x1700 drivers/tty/n_tty.c:2222 7 locks held by kworker/u8:8/6110: #0: ffff88805bac8948 ((wq_completion)btree_update){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88805bac8948 ((wq_completion)btree_update){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc9000bc3fc60 ((work_completion)(&c->btree_interior_update_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc9000bc3fc60 ((work_completion)(&c->btree_interior_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 #2: ffff88804635c140 (bcachefs_btree){+.+.}-{0:0}, at: trans_set_locked fs/bcachefs/btree_locking.h:198 [inline] #2: ffff88804635c140 (bcachefs_btree){+.+.}-{0:0}, at: bch2_trans_begin+0x9cc/0x1d30 fs/bcachefs/btree_iter.c:3279 #3: ffff88803a084228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #3: ffff88803a084228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #3: ffff88803a084228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0x9a/0x1a0 fs/bcachefs/btree_iter.c:3199 #4: ffff88803a0caf08 (journal res){.+.+}-{0:0}, at: bch2_journal_res_get fs/bcachefs/journal.h:406 [inline] #4: ffff88803a0caf08 (journal res){.+.+}-{0:0}, at: bch2_trans_journal_res_get fs/bcachefs/btree_trans_commit.c:352 [inline] #4: ffff88803a0caf08 (journal res){.+.+}-{0:0}, at: bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:630 [inline] #4: ffff88803a0caf08 (journal res){.+.+}-{0:0}, at: do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:844 [inline] #4: ffff88803a0caf08 (journal res){.+.+}-{0:0}, at: __bch2_trans_commit+0x45b8/0x9da0 fs/bcachefs/btree_trans_commit.c:1050 #5: ffff88803a084860 (&c->mark_lock){++++}-{0:0}, at: bch2_accounting_mem_insert+0x690/0x1a80 fs/bcachefs/disk_accounting.c:372 #6: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline] #6: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x454/0x830 kernel/rcu/tree_exp.h:998 2 locks held by syz-executor/7356: #0: ffff8880667d40e0 (&type->s_umount_key#82){+.+.}-{4:4}, at: __super_lock fs/super.c:56 [inline] #0: ffff8880667d40e0 (&type->s_umount_key#82){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff8880667d40e0 (&type->s_umount_key#82){+.+.}-{4:4}, at: deactivate_super+0xb5/0xf0 fs/super.c:505 #1: ffffffff8ed43300 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x530 kernel/rcu/tree.c:3774 5 locks held by syz.3.150/7405: #0: ffff8880444fa420 (sb_writers#19){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:556 #1: ffff8880652d8148 (&sb->s_type->i_mutex_key#25){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline] #1: ffff8880652d8148 (&sb->s_type->i_mutex_key#25){++++}-{4:4}, at: do_truncate+0x20e/0x310 fs/open.c:63 #2: ffff888059680a70 (&c->snapshot_create_lock){.+.+}-{4:4}, at: bch2_truncate+0x1ae/0x340 fs/bcachefs/io_misc.c:295 #3: ffff888059684228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #3: ffff888059684228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #3: ffff888059684228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0x9a/0x1a0 fs/bcachefs/btree_iter.c:3199 #4: ffff8880596a6590 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x68a/0x16c0 fs/bcachefs/btree_update_interior.c:1179 3 locks held by syz.3.150/7435: #0: ffff8880444fa420 (sb_writers#19){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:556 #1: ffff888065319810 (&sb->s_type->i_mutex_key#24/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:902 [inline] #1: ffff888065319810 (&sb->s_type->i_mutex_key#24/1){+.+.}-{4:4}, at: lock_rename fs/namei.c:3265 [inline] #1: ffff888065319810 (&sb->s_type->i_mutex_key#24/1){+.+.}-{4:4}, at: do_renameat2+0x653/0x1410 fs/namei.c:5216 #2: ffff8880652d8148 (&sb->s_type->i_mutex_key#25){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline] #2: ffff8880652d8148 (&sb->s_type->i_mutex_key#25){++++}-{4:4}, at: lock_two_nondirectories+0xe1/0x170 fs/inode.c:1233 3 locks held by bch-copygc/loop/7431: 2 locks held by syz-executor/8559: #0: ffff8880430e80e0 (&type->s_umount_key#80){++++}-{4:4}, at: __super_lock fs/super.c:56 [inline] #0: ffff8880430e80e0 (&type->s_umount_key#80){++++}-{4:4}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff8880430e80e0 (&type->s_umount_key#80){++++}-{4:4}, at: deactivate_super+0xb5/0xf0 fs/super.c:505 #1: ffff88803a080278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xff/0x5b0 fs/bcachefs/super.c:637 5 locks held by kworker/u8:10/8647: #0: ffff88801bef3948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88801bef3948 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc900041d7c60 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc900041d7c60 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 #2: ffffffff900de750 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0x17c/0xd60 net/core/net_namespace.c:608 #3: ffffffff900eb288 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0xde/0x880 net/core/dev.c:12524 #4: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:304 [inline] #4: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x384/0x830 kernel/rcu/tree_exp.h:998 7 locks held by syz-executor/9402: #0: ffff888035ef0420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3041 [inline] #0: ffff888035ef0420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x23f/0xd10 fs/read_write.c:680 #1: ffff888026792c88 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1e2/0x510 fs/kernfs/file.c:325 #2: ffff88814370cc38 (kn->active#50){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x206/0x510 fs/kernfs/file.c:326 #3: ffffffff8f984c28 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: new_device_store+0x1b6/0x8c0 drivers/net/netdevsim/bus.c:166 #4: ffff8880690aa0e8 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:922 [inline] #4: ffff8880690aa0e8 (&dev->mutex){....}-{4:4}, at: __device_attach+0x90/0x530 drivers/base/dd.c:1005 #5: ffff8880690a9250 (&devlink->lock_key#12){+.+.}-{4:4}, at: nsim_drv_probe+0xc9/0xbc0 drivers/net/netdevsim/dev.c:1537 #6: ffffffff900eb288 (rtnl_mutex){+.+.}-{4:4}, at: register_nexthop_notifier+0x87/0x270 net/ipv4/nexthop.c:3918 2 locks held by syz-executor/9499: #0: ffffffff8f94ebc0 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8f94ebc0 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8f94ebc0 (&ops->srcu#2){.+.+}-{0:0}, at: rtnl_link_ops_get+0x22/0x250 net/core/rtnetlink.c:570 #1: ffffffff900eb288 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline] #1: ffffffff900eb288 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:341 [inline] #1: ffffffff900eb288 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0xd68/0x1fe0 net/core/rtnetlink.c:4064 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.15.0-rc2-syzkaller-00471-g119009db2674 #0 PREEMPT(full) 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+0x4ab/0x4e0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 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+0x1058/0x10a0 kernel/hung_task.c:437 kthread+0x7b7/0x940 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: 7406 Comm: kworker/u8:9 Not tainted 6.15.0-rc2-syzkaller-00471-g119009db2674 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: writeback wb_workfn (flush-7:6) RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x81/0x90 kernel/kcov.c:316 Code: 8d 42 28 4c 39 c8 77 22 89 f8 89 f6 49 ff c2 4c 89 11 48 c7 44 0a 08 05 00 00 00 48 89 44 0a 10 48 89 74 0a 18 4c 89 44 0a 20 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 RSP: 0018:ffffc90000007d38 EFLAGS: 00000006 RAX: 0000000000010000 RBX: 0000000000000000 RCX: ffff88802642bc00 RDX: ffff88802642bc00 RSI: 0000000000000000 RDI: 0000000000000007 RBP: ffffc90000007ea0 R08: ffffffff81b00ef1 R09: 1ffff110057fec82 R10: dffffc0000000000 R11: ffffed10057fec83 R12: 1ffff110170c4ef3 R13: 0000000000000000 R14: ffffc90004057d60 R15: ffff88802642c6d8 FS: 0000000000000000(0000) GS:ffff888124fcf000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000001000 CR3: 00000000318d6000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: cpu_max_bits_warn include/linux/cpumask.h:135 [inline] cpumask_check include/linux/cpumask.h:142 [inline] cpumask_test_cpu include/linux/cpumask.h:587 [inline] cpu_online include/linux/cpumask.h:1143 [inline] trace_hrtimer_expire_exit include/trace/events/timer.h:306 [inline] __run_hrtimer kernel/time/hrtimer.c:1764 [inline] __hrtimer_run_queues+0x5e1/0xd40 kernel/time/hrtimer.c:1825 hrtimer_interrupt+0x403/0xa40 kernel/time/hrtimer.c:1887 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline] __sysvec_apic_timer_interrupt+0x110/0x420 arch/x86/kernel/apic/apic.c:1055 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:console_trylock_spinning kernel/printk/printk.c:2061 [inline] RIP: 0010:vprintk_emit+0x731/0xa40 kernel/printk/printk.c:2449 Code: 00 e8 e3 28 21 00 4c 8d bc 24 a0 00 00 00 4d 85 e4 75 07 e8 d1 28 21 00 eb 06 e8 ca 28 21 00 fb 49 bc 00 00 00 00 00 fc ff df <48> c7 c7 80 9a c1 8e 31 f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00 RSP: 0018:ffffc9000eb86880 EFLAGS: 00000293 RAX: ffffffff81a19396 RBX: 0000000000000000 RCX: ffff88802642bc00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000eb86990 R08: ffffffff81a1936f R09: 1ffffffff20bd74e R10: dffffc0000000000 R11: fffffbfff20bd74f R12: dffffc0000000000 R13: 1ffff92001d70d14 R14: ffffffff81a191c2 R15: ffffc9000eb86920 _printk+0xd5/0x120 kernel/printk/printk.c:2475 bio_check_eod block/blk-core.c:563 [inline] submit_bio_noacct+0x10d4/0x1b00 block/blk-core.c:796 __submit_merged_bio+0x2a9/0x710 fs/f2fs/data.c:543 __f2fs_submit_merged_write fs/f2fs/data.c:639 [inline] __submit_merged_write_cond fs/f2fs/data.c:661 [inline] f2fs_submit_merged_write_cond+0x29f/0x380 fs/f2fs/data.c:678 f2fs_write_cache_pages fs/f2fs/data.c:3215 [inline] __f2fs_write_data_pages fs/f2fs/data.c:3296 [inline] f2fs_write_data_pages+0x2f99/0x38d0 fs/f2fs/data.c:3323 do_writepages+0x364/0x890 mm/page-writeback.c:2656 __writeback_single_inode+0x14f/0x10d0 fs/fs-writeback.c:1680 writeback_sb_inodes+0x822/0x1360 fs/fs-writeback.c:1976 wb_writeback+0x415/0xb90 fs/fs-writeback.c:2156 wb_do_writeback fs/fs-writeback.c:2303 [inline] wb_workfn+0x412/0x10b0 fs/fs-writeback.c:2343 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xac3/0x18e0 kernel/workqueue.c:3319 worker_thread+0x870/0xd50 kernel/workqueue.c:3400 kthread+0x7b7/0x940 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