EXT4-fs error (device loop9): ext4_orphan_get:1431: comm syz.9.438: bad orphan inode 131083 EXT4-fs (loop9): mounted filesystem without journal. Opts: test_dummy_encryption,nodioread_nolock,norecovery,,errors=continue ================================================================== BUG: KASAN: slab-out-of-bounds in is_fake_dir_entry fs/ext4/dir.c:65 [inline] BUG: KASAN: slab-out-of-bounds in __ext4_check_dir_entry+0x8c1/0x990 fs/ext4/dir.c:88 Read of size 1 at addr ffff888117c2413c by task syz.9.438/2081 CPU: 1 PID: 2081 Comm: syz.9.438 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_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:306 is_fake_dir_entry fs/ext4/dir.c:65 [inline] __ext4_check_dir_entry+0x8c1/0x990 fs/ext4/dir.c:88 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_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64+0xf2/0x250 fs/readdir.c:354 __x64_sys_getdents64+0x7b/0x90 fs/readdir.c:354 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f70e3aff159 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f70e2558028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007f70e3d86fa0 RCX: 00007f70e3aff159 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007f70e3b9606b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f70e3d87038 R14: 00007f70e3d86fa0 R15: 00007ffd8c9e2598 Allocated by task 2081: 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_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64+0xf2/0x250 fs/readdir.c:354 __x64_sys_getdents64+0x7b/0x90 fs/readdir.c:354 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 ffff888117c24100 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 60 bytes inside of 64-byte region [ffff888117c24100, ffff888117c24140) The buggy address belongs to the page: page:ffffea00045f0900 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x117c24 flags: 0x4000000000000200(slab) raw: 4000000000000200 ffffea00045ee680 0000001000000010 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 109, ts 6264432631, 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_node include/linux/slab.h:421 [inline] kmalloc_node include/linux/slab.h:578 [inline] kvmalloc_node+0x88/0x130 mm/util.c:612 kvmalloc include/linux/mm.h:833 [inline] simple_xattr_alloc+0x43/0xa0 fs/xattr.c:917 shmem_initxattrs+0x8d/0x1f0 mm/shmem.c:3211 security_inode_init_security+0x249/0x380 security/security.c:1033 shmem_mknod+0xbb/0x1c0 mm/shmem.c:2899 shmem_create+0x2b/0x40 mm/shmem.c:2954 lookup_open fs/namei.c:3297 [inline] open_last_lookups fs/namei.c:3367 [inline] path_openat+0x15ff/0x3040 fs/namei.c:3556 do_filp_open+0x1df/0x400 fs/namei.c:3586 do_sys_openat2+0x19f/0x750 fs/open.c:1219 page_owner free stack trace missing Memory state around the buggy address: ffff888117c24000: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888117c24080: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff888117c24100: 00 00 00 00 00 00 00 04 fc fc fc fc fc fc fc fc ^ ffff888117c24180: 00 00 00 00 00 00 00 02 fc fc fc fc fc fc fc fc ffff888117c24200: 00 00 00 00 00 00 00 02 fc fc fc fc fc fc fc fc ================================================================== EXT4-fs error (device loop9): ext4_read_inline_dir:1622: inode #12: block 7: comm syz.9.438: path /24/bus/file0: bad entry in directory: rec_len is smaller than minimal - offset=73, inode=0, rec_len=0, size=80 fake=0