================================================================== 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 ffff8880233cede1 by task syz.0.50/4527 CPU: 0 PID: 4527 Comm: syz.0.50 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/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_getdents fs/readdir.c:286 [inline] __se_sys_getdents+0xe5/0x250 fs/readdir.c:271 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:0x7f11e2297749 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:00007f11e04fe038 EFLAGS: 00000246 ORIG_RAX: 000000000000004e RAX: ffffffffffffffda RBX: 00007f11e24edfa0 RCX: 00007f11e2297749 RDX: 000000000000003d RSI: 0000200000000040 RDI: 0000000000000005 RBP: 00007f11e231bf91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f11e24ee038 R14: 00007f11e24edfa0 R15: 00007ffefdd310f8 Allocated by task 4527: 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:612 [inline] ntfs_readdir+0x798/0x3550 fs/ntfs/dir.c:1162 iterate_dir+0x218/0x560 fs/readdir.c:-1 __do_sys_getdents fs/readdir.c:286 [inline] __se_sys_getdents+0xe5/0x250 fs/readdir.c:271 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 ffff8880233ced80 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 33 bytes to the right of 64-byte region [ffff8880233ced80, ffff8880233cedc0) The buggy address belongs to the page: page:ffffea00008cf380 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x233ce flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 dead000000000100 dead000000000122 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 144, ts 9133009337, free_ts 9131981373 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_slab_page mm/slub.c:1780 [inline] allocate_slab mm/slub.c:1917 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1980 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3013 __slab_alloc mm/slub.c:3100 [inline] slab_alloc_node mm/slub.c:3191 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc_trace+0x1a5/0x2a0 mm/slub.c:3250 kmalloc include/linux/slab.h:607 [inline] kzalloc include/linux/slab.h:738 [inline] percpu_ref_init+0xc0/0x350 lib/percpu-refcount.c:76 blkg_alloc+0xca/0x660 block/blk-cgroup.c:162 blkcg_init_queue+0x26/0x430 block/blk-cgroup.c:1198 blk_alloc_queue+0x439/0x5a0 block/blk-core.c:582 blk_mq_init_queue_data block/blk-mq.c:3150 [inline] blk_mq_init_queue+0x33/0xd0 block/blk-mq.c:3164 scsi_alloc_sdev+0x6f2/0xab0 drivers/scsi/scsi_scan.c:319 scsi_probe_and_add_lun+0x1bf/0x3d00 drivers/scsi/scsi_scan.c:1157 __scsi_scan_target+0x1d8/0x1010 drivers/scsi/scsi_scan.c:1638 scsi_scan_channel drivers/scsi/scsi_scan.c:1726 [inline] scsi_scan_host_selected+0x36e/0x690 drivers/scsi/scsi_scan.c:1755 do_scsi_scan_host drivers/scsi/scsi_scan.c:1894 [inline] do_scan_async+0x11a/0x700 drivers/scsi/scsi_scan.c:1904 async_run_entry_fn+0x9f/0x3e0 kernel/async.c:127 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page+0x94/0x280 mm/page_alloc.c:3396 mm_free_pgd kernel/fork.c:653 [inline] __mmdrop+0xaa/0x3e0 kernel/fork.c:704 free_bprm+0x141/0x300 fs/exec.c:1494 kernel_execve+0x380/0x900 fs/exec.c:2015 call_usermodehelper_exec_async+0x207/0x350 kernel/umh.c:112 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Memory state around the buggy address: ffff8880233cec80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8880233ced00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff8880233ced80: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ^ ffff8880233cee00: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ffff8880233cee80: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ==================================================================