ntfs: volume version 3.1. ntfs: (device loop0): ntfs_check_logfile(): $LogFile is too small. ================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_filldir fs/ntfs/dir.c:1021 [inline] BUG: KASAN: slab-out-of-bounds in ntfs_readdir+0x1455/0x2b00 fs/ntfs/dir.c:1200 Read of size 1 at addr ffff88801a7b25f1 by task syz-executor207/5014 CPU: 0 PID: 5014 Comm: syz-executor207 Not tainted 6.5.0-rc4-syzkaller-00245-gf6a691685962 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xc4/0x620 mm/kasan/report.c:475 kasan_report+0xda/0x110 mm/kasan/report.c:588 ntfs_filldir fs/ntfs/dir.c:1021 [inline] ntfs_readdir+0x1455/0x2b00 fs/ntfs/dir.c:1200 iterate_dir+0x201/0x740 fs/readdir.c:67 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64 fs/readdir.c:354 [inline] __x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fa2aea5c5f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffeee4d6d68 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007ffeee4d6f38 RCX: 00007fa2aea5c5f9 RDX: 0000000000000098 RSI: 0000000020000080 RDI: 0000000000000004 RBP: 00007fa2aeaee610 R08: 0000000000000000 R09: 00007ffeee4d6f38 R10: 000000000001e706 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffeee4d6f28 R14: 0000000000000001 R15: 0000000000000001 Allocated by task 5014: kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xa3/0xb0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:196 [inline] __do_kmalloc_node mm/slab_common.c:985 [inline] __kmalloc+0x5d/0x100 mm/slab_common.c:998 kmalloc include/linux/slab.h:586 [inline] ntfs_readdir+0x11a4/0x2b00 fs/ntfs/dir.c:1162 iterate_dir+0x201/0x740 fs/readdir.c:67 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64 fs/readdir.c:354 [inline] __x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff88801a7b2580 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 57 bytes to the right of allocated 56-byte region [ffff88801a7b2580, ffff88801a7b25b8) The buggy address belongs to the physical page: page:ffffea000069ec80 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88801a7b2b00 pfn:0x1a7b2 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0x1e() raw: 00fff00000000200 ffff888012840200 ffffea0000b08750 ffffea0000b41990 raw: ffff88801a7b2b00 ffff88801a7b2000 000000010000001e 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 0x2420c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_COMP|__GFP_THISNODE), pid 74, tgid 74 (kworker/u4:4), ts 8624806373, free_ts 0 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1570 prep_new_page mm/page_alloc.c:1577 [inline] get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3221 __alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4477 __alloc_pages_node include/linux/gfp.h:237 [inline] kmem_getpages mm/slab.c:1356 [inline] cache_grow_begin+0x99/0x3a0 mm/slab.c:2550 cache_alloc_refill+0x294/0x3a0 mm/slab.c:2923 ____cache_alloc mm/slab.c:2999 [inline] ____cache_alloc mm/slab.c:2982 [inline] __do_cache_alloc mm/slab.c:3182 [inline] slab_alloc_node mm/slab.c:3230 [inline] __kmem_cache_alloc_node+0x3c9/0x470 mm/slab.c:3521 kmalloc_node_trace+0x22/0xd0 mm/slab_common.c:1089 kmalloc_node include/linux/slab.h:598 [inline] kzalloc_node include/linux/slab.h:714 [inline] __get_vm_area_node+0xe1/0x3d0 mm/vmalloc.c:2588 __vmalloc_node_range+0x27a/0x1540 mm/vmalloc.c:3276 alloc_thread_stack_node kernel/fork.c:309 [inline] dup_task_struct kernel/fork.c:1113 [inline] copy_process+0x13f1/0x7400 kernel/fork.c:2330 kernel_clone+0xfd/0x8f0 kernel/fork.c:2912 user_mode_thread+0xb4/0xf0 kernel/fork.c:2990 call_usermodehelper_exec_work kernel/umh.c:172 [inline] call_usermodehelper_exec_work+0xcb/0x170 kernel/umh.c:158 process_one_work+0xaa2/0x16f0 kernel/workqueue.c:2597 worker_thread+0x687/0x1110 kernel/workqueue.c:2748 kthread+0x33a/0x430 kernel/kthread.c:389 page_owner free stack trace missing Memory state around the buggy address: ffff88801a7b2480: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88801a7b2500: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff88801a7b2580: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ^ ffff88801a7b2600: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88801a7b2680: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================