EXT4-fs (loop0): mounted filesystem without journal. Opts: block_validity,,errors=continue. Quota mode: none. ================================================================== BUG: KASAN: slab-out-of-bounds in __ext4_check_dir_entry+0x7e3/0x990 fs/ext4/dir.c:85 Read of size 2 at addr ffff8881013e563c by task syz-executor742/304 CPU: 1 PID: 304 Comm: syz-executor742 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 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+0x10f/0x150 mm/kasan/report.c:444 __asan_report_load2_noabort+0x14/0x20 mm/kasan/report_generic.c:307 __ext4_check_dir_entry+0x7e3/0x990 fs/ext4/dir.c:85 ext4_read_inline_dir+0x851/0xd00 fs/ext4/inline.c:1639 ext4_readdir+0x3af/0x3aa0 fs/ext4/dir.c:161 iterate_dir+0x25c/0x600 fs/readdir.c:-1 __do_sys_getdents fs/readdir.c:286 [inline] __se_sys_getdents+0xf2/0x250 fs/readdir.c:271 __x64_sys_getdents+0x7b/0x90 fs/readdir.c:271 x64_sys_call+0xb4/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:79 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:0x7fa4ebd462c9 Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 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 d8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd15f22fe8 EFLAGS: 00000246 ORIG_RAX: 000000000000004e RAX: ffffffffffffffda RBX: 0000200000000000 RCX: 00007fa4ebd462c9 RDX: 0000000000000054 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 0000000000000001 R08: 00007ffd15f23118 R09: 00007ffd15f23118 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd15f23108 R13: 0000000000000002 R14: 00007fa4ebdcfc80 R15: 0000000000000002 Allocated by task 304: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:433 [inline] ____kasan_kmalloc mm/kasan/common.c:512 [inline] __kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:521 kasan_kmalloc include/linux/kasan.h:227 [inline] __kmalloc+0x13d/0x2c0 mm/slub.c:4436 kmalloc include/linux/slab.h:624 [inline] ext4_read_inline_dir+0x24d/0xd00 fs/ext4/inline.c:1552 ext4_readdir+0x3af/0x3aa0 fs/ext4/dir.c:161 iterate_dir+0x25c/0x600 fs/readdir.c:-1 __do_sys_getdents fs/readdir.c:286 [inline] __se_sys_getdents+0xf2/0x250 fs/readdir.c:271 __x64_sys_getdents+0x7b/0x90 fs/readdir.c:271 x64_sys_call+0xb4/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:79 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 The buggy address belongs to the object at ffff8881013e5600 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 60 bytes inside of 64-byte region [ffff8881013e5600, ffff8881013e5640) The buggy address belongs to the page: page:ffffea000404f940 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1013e5 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 ffffea000406e440 0000001000000010 ffff888100042780 raw: 0000000000000000 0000000080200020 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 1, ts 2361577215, free_ts 2360826745 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2607 prep_new_page+0x1c/0x110 mm/page_alloc.c:2613 get_page_from_freelist+0x2c3a/0x2cd0 mm/page_alloc.c:4487 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5824 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1937 [inline] new_slab+0xa0/0x4d0 mm/slub.c:2000 ___slab_alloc+0x3ac/0x840 mm/slub.c:3033 __slab_alloc+0x49/0x90 mm/slub.c:3120 slab_alloc_node mm/slub.c:3211 [inline] slab_alloc mm/slub.c:3255 [inline] kmem_cache_alloc_trace+0x146/0x270 mm/slub.c:3272 kmem_cache_alloc_node_trace include/linux/slab.h:508 [inline] kmalloc_node include/linux/slab.h:637 [inline] kzalloc_node include/linux/slab.h:761 [inline] __get_vm_area_node+0x11d/0x350 mm/vmalloc.c:2440 __vmalloc_node_range+0xe8/0xad0 mm/vmalloc.c:3107 __vmalloc_node mm/vmalloc.c:3212 [inline] vzalloc+0x78/0x90 mm/vmalloc.c:3282 allocate_partitions block/partitions/core.c:107 [inline] check_partition block/partitions/core.c:129 [inline] blk_add_partitions block/partitions/core.c:611 [inline] bdev_disk_changed+0x5d8/0x1460 block/partitions/core.c:697 blkdev_get_whole+0x36f/0x410 block/bdev.c:686 blkdev_get_by_dev+0x286/0x990 block/bdev.c:831 disk_scan_partitions+0x191/0x250 block/genhd.c:383 device_add_disk+0x968/0xc40 block/genhd.c:513 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1474 [inline] free_pcp_prepare mm/page_alloc.c:1546 [inline] free_unref_page_prepare+0x5fa/0x600 mm/page_alloc.c:3536 free_unref_page+0xae/0x540 mm/page_alloc.c:3618 free_the_page mm/page_alloc.c:805 [inline] __free_pages+0x6c/0x100 mm/page_alloc.c:5900 __vunmap+0x801/0x980 mm/vmalloc.c:2660 __vfree mm/vmalloc.c:2709 [inline] vfree+0x8b/0xc0 mm/vmalloc.c:2740 free_partitions block/partitions/core.c:120 [inline] check_partition block/partitions/core.c:179 [inline] blk_add_partitions block/partitions/core.c:611 [inline] bdev_disk_changed+0x9b9/0x1460 block/partitions/core.c:697 blkdev_get_whole+0x36f/0x410 block/bdev.c:686 blkdev_get_by_dev+0x286/0x990 block/bdev.c:831 disk_scan_partitions+0x191/0x250 block/genhd.c:383 device_add_disk+0x968/0xc40 block/genhd.c:513 add_disk include/linux/genhd.h:209 [inline] brd_alloc+0x528/0x760 drivers/block/brd.c:444 brd_init+0x12b/0x1b0 drivers/block/brd.c:524 do_one_initcall+0x1fc/0x5a0 init/main.c:1318 do_initcall_level+0x174/0x2e0 init/main.c:1391 do_initcalls+0x50/0xa0 init/main.c:1407 do_basic_setup+0x81/0x90 init/main.c:1426 Memory state around the buggy address: ffff8881013e5500: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ffff8881013e5580: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff8881013e5600: 00 00 00 00 00 00 00 04 fc fc fc fc fc fc fc fc ^ ffff8881013e5680: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ffff8881013e5700: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==============