------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 30 seconds WARNING: CPU: 1 PID: 7293 at fs/bcachefs/btree_iter.c:3030 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] WARNING: CPU: 1 PID: 7293 at fs/bcachefs/btree_iter.c:3030 bch2_trans_srcu_unlock+0x42c/0x4b0 fs/bcachefs/btree_iter.c:3044 Modules linked in: CPU: 1 UID: 0 PID: 7293 Comm: syz.3.154 Not tainted 6.12.0-syzkaller-g7b1d1d4cfac0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] pc : bch2_trans_srcu_unlock+0x42c/0x4b0 fs/bcachefs/btree_iter.c:3044 lr : check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] lr : bch2_trans_srcu_unlock+0x42c/0x4b0 fs/bcachefs/btree_iter.c:3044 sp : ffff80009fec6f00 x29: ffff80009fec6f30 x28: 1fffe0001ebd2808 x27: dfff800000000000 x26: 0000000000000000 x25: ffff0000e9e80000 x24: ffff80008f79f000 x23: 1ffff00011ef3e40 x22: 00000000ffffa72a x21: fffffffffffff7ec x20: ffff0000f5e94000 x19: ffff0000f5e94042 x18: ffff80009fec65e0 x17: 0000000000044fe3 x16: ffff800080355c58 x15: 0000000000000001 x14: 1ffff00011f1b954 x13: ffff80009fec8000 x12: 0000000000000003 x11: 0000000000080000 x10: 0000000000032a99 x9 : 9f8edb22657f6c00 x8 : 9f8edb22657f6c00 x7 : ffff800080397f54 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000007 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] (P) bch2_trans_srcu_unlock+0x42c/0x4b0 fs/bcachefs/btree_iter.c:3044 (P) check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] (L) bch2_trans_srcu_unlock+0x42c/0x4b0 fs/bcachefs/btree_iter.c:3044 (L) bch2_trans_begin+0x7c4/0x950 fs/bcachefs/btree_iter.c:3121 bch2_logged_op_start+0xd0/0x2c0 fs/bcachefs/logged_ops.c:92 bch2_truncate+0x168/0x298 fs/bcachefs/io_misc.c:294 bchfs_truncate+0x6bc/0xa88 fs/bcachefs/fs-io.c:464 bch2_setattr+0x1a0/0x214 fs/bcachefs/fs.c:1163 notify_change+0x9f0/0xca0 fs/attr.c:503 do_truncate+0x1c0/0x28c fs/open.c:65 handle_truncate fs/namei.c:3395 [inline] do_open fs/namei.c:3778 [inline] path_openat+0x2494/0x2b14 fs/namei.c:3933 do_filp_open+0x1bc/0x3cc fs/namei.c:3960 do_sys_openat2+0x124/0x1b8 fs/open.c:1415 do_sys_open fs/open.c:1430 [inline] __do_sys_openat fs/open.c:1446 [inline] __se_sys_openat fs/open.c:1441 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1441 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 4096 hardirqs last enabled at (4095): [] console_trylock_spinning+0x27c/0x3d8 kernel/printk/printk.c:2024 hardirqs last disabled at (4096): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:488 softirqs last enabled at (4056): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (4056): [] handle_softirqs+0xa38/0xbf8 kernel/softirq.c:582 softirqs last disabled at (4019): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]---