------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 99 seconds WARNING: CPU: 2 PID: 12595 at fs/bcachefs/btree_iter.c:2996 check_srcu_held_too_long fs/bcachefs/btree_iter.c:2996 [inline] WARNING: CPU: 2 PID: 12595 at fs/bcachefs/btree_iter.c:2996 check_srcu_held_too_long fs/bcachefs/btree_iter.c:2994 [inline] WARNING: CPU: 2 PID: 12595 at fs/bcachefs/btree_iter.c:2996 bch2_trans_srcu_unlock fs/bcachefs/btree_iter.c:3012 [inline] WARNING: CPU: 2 PID: 12595 at fs/bcachefs/btree_iter.c:2996 bch2_trans_srcu_unlock+0x4b3/0x590 fs/bcachefs/btree_iter.c:3001 Modules linked in: CPU: 2 PID: 12595 Comm: syz-executor.2 Not tainted 6.10.0-rc5-syzkaller-00018-g55027e689933 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:2996 [inline] RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:2994 [inline] RIP: 0010:bch2_trans_srcu_unlock fs/bcachefs/btree_iter.c:3012 [inline] RIP: 0010:bch2_trans_srcu_unlock+0x4b3/0x590 fs/bcachefs/btree_iter.c:3001 Code: 93 09 48 c7 c7 c0 2b 7e 8b 48 b8 c3 f5 28 5c 8f c2 f5 28 48 29 da 48 c1 ea 02 48 f7 e2 48 c1 ea 02 48 89 d6 e8 8e 6d 63 fd 90 <0f> 0b 90 90 e9 24 fe ff ff e8 7f ec a0 fd 90 0f 0b 90 e9 6b fe ff RSP: 0018:ffffc9000db8f678 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000100003010 RCX: ffffc9002a416000 RDX: 0000000000040000 RSI: ffffffff81511296 RDI: 0000000000000001 RBP: ffffffff8d80f200 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000003 R12: ffff888027dd0041 R13: ffffffffffffdcf2 R14: ffff888027dd0000 R15: 0000000000000040 FS: 0000000000000000(0000) GS:ffff88802c200000(0063) knlGS:00000000f5eafb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000055f7e12e1131 CR3: 0000000028226000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <TASK> bch2_trans_begin+0x101b/0x1330 fs/bcachefs/btree_iter.c:3089 __bchfs_fallocate+0x466/0x15d0 fs/bcachefs/fs-io.c:611 bchfs_fallocate fs/bcachefs/fs-io.c:736 [inline] bch2_fallocate_dispatch+0x74b/0xf70 fs/bcachefs/fs-io.c:783 vfs_fallocate+0x4b8/0xfb0 fs/open.c:330 ioctl_preallocate+0x1a8/0x220 fs/ioctl.c:291 file_ioctl fs/ioctl.c:336 [inline] do_vfs_ioctl+0x151f/0x1a90 fs/ioctl.c:886 __do_compat_sys_ioctl+0x149/0x330 fs/ioctl.c:1001 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:386 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:411 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf72bd579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f5eaf5ac EFLAGS: 00000292 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000009 RCX: 0000000040305839 RDX: 0000000020000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 </TASK> ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 10 06 adc %al,(%rsi) 2: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 6: 10 07 adc %al,(%rdi) 8: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi c: 10 08 adc %cl,(%rax) e: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1e: 00 51 52 add %dl,0x52(%rcx) 21: 55 push %rbp 22: 89 e5 mov %esp,%ebp 24: 0f 34 sysenter 26: cd 80 int $0x80 * 28: 5d pop %rbp <-- trapping instruction 29: 5a pop %rdx 2a: 59 pop %rcx 2b: c3 ret 2c: 90 nop 2d: 90 nop 2e: 90 nop 2f: 90 nop 30: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 37: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi