================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_filldir fs/ntfs/dir.c:1021 [inline] BUG: KASAN: slab-out-of-bounds in ntfs_readdir+0xdda/0x3550 fs/ntfs/dir.c:1200 Read of size 1 at addr ffff888023c284e1 by task syz-executor/4297 CPU: 1 PID: 4297 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 ntfs_filldir fs/ntfs/dir.c:1021 [inline] ntfs_readdir+0xdda/0x3550 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:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7efd55581553 Code: c1 66 0f 1f 44 00 00 48 83 c4 08 48 89 ef 5b 5d e9 52 3e 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:00007ffc910fc388 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 0000555561a15600 RCX: 00007efd55581553 RDX: 0000000000008000 RSI: 0000555561a15600 RDI: 0000000000000005 RBP: 0000555561a155d4 R08: 0000000000028a41 R09: 0000000000000000 R10: 00007efd55757cc0 R11: 0000000000000293 R12: ffffffffffffffa8 R13: 0000000000000010 R14: 0000555561a155d0 R15: 00007ffc910fe640 Allocated by task 4297: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc mm/kasan/common.c:513 [inline] __kasan_kmalloc+0xb5/0xf0 mm/kasan/common.c:522 kmalloc include/linux/slab.h:609 [inline] ntfs_readdir+0x798/0x3550 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: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 ffff888023c28480 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 33 bytes to the right of 64-byte region [ffff888023c28480, ffff888023c284c0) The buggy address belongs to the page: page:ffffea00008f0a00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x23c28 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 0000001b00000001 ffff888016841640 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 9795279320, free_ts 0 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5487 alloc_page_interleave+0x24/0x1e0 mm/mempolicy.c:2031 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1975 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] slab_alloc mm/slub.c:3228 [inline] __kmalloc+0x1cd/0x330 mm/slub.c:4403 kmalloc include/linux/slab.h:609 [inline] kzalloc include/linux/slab.h:735 [inline] kobject_get_path+0xae/0x210 lib/kobject.c:184 kobject_uevent_env+0x290/0x890 lib/kobject_uevent.c:544 device_add+0x91c/0xfb0 drivers/base/core.c:3393 usb_new_device+0xd53/0x1640 drivers/usb/core/hub.c:2632 register_root_hub+0x278/0x580 drivers/usb/core/hcd.c:1021 usb_add_hcd+0xa88/0xef0 drivers/usb/core/hcd.c:3007 dummy_hcd_probe+0x130/0x260 drivers/usb/gadget/udc/dummy_hcd.c:2675 platform_probe+0x137/0x1c0 drivers/base/platform.c:1391 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x284/0xc80 drivers/base/dd.c:595 __driver_probe_device+0x18c/0x330 drivers/base/dd.c:755 page_owner free stack trace missing Memory state around the buggy address: ffff888023c28380: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888023c28400: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc >ffff888023c28480: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ^ ffff888023c28500: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888023c28580: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ==================================================================