------------[ cut here ]------------ WARNING: CPU: 0 PID: 4306 at fs/btrfs/tree-log.c:3224 btrfs_sync_log+0x1a66/0x27d0 fs/btrfs/tree-log.c:3224 Modules linked in: CPU: 0 PID: 4306 Comm: syz.4.5 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 RIP: 0010:btrfs_sync_log+0x1a66/0x27d0 fs/btrfs/tree-log.c:3224 Code: e8 af f5 1f fe 48 8b 5c 24 38 0f 1f 44 00 00 e8 a0 f5 1f fe eb 16 e8 99 f5 1f fe 48 c7 c7 00 7c 6c 8a 44 89 e6 e8 ba 3a 67 06 <0f> 0b 48 8b 7c 24 40 48 c7 c6 80 7c 6c 8a ba 98 0c 00 00 8b 4c 24 RSP: 0018:ffffc900030ff4e0 EFLAGS: 00010246 RAX: 5a49c9c0a9eaa800 RBX: ffff88807c17c338 RCX: 0000000000080000 RDX: ffffc9000e5b9000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc900030ff950 R08: ffff8880b8e2795b R09: 1ffff110171c4f2b R10: dffffc0000000000 R11: ffffed10171c4f2c R12: 00000000fffffff4 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff88807c17c000 FS: 00007efff2bf86c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7613354000 CR3: 00000000232a1000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_sync_file+0xc47/0x10e0 fs/btrfs/file.c:2371 generic_write_sync include/linux/fs.h:3003 [inline] btrfs_file_write_iter+0xbe9/0xd80 fs/btrfs/file.c:2099 do_iter_readv_writev+0x47d/0x5f0 fs/read_write.c:-1 do_iter_write+0x1f8/0x7a0 fs/read_write.c:855 vfs_writev fs/read_write.c:928 [inline] do_pwritev+0x241/0x3a0 fs/read_write.c:1025 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7efff49abb59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007efff2bf8028 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007efff4c37fa0 RCX: 00007efff49abb59 RDX: 0000000000000001 RSI: 000020000000b400 RDI: 000000000000000c RBP: 00007efff4a3c18b R08: 0000000000000000 R09: 0000000000000003 R10: 0000000000007000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007efff4c38038 R14: 00007efff4c37fa0 R15: 00007ffd247e2258