BTRFS info (device loop3): enabling ssd optimizations ------------[ cut here ]------------ WARNING: CPU: 0 PID: 30223 at fs/read_write.c:504 __kernel_write_iter+0x508/0x5f8 Modules linked in: CPU: 0 PID: 30223 Comm: syz-executor.3 Not tainted 6.1.57-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __kernel_write_iter+0x508/0x5f8 lr : __kernel_write_iter+0x504/0x5f8 fs/read_write.c:504 sp : ffff8000221874c0 x29: ffff8000221875a0 x28: ffff700004430ea0 x27: ffff800022187640 x26: dfff800000000000 x25: fffffffffffffff7 x24: 1fffe000199911ef x23: ffff0000ccc88f7c x22: ffff0000d1346008 x21: dfff800000000000 x20: ffff0000ccc88f00 x19: 00000000000a801d x18: ffff800022187560 x17: ffff8000158ad000 x16: ffff800012079200 x15: ffff0001b454fbbc x14: 1ffff00002b160b0 x13: dfff800000000000 x12: 0000000000040000 x11: 0000000000002b0d x10: ffff800022a9f000 x9 : ffff800008a3bc6c x8 : 0000000000002b0e x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000011 x3 : 0000000000000001 x2 : ffff0000d1346008 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: __kernel_write_iter+0x508/0x5f8 __kernel_write fs/read_write.c:537 [inline] kernel_write+0x1b0/0x2f0 fs/read_write.c:558 write_buf fs/btrfs/send.c:591 [inline] send_header fs/btrfs/send.c:709 [inline] send_subvol+0x174/0x3f0c fs/btrfs/send.c:7679 btrfs_ioctl_send+0x1c40/0x21b4 fs/btrfs/send.c:8045 _btrfs_ioctl_send+0x314/0x468 fs/btrfs/ioctl.c:5249 btrfs_ioctl+0x638/0xb08 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:856 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 74368 hardirqs last enabled at (74367): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1366 [inline] hardirqs last enabled at (74367): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5000 hardirqs last disabled at (74368): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (74316): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (74314): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---