EXT4-fs (loop1): mounted filesystem without journal. Opts: dioread_nolock,data_err=abort,inlinecrypt,bsddf,bsddf,discard,data_err=ignore,grpquota,debug,user_xattr,bh,jqfmt=vfsv1,,errors=continue. Quota mode: writeback. overlayfs: invalid origin (0000) ================================================================== 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 ffff88811d8d9018 by task syz.1.1109/4747 CPU: 0 PID: 4747 Comm: syz.1.1109 Not tainted 5.15.189-syzkaller-android13-5.15.189_r00 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 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+0x1de/0x6280 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 filemap_fdatawrite_wbc+0x1f4/0x250 mm/filemap.c:409 __filemap_fdatawrite_range mm/filemap.c:442 [inline] filemap_write_and_wait_range+0xfa/0x380 mm/filemap.c:713 ext4_punch_hole+0x120/0xbd0 fs/ext4/inode.c:4026 ext4_fallocate+0x2b6/0x1de0 fs/ext4/extents.c:4765 vfs_fallocate+0x4b4/0x590 fs/open.c:309 madvise_remove mm/madvise.c:964 [inline] madvise_vma_behavior mm/madvise.c:988 [inline] madvise_walk_vmas mm/madvise.c:1218 [inline] do_madvise+0x12c8/0x2200 mm/madvise.c:1396 __do_sys_madvise mm/madvise.c:1409 [inline] __se_sys_madvise mm/madvise.c:1407 [inline] __x64_sys_madvise+0xa9/0xc0 mm/madvise.c:1407 x64_sys_call+0x89b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:29 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7efee31e7be9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007efee1c50038 EFLAGS: 00000246 ORIG_RAX: 000000000000001c RAX: ffffffffffffffda RBX: 00007efee340efa0 RCX: 00007efee31e7be9 RDX: 0000000000000009 RSI: 0000000000600003 RDI: 0000200000000000 RBP: 00007efee326ae19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007efee340f038 R14: 00007efee340efa0 R15: 00007ffcd8faacb8 The buggy address belongs to the page: page:ffffea0004763640 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11d8d9 flags: 0x4000000000000000(zone=1) raw: 4000000000000000 ffffea0004982dc8 ffffea0004869748 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 4696, ts 292532590858, free_ts 292632176392 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:5795 vm_area_alloc_pages mm/vmalloc.c:-1 [inline] __vmalloc_area_node mm/vmalloc.c:2974 [inline] __vmalloc_node_range+0x505/0xaf0 mm/vmalloc.c:3140 vmalloc_user+0x73/0x80 mm/vmalloc.c:3291 kcov_mmap+0x2b/0x130 kernel/kcov.c:474 call_mmap include/linux/fs.h:2217 [inline] mmap_file+0x60/0xb0 mm/util.c:1099 __mmap_region mm/mmap.c:1804 [inline] mmap_region+0xf94/0x1800 mm/mmap.c:2955 do_mmap+0x76c/0xe40 mm/mmap.c:1594 vm_mmap_pgoff+0x1ce/0x410 mm/util.c:555 ksys_mmap_pgoff+0x161/0x1d0 mm/mmap.c:1643 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:93 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline] __x64_sys_mmap+0xfa/0x110 arch/x86/kernel/sys_x86_64.c:86 x64_sys_call+0x83/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:10 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 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+0xa2/0x550 mm/page_alloc.c:3616 free_the_page mm/page_alloc.c:805 [inline] __free_pages+0x6c/0x100 mm/page_alloc.c:5871 __vunmap+0x84d/0x9e0 mm/vmalloc.c:2653 __vfree mm/vmalloc.c:2702 [inline] vfree+0x8b/0xc0 mm/vmalloc.c:2733 kcov_mmap+0x8f/0x130 kernel/kcov.c:498 call_mmap include/linux/fs.h:2217 [inline] mmap_file+0x60/0xb0 mm/util.c:1099 __mmap_region mm/mmap.c:1804 [inline] mmap_region+0xf94/0x1800 mm/mmap.c:2955 do_mmap+0x76c/0xe40 mm/mmap.c:1594 vm_mmap_pgoff+0x1ce/0x410 mm/util.c:555 ksys_mmap_pgoff+0x161/0x1d0 mm/mmap.c:1643 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:93 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline] __x64_sys_mmap+0xfa/0x110 arch/x86/kernel/sys_x86_64.c:86 x64_sys_call+0x83/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:10 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff88811d8d8f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811d8d8f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88811d8d9000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88811d8d9080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88811d8d9100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== ------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2433! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 4747 Comm: syz.1.1109 Tainted: G B 5.15.189-syzkaller-android13-5.15.189_r00 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:mpage_map_one_extent fs/ext4/inode.c:2433 [inline] RIP: 0010:mpage_map_and_submit_extent fs/ext4/inode.c:2474 [inline] RIP: 0010:ext4_writepages+0x2eed/0x2f90 fs/ext4/inode.c:2842 Code: 00 74 08 48 89 df e8 22 01 ce ff 48 8b 3b 48 8b 74 24 28 48 8b 54 24 30 44 89 e9 45 89 f0 e8 6a 9b 07 00 eb 51 e8 23 86 8f ff <0f> 0b e8 1c 86 8f ff eb 2f e8 15 86 8f ff eb 5f e8 0e 86 8f ff 31 RSP: 0018:ffffc90000f3f280 EFLAGS: 00010246 RAX: ffffffff81d929ad RBX: ffff888111efb5f0 RCX: 0000000000080000 RDX: ffffc90001c42000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90000f3f5f0 R08: dffffc0000000000 R09: ffffed10223df6b7 R10: ffffed10223df6b7 R11: 1ffff110223df6b6 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007efee1c506c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000011da1d000 CR4: 00000000003506a0 Call Trace: do_writepages+0x48a/0x6c0 mm/page-writeback.c:2388 filemap_fdatawrite_wbc+0x1f4/0x250 mm/filemap.c:409 __filemap_fdatawrite_range mm/filemap.c:442 [inline] filemap_write_and_wait_range+0xfa/0x380 mm/filemap.c:713 ext4_punch_hole+0x120/0xbd0 fs/ext4/inode.c:4026 ext4_fallocate+0x2b6/0x1de0 fs/ext4/extents.c:4765 vfs_fallocate+0x4b4/0x590 fs/open.c:309 madvise_remove mm/madvise.c:964 [inline] madvise_vma_behavior mm/madvise.c:988 [inline] madvise_walk_vmas mm/madvise.c:1218 [inline] do_madvise+0x12c8/0x2200 mm/madvise.c:1396 __do_sys_madvise mm/madvise.c:1409 [inline] __se_sys_madvise mm/madvise.c:1407 [inline] __x64_sys_madvise+0xa9/0xc0 mm/madvise.c:1407 x64_sys_call+0x89b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:29 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7efee31e7be9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007efee1c50038 EFLAGS: 00000246 ORIG_RAX: 000000000000001c RAX: ffffffffffffffda RBX: 00007efee340efa0 RCX: 00007efee31e7be9 RDX: 0000000000000009 RSI: 0000000000600003 RDI: 0000200000000000 RBP: 00007efee326ae19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007efee340f038 R14: 00007efee340efa0 R15: 00007ffcd8faacb8 Modules linked in: ---[ end trace ceb6a7a090817ad2 ]--- RIP: 0010:mpage_map_one_extent fs/ext4/inode.c:2433 [inline] RIP: 0010:mpage_map_and_submit_extent fs/ext4/inode.c:2474 [inline] RIP: 0010:ext4_writepages+0x2eed/0x2f90 fs/ext4/inode.c:2842 Code: 00 74 08 48 89 df e8 22 01 ce ff 48 8b 3b 48 8b 74 24 28 48 8b 54 24 30 44 89 e9 45 89 f0 e8 6a 9b 07 00 eb 51 e8 23 86 8f ff <0f> 0b e8 1c 86 8f ff eb 2f e8 15 86 8f ff eb 5f e8 0e 86 8f ff 31 RSP: 0018:ffffc90000f3f280 EFLAGS: 00010246 RAX: ffffffff81d929ad RBX: ffff888111efb5f0 RCX: 0000000000080000 RDX: ffffc90001c42000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90000f3f5f0 R08: dffffc0000000000 R09: ffffed10223df6b7 R10: ffffed10223df6b7 R11: 1ffff110223df6b6 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007efee1c506c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000011da1d000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400