bcachefs (loop5): shutting down bcachefs (loop5): going read-only bcachefs (loop5): finished waiting for writes to stop bcachefs (loop5): flushing journal and stopping allocators, journal seq 3 ------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 43 seconds WARNING: CPU: 1 PID: 22866 at fs/bcachefs/btree_iter.c:3276 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline] WARNING: CPU: 1 PID: 22866 at fs/bcachefs/btree_iter.c:3276 bch2_trans_srcu_unlock+0x50d/0x620 fs/bcachefs/btree_iter.c:3290 Modules linked in: CPU: 1 UID: 0 PID: 22866 Comm: syz-executor Not tainted 6.17.0-rc1-syzkaller-00116-gd7ee5bdce789 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline] RIP: 0010:bch2_trans_srcu_unlock+0x50d/0x620 fs/bcachefs/btree_iter.c:3290 Code: 7d 00 49 c1 ef 02 48 b9 c3 f5 28 5c 8f c2 f5 28 4c 89 f8 48 f7 e1 48 c1 ea 02 48 c7 c7 60 b3 d3 8b 48 89 d6 e8 94 37 5a fd 90 <0f> 0b 90 90 e9 a6 fe ff ff 44 89 e1 80 e1 07 38 c1 0f 8c 1c fb ff RSP: 0018:ffffc9000e917218 EFLAGS: 00010246 RAX: 1ae199c3da96f600 RBX: 1ffff11006d8d009 RCX: ffff888025663c00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002 RBP: 1ffff11006d8d011 R08: ffff8880b8724253 R09: 1ffff110170e484a R10: dffffc0000000000 R11: ffffed10170e484b R12: ffff888036c68046 R13: ffff888036c68088 R14: 1ffff11006d8d008 R15: 0000000000000438 FS: 0000555578f0f500(0000) GS:ffff888125d1c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd496628873 CR3: 0000000078ea9000 CR4: 0000000000350ef0 Call Trace: bch2_trans_begin+0x1b3b/0x2310 fs/bcachefs/btree_iter.c:3387 bch2_btree_write_buffer_flush_locked+0x26ad/0x4dd0 fs/bcachefs/btree_write_buffer.c:403 btree_write_buffer_flush_seq+0x18c7/0x1a40 fs/bcachefs/btree_write_buffer.c:572 bch2_btree_write_buffer_flush_going_ro+0xdb/0x130 fs/bcachefs/btree_write_buffer.c:611 __bch2_fs_read_only+0x127/0x5b0 fs/bcachefs/super.c:290 bch2_fs_read_only+0x42a/0xb00 fs/bcachefs/super.c:366 __bch2_fs_stop+0x100/0x900 fs/bcachefs/super.c:677 generic_shutdown_super+0x135/0x2c0 fs/super.c:643 bch2_kill_sb+0x41/0x50 fs/bcachefs/fs.c:2618 deactivate_locked_super+0xbc/0x130 fs/super.c:474 cleanup_mnt+0x425/0x4c0 fs/namespace.c:1378 task_work_run+0x1d4/0x260 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xec/0x110 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x2bd/0x3b0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff20898ff17 Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffd59d27df8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007ff208a11c05 RCX: 00007ff20898ff17 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffd59d27eb0 RBP: 00007ffd59d27eb0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffd59d28f40 R13: 00007ff208a11c05 R14: 00000000001e3386 R15: 00007ffd59d28f80