EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 ================================================================== BUG: KASAN: use-after-free in ext4_ext_binsearch fs/ext4/extents.c:827 [inline] BUG: KASAN: use-after-free in ext4_find_extent+0xbeb/0xe20 fs/ext4/extents.c:946 Read of size 4 at addr ffff88810e891058 by task kworker/u4:0/8 CPU: 1 PID: 8 Comm: kworker/u4:0 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 Workqueue: writeback wb_workfn (flush-7:0) Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0xee/0x150 lib/dump_stack.c:106 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0xf1/0x140 mm/kasan/report.c:444 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 ext4_ext_binsearch fs/ext4/extents.c:827 [inline] ext4_find_extent+0xbeb/0xe20 fs/ext4/extents.c:946 ext4_ext_map_blocks+0x1db/0x6270 fs/ext4/extents.c:4166 ext4_map_blocks+0x97b/0x1b20 fs/ext4/inode.c:674 mpage_map_one_extent fs/ext4/inode.c:2421 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2474 [inline] ext4_writepages+0x11e7/0x2f90 fs/ext4/inode.c:2842 do_writepages+0x48a/0x6c0 mm/page-writeback.c:2388 __writeback_single_inode+0xd5/0x9c0 fs/fs-writeback.c:1657 writeback_sb_inodes+0x9c0/0x1590 fs/fs-writeback.c:1940 wb_writeback+0x3f1/0x980 fs/fs-writeback.c:2116 wb_do_writeback fs/fs-writeback.c:2263 [inline] wb_workfn+0x38f/0xe20 fs/fs-writeback.c:2304 process_one_work+0x6be/0xba0 kernel/workqueue.c:2325 worker_thread+0xa59/0x1200 kernel/workqueue.c:2472 kthread+0x411/0x500 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the page: page:ffffea00043a2440 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x10e891 flags: 0x4000000000000000(zone=1) raw: 4000000000000000 ffffea0004819608 ffffea00043ac788 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Movable, gfp_mask 0x100cca(GFP_HIGHUSER_MOVABLE), pid 281, ts 20500649326, free_ts 21385445369 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2605 prep_new_page+0x1c/0x110 mm/page_alloc.c:2611 get_page_from_freelist+0x2cc5/0x2d50 mm/page_alloc.c:4485 __alloc_pages+0x18f/0x440 mm/page_alloc.c:5808 __alloc_pages_node include/linux/gfp.h:595 [inline] alloc_pages_node include/linux/gfp.h:609 [inline] alloc_pages include/linux/gfp.h:622 [inline] wp_page_copy+0x20f/0x18f0 mm/memory.c:3226 do_wp_page+0x731/0xc90 mm/memory.c:-1 handle_pte_fault+0x73c/0x2680 mm/memory.c:4932 __handle_mm_fault mm/memory.c:-1 [inline] do_handle_mm_fault+0x1a6d/0x1d50 mm/memory.c:5333 do_user_addr_fault+0x554/0x1180 arch/x86/mm/fault.c:1325 handle_page_fault arch/x86/mm/fault.c:1509 [inline] exc_page_fault+0x51/0xb0 arch/x86/mm/fault.c:1565 asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:606 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1472 [inline] free_pcp_prepare mm/page_alloc.c:1544 [inline] free_unref_page_prepare+0x542/0x550 mm/page_alloc.c:3534 free_unref_page_list+0x134/0x9d0 mm/page_alloc.c:3671 release_pages+0xfda/0x1030 mm/swap.c:1014 free_pages_and_swap_cache+0x86/0xa0 mm/swap_state.c:320 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:240 [inline] tlb_flush_mmu+0xd6/0x180 mm/mmu_gather.c:247 zap_pte_range mm/memory.c:1526 [inline] zap_pmd_range mm/memory.c:1575 [inline] zap_pud_range mm/memory.c:1604 [inline] zap_p4d_range mm/memory.c:1625 [inline] unmap_page_range+0x1bcb/0x1d90 mm/memory.c:1646 unmap_single_vma mm/memory.c:1691 [inline] unmap_vmas+0x258/0x360 mm/memory.c:1723 exit_mmap+0x3e6/0x860 mm/mmap.c:3245 __mmput+0x93/0x320 kernel/fork.c:1180 mmput+0x50/0x150 kernel/fork.c:1203 exit_mm kernel/exit.c:554 [inline] do_exit+0x9d2/0x27a0 kernel/exit.c:876 do_group_exit+0x141/0x310 kernel/exit.c:1003 get_signal+0x66a/0x1480 kernel/signal.c:2907 arch_do_signal_or_restart+0xc1/0x10f0 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:154 [inline] exit_to_user_mode_loop+0xa7/0xe0 kernel/entry/common.c:178 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:214 Memory state around the buggy address: ffff88810e890f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88810e890f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88810e891000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88810e891080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88810e891100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== EXT4-fs (loop0): Delayed block allocation failed for inode 19 at logical offset 0 with max blocks 16 with error 28 EXT4-fs (loop0): This should not happen!! Data will be lost EXT4-fs (loop0): Total free blocks count 0 EXT4-fs (loop0): Free/Dirty block details EXT4-fs (loop0): free_blocks=0 EXT4-fs (loop0): dirty_blocks=0 EXT4-fs (loop0): Block reservation details EXT4-fs (loop0): i_reserved_data_blocks=0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs (loop0): Delayed block allocation failed for inode 19 at logical offset 0 with max blocks 16 with error 28 EXT4-fs (loop0): This should not happen!! Data will be lost EXT4-fs (loop0): Total free blocks count 0 EXT4-fs (loop0): Free/Dirty block details EXT4-fs (loop0): free_blocks=0 EXT4-fs (loop0): dirty_blocks=0 EXT4-fs (loop0): Block reservation details EXT4-fs (loop0): i_reserved_data_blocks=0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs (loop0): Delayed block allocation failed for inode 19 at logical offset 0 with max blocks 16 with error 28 EXT4-fs (loop0): This should not happen!! Data will be lost EXT4-fs (loop0): Total free blocks count 0 EXT4-fs (loop0): Free/Dirty block details EXT4-fs (loop0): free_blocks=0 EXT4-fs (loop0): dirty_blocks=0 EXT4-fs (loop0): Block reservation details EXT4-fs (loop0): i_reserved_data_blocks=0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs error (device loop0): ext4_ext_split:1074: inode #19: comm kworker/u4:0: p_ext > EXT_MAX_EXTENT! EXT4-fs (loop0): Delayed block allocation failed for inode 19 at logical offset 0 with max blocks 16 with error 117 EXT4-fs (loop0): This should not happen!! Data will be lost EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs (loop0): Delayed block allocation failed for inode 19 at logical offset 0 with max blocks 16 with error 28 EXT4-fs (loop0): This should not happen!! Data will be lost EXT4-fs (loop0): Total free blocks count 0 EXT4-fs (loop0): Free/Dirty block details EXT4-fs (loop0): free_blocks=0 EXT4-fs (loop0): dirty_blocks=0 EXT4-fs (loop0): Block reservation details EXT4-fs (loop0): i_reserved_data_blocks=0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs (loop0): Delayed block allocation failed for inode 19 at logical offset 0 with max blocks 16 with error 28 EXT4-fs (loop0): This should not happen!! Data will be lost EXT4-fs (loop0): Total free blocks count 0 EXT4-fs (loop0): Free/Dirty block details EXT4-fs (loop0): free_blocks=0 EXT4-fs (loop0): dirty_blocks=0 EXT4-fs (loop0): Block reservation details EXT4-fs (loop0): i_reserved_data_blocks=0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs (loop0): Delayed block allocation failed for inode 19 at logical offset 0 with max blocks 16 with error 28 EXT4-fs (loop0): This should not happen!! Data will be lost EXT4-fs (loop0): Total free blocks count 0 EXT4-fs (loop0): Free/Dirty block details EXT4-fs (loop0): free_blocks=0 EXT4-fs (loop0): dirty_blocks=0 EXT4-fs (loop0): Block reservation details EXT4-fs (loop0): i_reserved_data_blocks=0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs error (device loop0): ext4_map_blocks:740: inode #19: comm kworker/u4:0: lblock 0 mapped to illegal pblock 0 (length 16) EXT4-fs (loop0): Delayed block allocation failed for inode 19 at logical offset 0 with max blocks 16 with error 117 EXT4-fs (loop0): This should not happen!! Data will be lost EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs (loop0): Delayed block allocation failed for inode 19 at logical offset 0 with max blocks 16 with error 28 EXT4-fs (loop0): This should not happen!! Data will be lost EXT4-fs (loop0): Total free blocks count 0 EXT4-fs (loop0): Free/Dirty block details EXT4-fs (loop0): free_blocks=0 EXT4-fs (loop0): dirty_blocks=0 EXT4-fs (loop0): Block reservation details EXT4-fs (loop0): i_reserved_data_blocks=0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs (loop0): Delayed block allocation failed for inode 19 at logical offset 0 with max blocks 16 with error 28 EXT4-fs (loop0): This should not happen!! Data will be lost EXT4-fs (loop0): Total free blocks count 0 EXT4-fs (loop0): Free/Dirty block details EXT4-fs (loop0): free_blocks=0 EXT4-fs (loop0): dirty_blocks=0 EXT4-fs (loop0): Block reservation details EXT4-fs (loop0): i_reserved_data_blocks=0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs error (device loop0): ext4_map_blocks:740: inode #19: block 125142462136287: comm kworker/u4:0: lblock 0 mapped to illegal pblock 125142462136287 (length 16) EXT4-fs (loop0): Delayed block allocation failed for inode 19 at logical offset 0 with max blocks 16 with error 117 EXT4-fs (loop0): This should not happen!! Data will be lost EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs (loop0): Delayed block allocation failed for inode 19 at logical offset 0 with max blocks 16 with error 28 EXT4-fs (loop0): This should not happen!! Data will be lost EXT4-fs (loop0): Total free blocks count 0 EXT4-fs (loop0): Free/Dirty block details EXT4-fs (loop0): free_blocks=0 EXT4-fs (loop0): dirty_blocks=0 EXT4-fs (loop0): Block reservation details EXT4-fs (loop0): i_reserved_data_blocks=0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0 EXT4-fs (loop0): Delayed block allocation failed for inode 19 at logical offset 0 with max blocks 16 with error 28 EXT4-fs (loop0): This should not happen!! Data will be lost EXT4-fs (loop0): Total free blocks count 0 EXT4-fs (loop0): Free/Dirty block details EXT4-fs (loop0): free_blocks=0 EXT4-fs (loop0): dirty_blocks=0 EXT4-fs (loop0): Block reservation details EXT4-fs (loop0): i_reserved_data_blocks=0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4358: comm kworker/u4:0: Invalid inode table block 0 in block_group 0