veth1_macvtap: entered promiscuous mode ================================================================== BUG: KASAN: use-after-free in ext4_read_inline_data+0x1f8/0x2e0 fs/ext4/inline.c:209 Read of size 68 at addr ffff88812603dd05 by task syz-executor/483 CPU: 1 UID: 0 PID: 483 Comm: syz-executor Not tainted 6.13.0-rc1-syzkaller-g40384c840ea1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x184/0x200 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x163/0x550 mm/kasan/report.c:489 kasan_report+0x15f/0x190 mm/kasan/report.c:602 kasan_check_range+0x238/0x2b0 mm/kasan/generic.c:189 __asan_memcpy+0x2d/0x70 mm/kasan/shadow.c:105 ext4_read_inline_data+0x1f8/0x2e0 fs/ext4/inline.c:209 ext4_read_inline_dir+0x2a2/0xb30 fs/ext4/inline.c:1485 ext4_readdir+0x471/0x3a40 fs/ext4/dir.c:159 iterate_dir+0x1e9/0x5b0 fs/readdir.c:108 __do_sys_getdents64 fs/readdir.c:403 [inline] __se_sys_getdents64+0x1ce/0x490 fs/readdir.c:389 __x64_sys_getdents64+0x7b/0x90 fs/readdir.c:389 x64_sys_call+0x2d4e/0x2df0 arch/x86/include/generated/asm/syscalls_64.h:218 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x50/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7ff6061a9333 Code: c1 66 0f 1f 44 00 00 48 83 c4 08 48 89 ef 5b 5d e9 02 45 f8 ff 66 90 b8 ff ff ff 7f 48 39 c2 48 0f 47 d0 b8 d9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 c7 c2 a8 ff ff ff f7 d8 RSP: 002b:00007fff02e214b8 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00005555827ec520 RCX: 00007ff6061a9333 RDX: 0000000000008000 RSI: 00005555827ec520 RDI: 0000000000000006 RBP: 00005555827ec4f4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001000 R11: 0000000000000293 R12: ffffffffffffffa8 R13: 0000000000000016 R14: 00005555827ec4f0 R15: 00007fff02e24850 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x7f1fe51f1 pfn:0x12603d flags: 0x4000000000000000(zone=1) raw: 4000000000000000 ffffea0004980f88 ffffea0004980f08 0000000000000000 raw: 00000007f1fe51f1 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 0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_ZERO), pid 407, tgid 407 (syz-executor), ts 51566782543, free_ts 52745658485 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x224/0x250 mm/page_alloc.c:1556 prep_new_page mm/page_alloc.c:1564 [inline] get_page_from_freelist+0x47ee/0x4880 mm/page_alloc.c:3474 __alloc_pages_noprof+0x3c3/0x7d0 mm/page_alloc.c:4751 __folio_alloc_noprof+0x10/0x70 mm/page_alloc.c:4783 alloc_anon_folio mm/memory.c:4752 [inline] do_anonymous_page mm/memory.c:4809 [inline] do_pte_missing+0x1f26/0x4330 mm/memory.c:3977 handle_pte_fault mm/memory.c:5801 [inline] __handle_mm_fault mm/memory.c:5944 [inline] handle_mm_fault+0x14f6/0x2010 mm/memory.c:6112 do_user_addr_fault arch/x86/mm/fault.c:1338 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x3f6/0x700 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:623 page last free pid 407 tgid 407 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_folios+0x8f9/0x1120 mm/page_alloc.c:2704 folios_put_refs+0x6c7/0x7e0 mm/swap.c:962 free_pages_and_swap_cache+0x2e2/0x620 mm/swap_state.c:332 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:366 [inline] tlb_flush_mmu+0x431/0x6f0 mm/mmu_gather.c:373 tlb_finish_mmu+0xd7/0x1f0 mm/mmu_gather.c:465 vms_clear_ptes+0x4b2/0x5c0 mm/vma.c:1143 vms_complete_munmap_vmas+0x1f7/0x6c0 mm/vma.c:1185 do_vmi_align_munmap+0x61e/0x7c0 mm/vma.c:1444 do_vmi_munmap+0x23c/0x2c0 mm/vma.c:1492 __vm_munmap+0x242/0x420 mm/mmap.c:1367 __do_sys_munmap mm/mmap.c:1384 [inline] __se_sys_munmap mm/mmap.c:1381 [inline] __x64_sys_munmap+0x60/0x70 mm/mmap.c:1381 x64_sys_call+0xe33/0x2df0 arch/x86/include/generated/asm/syscalls_64.h:12 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x50/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e Memory state around the buggy address: ffff88812603dc00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88812603dc80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88812603dd00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88812603dd80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88812603de00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== EXT4-fs error (device loop0): ext4_read_inline_dir:1566: inode #12: block 5: comm syz-executor: path /0/file0/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=1633771873, rec_len=24929, size=148 fake=0 EXT4-fs error (device loop0): ext4_read_inline_dir:1566: inode #12: block 5: comm syz-executor: path /0/file0/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=1633771873, rec_len=24929, size=148 fake=0 EXT4-fs error (device loop0): empty_inline_dir:1850: inode #12: block 5: comm syz-executor: bad entry in directory: rec_len % 4 != 0 - offset=4, inode=1633771873, rec_len=24929, size=60 fake=0 EXT4-fs warning (device loop0): empty_inline_dir:1857: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs error (device loop0): ext4_read_inline_dir:1566: inode #12: block 5: comm syz-executor: path /0/file0/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=1633771873, rec_len=24929, size=148 fake=0 EXT4-fs error (device loop0): ext4_read_inline_dir:1566: inode #12: block 5: comm syz-executor: path /0/file0/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=1633771873, rec_len=24929, size=148 fake=0 EXT4-fs error (device loop0): empty_inline_dir:1850: inode #12: block 5: comm syz-executor: bad entry in directory: rec_len % 4 != 0 - offset=4, inode=1633771873, rec_len=24929, size=60 fake=0 EXT4-fs warning (device loop0): empty_inline_dir:1857: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs error (device loop0): ext4_read_inline_dir:1566: inode #12: block 5: comm syz-executor: path /0/file0/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=1633771873, rec_len=24929, size=148 fake=0 EXT4-fs error (device loop0): ext4_read_inline_dir:1566: inode #12: block 5: comm syz-executor: path /0/file0/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=1633771873, rec_len=24929, size=148 fake=0 EXT4-fs error (device loop0): empty_inline_dir:1850: inode #12: block 5: comm syz-executor: bad entry in directory: rec_len % 4 != 0 - offset=4, inode=1633771873, rec_len=24929, size=60 fake=0 EXT4-fs warning (device loop0): empty_inline_dir:1857: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1857: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1857: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1857: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1857: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1857: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1857: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1857: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs (loop0): unmounting filesystem 00000000-0000-0000-0000-000000000000.