EXT4-fs (loop0): mounted filesystem without journal. Opts: block_validity,,errors=continue ================================================================== BUG: KASAN: slab-out-of-bounds in __ext4_check_dir_entry+0x7e3/0x990 fs/ext4/dir.c:85 Read of size 2 at addr ffff88810c50933c by task syz-executor185/297 CPU: 0 PID: 297 Comm: syz-executor185 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0x100/0x140 mm/kasan/report.c:452 __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:1621 ext4_readdir+0x3a0/0x3a80 fs/ext4/dir.c:161 iterate_dir+0x25c/0x560 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 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f0d0937b2c9 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:00007ffc7bf38378 EFLAGS: 00000246 ORIG_RAX: 000000000000004e RAX: ffffffffffffffda RBX: 0000200000000000 RCX: 00007f0d0937b2c9 RDX: 0000000000000054 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 0000000000000001 R08: 00007ffc7bf384a8 R09: 00007ffc7bf384a8 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc7bf38498 R13: 0000000000000002 R14: 00007f0d09404c80 R15: 0000000000000002 Allocated by task 297: 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:430 [inline] ____kasan_kmalloc mm/kasan/common.c:509 [inline] __kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:518 kasan_kmalloc include/linux/kasan.h:254 [inline] __kmalloc+0x19f/0x330 mm/slub.c:4038 kmalloc include/linux/slab.h:560 [inline] ext4_read_inline_dir+0x24d/0xd00 fs/ext4/inline.c:1534 ext4_readdir+0x3a0/0x3a80 fs/ext4/dir.c:161 iterate_dir+0x25c/0x560 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 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff88810c509300 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 60 bytes inside of 64-byte region [ffff88810c509300, ffff88810c509340) The buggy address belongs to the page: page:ffffea0004314240 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10c509 flags: 0x4000000000000200(slab) raw: 4000000000000200 ffffea0004307b00 0000001a0000001a ffff888100043800 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 15, ts 3778927220, free_ts 0 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x176/0x190 mm/page_alloc.c:2462 get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x29a/0x640 mm/page_alloc.c:5384 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1813 [inline] new_slab+0x84/0x3f0 mm/slub.c:1874 new_slab_objects mm/slub.c:2632 [inline] ___slab_alloc+0x2f8/0x4c0 mm/slub.c:2796 __slab_alloc+0x63/0xa0 mm/slub.c:2836 slab_alloc_node mm/slub.c:2918 [inline] slab_alloc mm/slub.c:2960 [inline] __kmalloc+0x1f9/0x330 mm/slub.c:4034 kmalloc include/linux/slab.h:560 [inline] kzalloc include/linux/slab.h:667 [inline] kobject_get_path+0xbf/0x1f0 lib/kobject.c:184 kobject_uevent_env+0x28a/0x700 lib/kobject_uevent.c:544 kobject_uevent+0x1d/0x30 lib/kobject_uevent.c:657 device_add+0x7d2/0xc00 drivers/base/core.c:3254 input_register_device+0x9c9/0xfa0 drivers/input/input.c:2306 atkbd_connect+0x735/0x990 drivers/input/keyboard/atkbd.c:1337 serio_connect_driver drivers/input/serio/serio.c:47 [inline] serio_driver_probe+0x7a/0xa0 drivers/input/serio/serio.c:778 really_probe+0x373/0xa60 drivers/base/dd.c:558 driver_probe_device+0xe1/0x190 drivers/base/dd.c:752 page_owner free stack trace missing Memory state around the buggy address: ffff88810c509200: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88810c509280: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff88810c509300: 00 00 00 00 00 00 00 04 fc fc fc fc fc fc fc fc ^ ffff88810c509380: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88810c509400: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ================================================================== EXT4-fs error (device loop0): ext4_read_inline_dir:1622: inode #12: block 7: comm syz-executor185: path /root/file2/file0: bad entry in directory: