================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_filldir fs/ntfs/dir.c:1021 [inline] BUG: KASAN: slab-out-of-bounds in ntfs_readdir+0xd6f/0x2970 fs/ntfs/dir.c:1200 Read of size 1 at addr ffff88801cfafae1 by task syz.7.2031/16191 CPU: 1 PID: 16191 Comm: syz.7.2031 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xac/0x220 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 ntfs_filldir fs/ntfs/dir.c:1021 [inline] ntfs_readdir+0xd6f/0x2970 fs/ntfs/dir.c:1200 wrap_directory_iterator+0x92/0xd0 fs/readdir.c:67 iterate_dir+0x1c2/0x580 fs/readdir.c:106 __do_sys_getdents fs/readdir.c:322 [inline] __se_sys_getdents+0xe9/0x260 fs/readdir.c:307 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f930638f749 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9307171038 EFLAGS: 00000246 ORIG_RAX: 000000000000004e RAX: ffffffffffffffda RBX: 00007f93065e5fa0 RCX: 00007f930638f749 RDX: 0000000020002078 RSI: 0000200000001fc0 RDI: 0000000000000004 RBP: 00007f9306413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f93065e6038 R14: 00007f93065e5fa0 R15: 00007fffd2baaf08 Allocated by task 16191: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:198 [inline] __do_kmalloc_node mm/slab_common.c:1007 [inline] __kmalloc+0xb4/0x240 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] ntfs_readdir+0x754/0x2970 fs/ntfs/dir.c:1162 wrap_directory_iterator+0x92/0xd0 fs/readdir.c:67 iterate_dir+0x1c2/0x580 fs/readdir.c:106 __do_sys_getdents fs/readdir.c:322 [inline] __se_sys_getdents+0xe9/0x260 fs/readdir.c:307 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88801cfafa80 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 41 bytes to the right of allocated 56-byte region [ffff88801cfafa80, ffff88801cfafab8) The buggy address belongs to the physical page: page:ffffea000073ebc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1cfaf ksm flags: 0xfff00000000800(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000800 ffff888017841640 ffffea00006be180 dead000000000007 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 158, tgid 158 (kworker/u4:6), ts 7477819446, free_ts 7476967928 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1cd/0x210 mm/page_alloc.c:1554 prep_new_page mm/page_alloc.c:1561 [inline] get_page_from_freelist+0x195c/0x19f0 mm/page_alloc.c:3191 __alloc_pages+0x1e3/0x460 mm/page_alloc.c:4457 alloc_slab_page+0x5d/0x170 mm/slub.c:1881 allocate_slab mm/slub.c:2028 [inline] new_slab+0x87/0x2e0 mm/slub.c:2081 ___slab_alloc+0xc6d/0x1300 mm/slub.c:3253 __slab_alloc mm/slub.c:3339 [inline] __slab_alloc_node mm/slub.c:3392 [inline] slab_alloc_node mm/slub.c:3485 [inline] __kmem_cache_alloc_node+0x1a2/0x260 mm/slub.c:3534 kmalloc_node_trace+0x26/0xe0 mm/slab_common.c:1111 kmalloc_node include/linux/slab.h:616 [inline] kzalloc_node include/linux/slab.h:732 [inline] __get_vm_area_node+0x125/0x370 mm/vmalloc.c:2613 __vmalloc_node_range+0x36e/0x1320 mm/vmalloc.c:3299 alloc_thread_stack_node kernel/fork.c:310 [inline] dup_task_struct+0x3d0/0x7c0 kernel/fork.c:1124 copy_process+0x549/0x3d70 kernel/fork.c:2331 kernel_clone+0x21b/0x840 kernel/fork.c:2914 user_mode_thread+0xde/0x130 kernel/fork.c:2992 call_usermodehelper_exec_work+0x5c/0x220 kernel/umh.c:172 process_one_work kernel/workqueue.c:2634 [inline] process_scheduled_works+0xa45/0x15b0 kernel/workqueue.c:2711 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1154 [inline] free_unref_page_prepare+0x7ce/0x8e0 mm/page_alloc.c:2336 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2429 mm_free_pgd kernel/fork.c:809 [inline] __mmdrop+0xb4/0x3d0 kernel/fork.c:925 free_bprm+0x171/0x3e0 fs/exec.c:1514 kernel_execve+0x3c2/0x9c0 fs/exec.c:2060 call_usermodehelper_exec_async+0x20b/0x350 kernel/umh.c:110 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 Memory state around the buggy address: ffff88801cfaf980: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff88801cfafa00: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc >ffff88801cfafa80: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ^ ffff88801cfafb00: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ffff88801cfafb80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================