------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 14 seconds WARNING: CPU: 1 PID: 12867 at fs/bcachefs/btree_iter.c:2998 check_srcu_held_too_long fs/bcachefs/btree_iter.c:2996 [inline] WARNING: CPU: 1 PID: 12867 at fs/bcachefs/btree_iter.c:2998 bch2_trans_put+0xd7a/0xfb0 fs/bcachefs/btree_iter.c:3239 Modules linked in: CPU: 1 PID: 12867 Comm: syz.2.1273 Not tainted 6.10.0-syzkaller-05505-gb1bc554e009e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:2996 [inline] RIP: 0010:bch2_trans_put+0xd7a/0xfb0 fs/bcachefs/btree_iter.c:3239 Code: 2b 1e 48 c1 eb 02 48 b9 c3 f5 28 5c 8f c2 f5 28 48 89 d8 48 f7 e1 48 c1 ea 02 48 c7 c7 20 ec 11 8c 48 89 d6 e8 77 48 43 fd 90 <0f> 0b 90 90 e9 14 f8 ff ff e8 58 2e 81 fd 90 0f 0b 90 e9 57 f8 ff RSP: 0018:ffffc90004386e48 EFLAGS: 00010246 RAX: 03cc5cb048543e00 RBX: 0000000000000162 RCX: 0000000000040000 RDX: ffffc9000c06d000 RSI: 0000000000015af0 RDI: 0000000000015af1 RBP: dffffc0000000000 R08: ffffffff815878a2 R09: 1ffff1101728519a R10: dffffc0000000000 R11: ffffed101728519b R12: 1ffff1100f189808 R13: 1ffff1100f18980e R14: ffff888078c4c070 R15: ffff888078c4c041 FS: 00007fd1605b46c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcfeee875e8 CR3: 0000000055420000 CR4: 0000000000350ef0 Call Trace: bch2_xattr_get_handler+0x1357/0x14d0 fs/bcachefs/xattr.c:355 vfs_getxattr_alloc+0x474/0x5c0 fs/xattr.c:393 ima_read_xattr+0x38/0x60 security/integrity/ima/ima_appraise.c:229 process_measurement+0x1180/0x1fb0 security/integrity/ima/ima_main.c:353 ima_file_check+0xf2/0x170 security/integrity/ima/ima_main.c:572 security_file_post_open+0x6f/0xa0 security/security.c:3008 do_open fs/namei.c:3729 [inline] path_openat+0x2b91/0x3470 fs/namei.c:3886 do_filp_open+0x235/0x490 fs/namei.c:3913 do_sys_openat2+0x13e/0x1d0 fs/open.c:1416 do_sys_open fs/open.c:1431 [inline] __do_sys_open fs/open.c:1439 [inline] __se_sys_open fs/open.c:1435 [inline] __x64_sys_open+0x225/0x270 fs/open.c:1435 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd15f775b59 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd1605b4048 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fd15f904038 RCX: 00007fd15f775b59 RDX: 0000000000000000 RSI: 00000000001451c2 RDI: 0000000020000040 RBP: 00007fd15f7e4e5d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fd15f904038 R15: 00007ffce6280f18