ntfs: (device loop0): load_system_files(): Failed to determine if Windows is hibernated. Will not be able to remount read-write. Run chkdsk. ================================================================== 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/0x29b0 fs/ntfs/dir.c:1200 Read of size 1 at addr ffff88802baf4971 by task syz-executor373/5019 CPU: 0 PID: 5019 Comm: syz-executor373 Not tainted 6.4.0-syzkaller-12069-gc17414a273b8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:364 print_report mm/kasan/report.c:475 [inline] kasan_report+0x11d/0x130 mm/kasan/report.c:588 ntfs_filldir fs/ntfs/dir.c:1021 [inline] ntfs_readdir+0x1455/0x29b0 fs/ntfs/dir.c:1200 iterate_dir+0x20c/0x750 fs/readdir.c:67 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64 fs/readdir.c:354 [inline] __x64_sys_getdents64+0x13e/0x2c0 fs/readdir.c:354 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f85fe2927a9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd72a33b58 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f85fe2927a9 RDX: 00000000000000ab RSI: 0000000020000080 RDI: 0000000000000004 RBP: 00007f85fe252040 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000001f1b8 R11: 0000000000000246 R12: 00007f85fe2520d0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 5019: kasan_save_stack+0x22/0x40 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 mm/kasan/common.c:333 [inline] __kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:196 [inline] __do_kmalloc_node mm/slab_common.c:985 [inline] __kmalloc+0x5e/0x190 mm/slab_common.c:998 kmalloc include/linux/slab.h:586 [inline] ntfs_readdir+0x117f/0x29b0 fs/ntfs/dir.c:1162 iterate_dir+0x20c/0x750 fs/readdir.c:67 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64 fs/readdir.c:354 [inline] __x64_sys_getdents64+0x13e/0x2c0 fs/readdir.c:354 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff88802baf4900 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 [ffff88802baf4900, ffff88802baf4938) The buggy address belongs to the physical page: page:ffffea0000aebd00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88802baf4c80 pfn:0x2baf4 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000200 ffff888012841640 ffffea0000aa7d40 dead000000000006 raw: ffff88802baf4c80 000000008020001d 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 38, tgid 38 (kworker/u4:2), ts 8915134478, free_ts 8903626038 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2db/0x350 mm/page_alloc.c:1570 prep_new_page mm/page_alloc.c:1577 [inline] get_page_from_freelist+0xfed/0x2d30 mm/page_alloc.c:3221 __alloc_pages+0x1cb/0x4a0 mm/page_alloc.c:4477 alloc_pages+0x1aa/0x270 mm/mempolicy.c:2279 alloc_slab_page mm/slub.c:1862 [inline] allocate_slab+0x25f/0x390 mm/slub.c:2009 new_slab mm/slub.c:2062 [inline] ___slab_alloc+0xbc3/0x15d0 mm/slub.c:3215 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3314 __slab_alloc_node mm/slub.c:3367 [inline] slab_alloc_node mm/slub.c:3460 [inline] __kmem_cache_alloc_node+0x143/0x350 mm/slub.c:3509 __do_kmalloc_node mm/slab_common.c:984 [inline] __kmalloc+0x4e/0x190 mm/slab_common.c:998 kmalloc include/linux/slab.h:586 [inline] kzalloc include/linux/slab.h:703 [inline] lsm_task_alloc security/security.c:653 [inline] security_task_alloc+0x10f/0x250 security/security.c:2830 copy_process+0x2531/0x75c0 kernel/fork.c:2485 kernel_clone+0xeb/0x890 kernel/fork.c:2911 user_mode_thread+0xb1/0xf0 kernel/fork.c:2989 call_usermodehelper_exec_work kernel/umh.c:172 [inline] call_usermodehelper_exec_work+0xd0/0x180 kernel/umh.c:158 process_one_work+0xa34/0x16f0 kernel/workqueue.c:2597 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2748 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1161 [inline] free_unref_page_prepare+0x62e/0xcb0 mm/page_alloc.c:2348 free_unref_page+0x33/0x370 mm/page_alloc.c:2443 vfree+0x180/0x7b0 mm/vmalloc.c:2842 delayed_vfree_work+0x57/0x70 mm/vmalloc.c:2763 process_one_work+0xa34/0x16f0 kernel/workqueue.c:2597 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2748 kthread+0x344/0x440 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Memory state around the buggy address: ffff88802baf4800: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ffff88802baf4880: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc >ffff88802baf4900: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ^ ffff88802baf4980: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc ffff88802baf4a00: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc ==================================================================