================================================================== BUG: KASAN: slab-out-of-bounds in ext4_read_inline_data fs/ext4/inline.c:210 [inline] BUG: KASAN: slab-out-of-bounds in ext4_inlinedir_to_tree+0x4af/0xf50 fs/ext4/inline.c:1402 Read of size 68 at addr ffff88812563aec9 by task syz-executor.0/336 CPU: 0 PID: 336 Comm: syz-executor.0 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0xee/0x150 lib/dump_stack.c:106 print_address_description+0x71/0x200 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:420 kasan_report+0x122/0x150 mm/kasan/report.c:524 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x280/0x290 mm/kasan/generic.c:189 memcpy+0x2d/0x70 mm/kasan/shadow.c:65 ext4_read_inline_data fs/ext4/inline.c:210 [inline] ext4_inlinedir_to_tree+0x4af/0xf50 fs/ext4/inline.c:1402 ext4_htree_fill_tree+0x4c5/0x10d0 fs/ext4/namei.c:1211 ext4_dx_readdir fs/ext4/dir.c:608 [inline] ext4_readdir+0x2d8a/0x3c10 fs/ext4/dir.c:145 iterate_dir+0x271/0x610 fs/readdir.c:-1 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64+0xe5/0x240 fs/readdir.c:354 __x64_sys_getdents64+0x7b/0x90 fs/readdir.c:354 x64_sys_call+0x15c/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:218 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f93e48a9363 Code: c1 66 0f 1f 44 00 00 48 83 c4 08 48 89 ef 5b 5d e9 62 8b fa 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 b0 ff ff ff f7 d8 RSP: 002b:00007ffd2707df78 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 000055555e0c7890 RCX: 00007f93e48a9363 RDX: 0000000000008000 RSI: 000055555e0c7890 RDI: 0000000000000006 RBP: 000055555e0c7864 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001000 R11: 0000000000000293 R12: ffffffffffffffb0 R13: 0000000000000016 R14: 000055555e0c7860 R15: 0000000000000008 The buggy address belongs to the object at ffff88812563ae00 which belongs to the cache maple_node of size 256 The buggy address is located 201 bytes inside of 256-byte region [ffff88812563ae00, ffff88812563af00) The buggy address belongs to the physical page: page:ffffea0004958e80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12563a head:ffffea0004958e80 order:1 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 0000000000000000 dead000000000122 ffff88810004d080 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0x152800(GFP_NOWAIT|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 348, tgid 348 (udevd), ts 45452713092, free_ts 38468515537 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2643 prep_new_page+0x1c/0x110 mm/page_alloc.c:2650 get_page_from_freelist+0x2c7b/0x2cf0 mm/page_alloc.c:4554 __alloc_pages+0x1c3/0x450 mm/page_alloc.c:5868 alloc_slab_page+0x6e/0xf0 include/linux/gfp.h:-1 allocate_slab mm/slub.c:1967 [inline] new_slab+0x98/0x3d0 mm/slub.c:2020 ___slab_alloc+0x6bd/0xb20 mm/slub.c:3177 __slab_alloc+0x5e/0xa0 mm/slub.c:3263 slab_alloc_node mm/slub.c:3348 [inline] slab_alloc mm/slub.c:3392 [inline] __kmem_cache_alloc_lru mm/slub.c:3399 [inline] kmem_cache_alloc+0x1b0/0x330 mm/slub.c:3408 mt_alloc_one lib/maple_tree.c:155 [inline] mas_alloc_nodes+0x2d8/0x850 lib/maple_tree.c:1282 mas_node_count_gfp lib/maple_tree.c:1364 [inline] mas_node_count lib/maple_tree.c:1378 [inline] mas_wr_node_store lib/maple_tree.c:4032 [inline] mas_wr_modify+0x22df/0x5d40 lib/maple_tree.c:4302 mas_wr_store_entry+0x3e5/0x630 lib/maple_tree.c:4343 mas_store_gfp+0x1f4/0x3c0 lib/maple_tree.c:5574 do_mas_align_munmap+0x840/0x1230 mm/mmap.c:2668 do_mas_munmap+0x241/0x2b0 mm/mmap.c:2749 __vm_munmap+0x19f/0x2f0 mm/mmap.c:3048 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1551 [inline] free_pcp_prepare mm/page_alloc.c:1625 [inline] free_unref_page_prepare+0x742/0x750 mm/page_alloc.c:3589 free_unref_page+0x8f/0x530 mm/page_alloc.c:3687 __folio_put_small mm/swap.c:97 [inline] __folio_put+0xac/0xe0 mm/swap.c:120 folio_put include/linux/mm.h:1442 [inline] put_page include/linux/mm.h:1494 [inline] anon_pipe_buf_release+0x183/0x200 fs/pipe.c:138 pipe_buf_release include/linux/pipe_fs_i.h:199 [inline] pipe_read+0x55d/0x1000 fs/pipe.c:324 call_read_iter include/linux/fs.h:2276 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x41e/0x8c0 fs/read_write.c:470 ksys_read+0x140/0x240 fs/read_write.c:613 __do_sys_read fs/read_write.c:623 [inline] __se_sys_read fs/read_write.c:621 [inline] __x64_sys_read+0x7b/0x90 fs/read_write.c:621 x64_sys_call+0x2f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:1 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff88812563ad80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88812563ae00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88812563ae80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88812563af00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88812563af80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== EXT4-fs error (device loop0): ext4_inlinedir_to_tree:1440: inode #12: block 7: comm syz-executor.0: path /root/syzkaller-testdir1369531792/syzkaller.BmUjm9/0/file0/file0: bad entry in directory: directory entry overrun - offset=34816, inode=2538880996, rec_len=34812, size=128 fake=0 EXT4-fs error (device loop0): empty_inline_dir:1885: inode #12: block 7: comm syz-executor.0: bad entry in directory: directory entry overrun - offset=4, inode=2538880996, rec_len=34812, size=60 fake=0 EXT4-fs warning (device loop0): empty_inline_dir:1892: bad inline directory (dir #12) - inode 2538880996, rec_len 34812, name_len 234inline size 60 EXT4-fs error (device loop0): ext4_inlinedir_to_tree:1440: inode #12: block 7: comm syz-executor.0: path /root/syzkaller-testdir1369531792/syzkaller.BmUjm9/0/file0/file0: bad entry in directory: directory entry overrun - offset=34816, inode=2538880996, rec_len=34812, size=128 fake=0 EXT4-fs error (device loop0): empty_inline_dir:1885: inode #12: block 7: comm syz-executor.0: bad entry in directory: directory entry overrun - offset=4, inode=2538880996, rec_len=34812, size=60 fake=0 EXT4-fs warning (device loop0): empty_inline_dir:1892: bad inline directory (dir #12) - inode 2538880996, rec_len 34812, name_len 234inline size 60 EXT4-fs error (device loop0): ext4_inlinedir_to_tree:1440: inode #12: block 7: comm syz-executor.0: path /root/syzkaller-testdir1369531792/syzkaller.BmUjm9/0/file0/file0: bad entry in directory: directory entry overrun - offset=34816, inode=2538880996, rec_len=34812, size=128 fake=0 EXT4-fs error (device loop0): empty_inline_dir:1885: inode #12: block 7: comm syz-executor.0: bad entry in directory: directory entry overrun - offset=4, inode=2538880996, rec_len=34812, size=60 fake=0 EXT4-fs warning (device loop0): empty_inline_dir:1892: bad inline directory (dir #12) - inode 2538880996, rec_len 34812, name_len 234inline size 60 EXT4-fs error (device loop0): ext4_inlinedir_to_tree:1440: inode #12: block 7: comm syz-executor.0: path /root/syzkaller-testdir1369531792/syzkaller.BmUjm9/0/file0/file0: bad entry in directory: directory entry overrun - offset=34816, inode=2538880996, rec_len=34812, size=128 fake=0 EXT4-fs error (device loop0): empty_inline_dir:1885: inode #12: block 7: comm syz-executor.0: bad entry in directory: directory entry overrun - offset=4, inode=2538880996, rec_len=34812, size=60 fake=0 EXT4-fs warning (device loop0): empty_inline_dir:1892: bad inline directory (dir #12) - inode 2538880996, rec_len 34812, name_len 234inline size 60 EXT4-fs error (device loop0): ext4_inlinedir_to_tree:1440: inode #12: block 7: comm syz-executor.0: path /root/syzkaller-testdir1369531792/syzkaller.BmUjm9/0/file0/file0: bad entry in directory: directory entry overrun - offset=34816, inode=2538880996, rec_len=34812, size=128 fake=0 EXT4-fs error (device loop0): empty_inline_dir:1885: inode #12: block 7: comm syz-executor.0: bad entry in directory: directory entry overrun - offset=4, inode=2538880996, rec_len=34812, size=60 fake=0 EXT4-fs warning (device loop0): empty_inline_dir:1892: bad inline directory (dir #12) - inode 2538880996, rec_len 34812, name_len 234inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1892: bad inline directory (dir #12) - inode 2538880996, rec_len 34812, name_len 234inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1892: bad inline directory (dir #12) - inode 2538880996, rec_len 34812, name_len 234inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1892: bad inline directory (dir #12) - inode 2538880996, rec_len 34812, name_len 234inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1892: bad inline directory (dir #12) - inode 2538880996, rec_len 34812, name_len 234inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1892: bad inline directory (dir #12) - inode 2538880996, rec_len 34812, name_len 234inline size 60 EXT4-fs (loop0): unmounting filesystem.