================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_filldir fs/ntfs/dir.c:1021 [inline] BUG: KASAN: slab-out-of-bounds in ntfs_readdir+0xd55/0x2950 fs/ntfs/dir.c:1200 Read of size 1 at addr ffff8880183d43e1 by task syz-executor/4269 CPU: 1 PID: 4269 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 ntfs_filldir fs/ntfs/dir.c:1021 [inline] ntfs_readdir+0xd55/0x2950 fs/ntfs/dir.c:1200 iterate_dir+0x218/0x560 fs/readdir.c:-1 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64+0xe5/0x260 fs/readdir.c:354 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:0x7f4e38dc20b3 Code: c1 66 0f 1f 44 00 00 48 83 c4 08 48 89 ef 5b 5d e9 62 3d 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:00007ffef1b75b08 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 000055558ee06600 RCX: 00007f4e38dc20b3 RDX: 0000000000008000 RSI: 000055558ee06600 RDI: 0000000000000005 RBP: 000055558ee065d4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001000 R11: 0000000000000293 R12: ffffffffffffffa8 R13: 0000000000000010 R14: 000055558ee065d0 R15: 00007ffef1b77dc0 Allocated by task 4269: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc+0xb0/0x240 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] ntfs_readdir+0x747/0x2950 fs/ntfs/dir.c:1162 iterate_dir+0x218/0x560 fs/readdir.c:-1 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64+0xe5/0x260 fs/readdir.c:354 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 The buggy address belongs to the object at ffff8880183d4380 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 33 bytes to the right of 64-byte region [ffff8880183d4380, ffff8880183d43c0) The buggy address belongs to the physical page: page:ffffea000060f500 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x183d4 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea0000a58f40 dead000000000004 ffff888017441640 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 0x12c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY), pid 1, tgid 1 (init), ts 21970826741, free_ts 21559682545 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5614 alloc_slab_page+0x5d/0x160 mm/slub.c:1799 allocate_slab mm/slub.c:1944 [inline] new_slab+0x87/0x2c0 mm/slub.c:1997 ___slab_alloc+0xbc6/0x1230 mm/slub.c:3154 __slab_alloc mm/slub.c:3240 [inline] slab_alloc_node mm/slub.c:3325 [inline] __kmem_cache_alloc_node+0x1a0/0x260 mm/slub.c:3398 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc+0xa0/0x240 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] kzalloc include/linux/slab.h:699 [inline] tomoyo_encode2 security/tomoyo/realpath.c:45 [inline] tomoyo_encode+0x27e/0x540 security/tomoyo/realpath.c:80 tomoyo_realpath_from_path+0x58e/0x5d0 security/tomoyo/realpath.c:283 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_check_open_permission+0x1aa/0x380 security/tomoyo/file.c:771 security_file_open+0x5e/0xa0 security/security.c:1681 do_dentry_open+0x305/0x10d0 fs/open.c:869 do_open fs/namei.c:3634 [inline] path_openat+0x25c6/0x2e70 fs/namei.c:3791 do_filp_open+0x1c1/0x3c0 fs/namei.c:3818 do_sys_openat2+0x142/0x490 fs/open.c:1320 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479 kasan_depopulate_vmalloc_pte+0x67/0x80 mm/kasan/shadow.c:375 apply_to_pte_range mm/memory.c:2662 [inline] apply_to_pmd_range mm/memory.c:2706 [inline] apply_to_pud_range mm/memory.c:2742 [inline] apply_to_p4d_range mm/memory.c:2778 [inline] __apply_to_page_range+0x989/0xd10 mm/memory.c:2814 kasan_release_vmalloc+0x93/0xb0 mm/kasan/shadow.c:492 __purge_vmap_area_lazy+0xdb0/0x1900 mm/vmalloc.c:1782 _vm_unmap_aliases+0x456/0x4c0 mm/vmalloc.c:2185 change_page_attr_set_clr+0x311/0xa10 arch/x86/mm/pat/set_memory.c:1821 change_page_attr_set arch/x86/mm/pat/set_memory.c:1871 [inline] set_memory_nx+0xd3/0x110 arch/x86/mm/pat/set_memory.c:2064 free_init_pages arch/x86/mm/init.c:943 [inline] free_kernel_image_pages arch/x86/mm/init.c:962 [inline] free_initmem+0x8e/0xd0 arch/x86/mm/init.c:989 kernel_init+0x2d/0x1b0 init/main.c:1535 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Memory state around the buggy address: ffff8880183d4280: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc ffff8880183d4300: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc >ffff8880183d4380: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ^ ffff8880183d4400: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff8880183d4480: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ==================================================================