BTRFS: error (device loop0: state A) in cleanup_transaction:2005: errno=-12 Out of memory BTRFS info (device loop0: state EA): forced readonly ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5590 at fs/btrfs/transaction.c:151 btrfs_put_transaction+0x37f/0x3e0 Modules linked in: CPU: 1 PID: 5590 Comm: syz-executor.0 Not tainted 6.6.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 RIP: 0010:btrfs_put_transaction+0x37f/0x3e0 fs/btrfs/transaction.c:150 Code: 48 89 da e8 83 2c 3a 07 e9 00 fe ff ff e8 19 e3 fc fd 0f 0b e9 ef fc ff ff e8 0d e3 fc fd 0f 0b e9 72 fd ff ff e8 01 e3 fc fd <0f> 0b e9 9b fd ff ff e8 f5 e2 fc fd 48 89 df be 03 00 00 00 48 83 RSP: 0018:ffffc90005f97940 EFLAGS: 00010293 RAX: ffffffff83912a5f RBX: ffff88801f897330 RCX: ffff8880207ad940 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: 0000000000000001 R08: ffffffff8391275f R09: 1ffff11003f12e02 R10: dffffc0000000000 R11: ffffed1003f12e03 R12: ffff8880704f3738 R13: ffff8880207aeb90 R14: ffff88801f897000 R15: dffffc0000000000 FS: 00007f40960fa6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005629bedaec60 CR3: 00000000183aa000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: cleanup_transaction fs/btrfs/transaction.c:2053 [inline] btrfs_commit_transaction+0x2ca9/0x3730 fs/btrfs/transaction.c:2588 btrfs_ioctl_set_fslabel+0x270/0x2b0 fs/btrfs/ioctl.c:4156 btrfs_ioctl+0xa03/0xd40 fs/btrfs/ioctl.c:4566 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl+0xf8/0x170 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f409547c8d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f40960fa0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f409559bf80 RCX: 00007f409547c8d9 RDX: 00000000200001c0 RSI: 0000000041009432 RDI: 0000000000000005 RBP: 00007f40960fa120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 000000000000000b R14: 00007f409559bf80 R15: 00007ffd4de1ca38