------------[ cut here ]------------ WARNING: CPU: 0 PID: 27752 at fs/btrfs/tree-log.c:3081 btrfs_sync_log+0x2528/0x2b70 fs/btrfs/tree-log.c:3081 Modules linked in: CPU: 0 PID: 27752 Comm: syz-executor.4 Not tainted 6.1.0-rc2-syzkaller-00105-gb229b6ca5abb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 RIP: 0010:btrfs_sync_log+0x2528/0x2b70 fs/btrfs/tree-log.c:3081 Code: 0d fe 89 de bf e2 ff ff ff e8 44 31 0d fe 83 fb e2 0f 84 a4 00 00 00 e8 66 34 0d fe 89 de 48 c7 c7 40 c4 38 8a e8 c4 55 da 05 <0f> 0b bb 01 00 00 00 e8 4c 34 0d fe 8b 4c 24 08 41 89 d8 ba 09 0c RSP: 0018:ffffc90003b1f6c8 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 00000000fffffff4 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff81621b98 RDI: fffff52000763ecb RBP: 000000000000000f R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 00000000312d2072 R12: ffffc90003b1f800 R13: ffffc90003b1f790 R14: 0000000000000001 R15: ffff88805dce0348 FS: 00007f38ebdc1700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000209da000 CR3: 000000002709b000 CR4: 0000000000350ee0 Call Trace: btrfs_sync_file+0xdc6/0x13d0 fs/btrfs/file.c:2242 vfs_fsync_range+0x13a/0x220 fs/sync.c:188 generic_write_sync include/linux/fs.h:2883 [inline] btrfs_do_write_iter+0xad9/0x1450 fs/btrfs/file.c:1975 call_write_iter include/linux/fs.h:2191 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9e9/0xdd0 fs/read_write.c:584 ksys_write+0x127/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f38eb08b5a9 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f38ebdc1168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f38eb1ac050 RCX: 00007f38eb08b5a9 RDX: 0000000000000010 RSI: 0000000020000bc0 RDI: 0000000000000003 RBP: 00007f38ebdc11d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffcaed3971f R14: 00007f38ebdc1300 R15: 0000000000022000