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/0x2b00 fs/ntfs/dir.c:1200 Read of size 1 at addr ffff888023349c71 by task syz-executor117/5046 CPU: 1 PID: 5046 Comm: syz-executor117 Not tainted 6.5.0-rc5-next-20230809-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/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 wrap_directory_iterator+0xa5/0xe0 fs/readdir.c:67 iterate_dir+0x1e5/0x5f0 fs/readdir.c:106 __do_sys_getdents64 fs/readdir.c:405 [inline] __se_sys_getdents64 fs/readdir.c:390 [inline] __x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:390 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:0x7f349e2715f9 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:00007ffc528d4378 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007ffc528d4548 RCX: 00007f349e2715f9 RDX: 00000000000000ab RSI: 0000000020000080 RDI: 0000000000000004 RBP: 00007f349e303610 R08: 0000000000000000 R09: 00007ffc528d4548 R10: 000000000001f1b8 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffc528d4538 R14: 0000000000000001 R15: 0000000000000001 Allocated by task 5046: 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+0xa2/0xb0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:198 [inline] __do_kmalloc_node mm/slab_common.c:1023 [inline] __kmalloc+0x60/0x100 mm/slab_common.c:1036 kmalloc include/linux/slab.h:603 [inline] ntfs_readdir+0x11a4/0x2b00 fs/ntfs/dir.c:1162 wrap_directory_iterator+0xa5/0xe0 fs/readdir.c:67 iterate_dir+0x1e5/0x5f0 fs/readdir.c:106 __do_sys_getdents64 fs/readdir.c:405 [inline] __se_sys_getdents64 fs/readdir.c:390 [inline] __x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:390 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 ffff888023349c00 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 [ffff888023349c00, ffff888023349c38) The buggy address belongs to the physical page: page:ffffea00008cd240 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x23349 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000200 ffff888012841640 ffffea0000a2a980 dead000000000004 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, tgid 1 (swapper/0), ts 39614960743, free_ts 0 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1567 prep_new_page mm/page_alloc.c:1574 [inline] get_page_from_freelist+0x10d7/0x31b0 mm/page_alloc.c:3253 __alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4509 alloc_page_interleave+0x1e/0x250 mm/mempolicy.c:2131 alloc_pages+0x22a/0x270 mm/mempolicy.c:2293 alloc_slab_page mm/slub.c:1870 [inline] allocate_slab+0x24e/0x380 mm/slub.c:2017 new_slab mm/slub.c:2070 [inline] ___slab_alloc+0x8bc/0x1570 mm/slub.c:3223 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3322 __slab_alloc_node mm/slub.c:3375 [inline] slab_alloc_node mm/slub.c:3468 [inline] __kmem_cache_alloc_node+0x137/0x350 mm/slub.c:3517 kmalloc_node_trace+0x22/0xd0 mm/slab_common.c:1127 kmalloc_node include/linux/slab.h:615 [inline] kzalloc_node include/linux/slab.h:731 [inline] __get_vm_area_node+0xe1/0x3d0 mm/vmalloc.c:2588 __vmalloc_node_range+0x27a/0x1540 mm/vmalloc.c:3276 __vmalloc_node mm/vmalloc.c:3381 [inline] vzalloc+0x6b/0x80 mm/vmalloc.c:3454 tpg_alloc+0x2f3/0x590 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:146 vivid_create_instance drivers/media/test-drivers/vivid/vivid-core.c:1780 [inline] vivid_probe drivers/media/test-drivers/vivid/vivid-core.c:2004 [inline] vivid_probe+0x1888/0x9f60 drivers/media/test-drivers/vivid/vivid-core.c:1989 platform_probe+0xff/0x1e0 drivers/base/platform.c:1404 page_owner free stack trace missing Memory state around the buggy address: ffff888023349b00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888023349b80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff888023349c00: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ^ ffff888023349c80: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc ffff888023349d00: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ==================================================================