BTRFS info (device loop5): using free space tree BTRFS info (device loop5): enabling ssd optimizations BTRFS info (device loop5): auto enabling async discard ------------[ cut here ]------------ WARNING: CPU: 1 PID: 899 at fs/read_write.c:504 __kernel_write_iter+0x5b4/0x7b0 fs/read_write.c:504 Modules linked in: CPU: 1 PID: 899 Comm: syz-executor.5 Not tainted 6.6.0-syzkaller-15365-g305230142ae0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 RIP: 0010:__kernel_write_iter+0x5b4/0x7b0 fs/read_write.c:504 Code: c7 a0 af 17 8d e8 cc 71 85 08 31 ff 89 c5 89 c6 e8 01 33 9a ff 85 ed 75 1f 48 c7 c5 ea ff ff ff e9 0b ff ff ff e8 7c 37 9a ff <0f> 0b 48 c7 c5 f7 ff ff ff e9 f8 fe ff ff e8 69 37 9a ff 48 b8 00 RSP: 0018:ffffc90004f9f6a0 EFLAGS: 00010287 RAX: 0000000000007484 RBX: ffff888025de9400 RCX: ffffc9000c039000 RDX: 0000000000040000 RSI: ffffffff81ee6504 RDI: 0000000000000005 RBP: 00000000000a801d R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888031ac0008 R13: 1ffff920009f3ed6 R14: 0000000000000000 R15: ffff888025de9450 FS: 00007fb63a5e06c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b31d21000 CR3: 00000000217bb000 CR4: 0000000000350ef0 Call Trace: __kernel_write fs/read_write.c:537 [inline] kernel_write fs/read_write.c:558 [inline] kernel_write+0x1f8/0x6c0 fs/read_write.c:548 write_buf fs/btrfs/send.c:648 [inline] send_header fs/btrfs/send.c:766 [inline] send_subvol fs/btrfs/send.c:7936 [inline] btrfs_ioctl_send+0x2313/0x6b70 fs/btrfs/send.c:8312 _btrfs_ioctl_send+0x117/0x2f0 fs/btrfs/ioctl.c:4369 btrfs_ioctl+0x3881/0x5d90 fs/btrfs/ioctl.c:4660 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl fs/ioctl.c:857 [inline] __x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fb63987cae9 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:00007fb63a5e00c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fb63999bf80 RCX: 00007fb63987cae9 RDX: 0000000020000200 RSI: 0000000040489426 RDI: 0000000000000003 RBP: 00007fb6398c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fb63999bf80 R15: 00007ffeccf45348