------------[ cut here ]------------ WARNING: CPU: 0 PID: 12952 at fs/read_write.c:504 __kernel_write_iter+0x60e/0x720 fs/read_write.c:504 Modules linked in: CPU: 0 PID: 12952 Comm: syz-executor.5 Not tainted 6.7.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 RIP: 0010:__kernel_write_iter+0x60e/0x720 fs/read_write.c:504 Code: 28 00 00 00 48 3b 84 24 e0 00 00 00 0f 85 1a 01 00 00 4c 89 f0 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 83 9b 94 ff 90 <0f> 0b 90 49 c7 c6 f7 ff ff ff eb a3 e8 71 9b 94 ff 4c 8b 74 24 18 RSP: 0018:ffffc90009eff720 EFLAGS: 00010283 RAX: ffffffff81f9ddfd RBX: 00000000000a801d RCX: 0000000000040000 RDX: ffffc90015201000 RSI: 0000000000000d66 RDI: 0000000000000d67 RBP: ffffc90009eff850 R08: ffffffff81f9d8c9 R09: 0000000000000000 R10: ffffc90009eff8c0 R11: fffff520013dff1d R12: dffffc0000000000 R13: 1ffff920013dfef0 R14: ffff888050758500 R15: 1ffff1100a0eb0aa FS: 00007efce9f006c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007efce9f00d58 CR3: 000000001bf60000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __kernel_write fs/read_write.c:537 [inline] kernel_write+0x1d8/0x350 fs/read_write.c:558 write_buf fs/btrfs/send.c:648 [inline] send_header fs/btrfs/send.c:766 [inline] send_subvol+0x1ab/0x44a0 fs/btrfs/send.c:7936 btrfs_ioctl_send+0x2113/0x2750 fs/btrfs/send.c:8312 _btrfs_ioctl_send+0x2ff/0x430 fs/btrfs/ioctl.c:4369 btrfs_ioctl+0x90a/0xd40 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:51 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7efce927cae9 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:00007efce9f000c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007efce939c050 RCX: 00007efce927cae9 RDX: 0000000020000140 RSI: 0000000040489426 RDI: 0000000000000004 RBP: 00007efce92c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007efce939c050 R15: 00007ffc38c978c8