BTRFS error (device loop0 state E): cow_file_range failed, root=5 inode=263 start=16777216 len=4096 cur_offset=16777216 cur_alloc_size=0: -5 BTRFS error (device loop0 state E): failed to run delalloc range, root=5 ino=263 folio=16777216 submit_bitmap=0 start=16777216 len=4096: -5 assertion failed: !btrfs_extent_map_is_compressed(em), in fs/btrfs/extent_io.c:1720 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent_io.c:1720! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 181 Comm: kworker/u4:7 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Workqueue: writeback wb_workfn (flush-btrfs-1) RIP: 0010:submit_one_sector fs/btrfs/extent_io.c:1720 [inline] RIP: 0010:extent_writepage_io+0x1022/0x11a0 fs/btrfs/extent_io.c:1826 Code: 0d fd 90 0f 0b e8 7e b8 ac fd 48 c7 c7 60 e7 38 8c 48 c7 c6 20 fe 38 8c 48 c7 c2 e0 e7 38 8c b9 b8 06 00 00 e8 1f 53 0d fd 90 <0f> 0b e8 57 b8 ac fd 48 c7 c7 60 e7 38 8c 48 c7 c6 c0 fe 38 8c 48 RSP: 0018:ffffc9000187ed40 EFLAGS: 00010246 RAX: 0000000000000053 RBX: 0000000000000004 RCX: df9cf5d6b3b79b00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffea000154b980 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1d3ca24 R12: 0000000000001000 R13: dffffc0000000000 R14: ffff88803fee1440 R15: 000000000051e000 FS: 0000000000000000(0000) GS:ffff88808c53f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb4f7f556a0 CR3: 0000000050a2f000 CR4: 0000000000352ef0 Call Trace: extent_writepage fs/btrfs/extent_io.c:1936 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2593 [inline] btrfs_writepages+0x17a1/0x28b0 fs/btrfs/extent_io.c:2725 do_writepages+0x338/0x560 mm/page-writeback.c:2571 __writeback_single_inode+0x12e/0xf90 fs/fs-writeback.c:1787 writeback_sb_inodes+0x9de/0x1b00 fs/fs-writeback.c:2079 __writeback_inodes_wb+0x114/0x240 fs/fs-writeback.c:2155 wb_writeback+0x42f/0xad0 fs/fs-writeback.c:2266 wb_check_start_all fs/fs-writeback.c:2392 [inline] wb_do_writeback fs/fs-writeback.c:2439 [inline] wb_workfn+0x980/0x10f0 fs/fs-writeback.c:2477 process_one_work kernel/workqueue.c:3322 [inline] process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3405 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3486 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:submit_one_sector fs/btrfs/extent_io.c:1720 [inline] RIP: 0010:extent_writepage_io+0x1022/0x11a0 fs/btrfs/extent_io.c:1826 Code: 0d fd 90 0f 0b e8 7e b8 ac fd 48 c7 c7 60 e7 38 8c 48 c7 c6 20 fe 38 8c 48 c7 c2 e0 e7 38 8c b9 b8 06 00 00 e8 1f 53 0d fd 90 <0f> 0b e8 57 b8 ac fd 48 c7 c7 60 e7 38 8c 48 c7 c6 c0 fe 38 8c 48 RSP: 0018:ffffc9000187ed40 EFLAGS: 00010246 RAX: 0000000000000053 RBX: 0000000000000004 RCX: df9cf5d6b3b79b00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffea000154b980 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1d3ca24 R12: 0000000000001000 R13: dffffc0000000000 R14: ffff88803fee1440 R15: 000000000051e000 FS: 0000000000000000(0000) GS:ffff88808c53f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb4f7f556a0 CR3: 0000000050a2f000 CR4: 0000000000352ef0