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: 30 Comm: kworker/u4:2 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: events_unbound btrfs_async_reclaim_metadata_space 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: 28 fd 90 0f 0b e8 be 25 c7 fd 48 c7 c7 20 b2 17 8c 48 c7 c6 e0 c8 17 8c 48 c7 c2 a0 b2 17 8c b9 b8 06 00 00 e8 1f 94 28 fd 90 <0f> 0b e8 97 25 c7 fd 48 c7 c7 20 b2 17 8c 48 c7 c6 80 c9 17 8c 48 RSP: 0018:ffffc90000386dc0 EFLAGS: 00010246 RAX: 0000000000000053 RBX: 0000000000000004 RCX: 9292edda4d6f8f00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffea00014e3f00 R08: ffffc90000386b47 R09: 1ffff92000070d68 R10: dffffc0000000000 R11: fffff52000070d69 R12: 0000000000001000 R13: dffffc0000000000 R14: ffff888044647ad0 R15: 000000000051f000 FS: 0000000000000000(0000) GS:ffff88808c821000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000d80 CR3: 0000000011ea0000 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 filemap_writeback mm/filemap.c:388 [inline] filemap_flush_nr+0x21b/0x360 mm/filemap.c:463 start_delalloc_inodes+0x4cf/0xab0 fs/btrfs/inode.c:8752 btrfs_start_delalloc_roots+0x513/0x790 fs/btrfs/inode.c:8812 shrink_delalloc fs/btrfs/space-info.c:773 [inline] flush_space+0x73c/0xde0 fs/btrfs/space-info.c:883 do_async_reclaim_metadata_space+0x3e8/0x940 fs/btrfs/space-info.c:1211 btrfs_async_reclaim_metadata_space+0x89/0xe0 fs/btrfs/space-info.c:1278 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: 28 fd 90 0f 0b e8 be 25 c7 fd 48 c7 c7 20 b2 17 8c 48 c7 c6 e0 c8 17 8c 48 c7 c2 a0 b2 17 8c b9 b8 06 00 00 e8 1f 94 28 fd 90 <0f> 0b e8 97 25 c7 fd 48 c7 c7 20 b2 17 8c 48 c7 c6 80 c9 17 8c 48 RSP: 0018:ffffc90000386dc0 EFLAGS: 00010246 RAX: 0000000000000053 RBX: 0000000000000004 RCX: 9292edda4d6f8f00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffea00014e3f00 R08: ffffc90000386b47 R09: 1ffff92000070d68 R10: dffffc0000000000 R11: fffff52000070d69 R12: 0000000000001000 R13: dffffc0000000000 R14: ffff888044647ad0 R15: 000000000051f000 FS: 0000000000000000(0000) GS:ffff88808c821000(0000) knlGS:0000000000000000