ntfs: (device loop0): check_windows_hibernation_status(): Failed to find inode number for hiberfil.sys. 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 ffff88802a0955f1 by task syz-executor.0/5479 CPU: 1 PID: 5479 Comm: syz-executor.0 Not tainted 6.6.0-rc3-next-20230928-syzkaller-08507-g719136e5c247 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/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:51 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f359987cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3598bfe0c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007f359999bf80 RCX: 00007f359987cae9 RDX: 00000000000000ab RSI: 0000000020000080 RDI: 0000000000000004 RBP: 00007f35998c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f359999bf80 R15: 00007ffdb9f68868 Allocated by task 5479: 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:1004 [inline] __kmalloc+0x60/0x100 mm/slab_common.c:1017 kmalloc include/linux/slab.h:604 [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:51 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff88802a095580 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 [ffff88802a095580, ffff88802a0955b8) The buggy address belongs to the physical page: page:ffffea0000a82540 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88802a095600 pfn:0x2a095 flags: 0xfff00000000800(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000800 ffff888012c41640 ffffea000064d200 dead000000000002 raw: ffff88802a095600 000000008020001f 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 0x12c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY), pid 4497, tgid 4497 (start-stop-daem), ts 30047163132, free_ts 28756564868 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1534 prep_new_page mm/page_alloc.c:1541 [inline] get_page_from_freelist+0x98f/0x32a0 mm/page_alloc.c:3333 __alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4589 alloc_pages+0x1a9/0x270 mm/mempolicy.c:2304 alloc_slab_page mm/slub.c:1870 [inline] allocate_slab+0x251/0x380 mm/slub.c:2017 new_slab mm/slub.c:2070 [inline] ___slab_alloc+0x8c7/0x1580 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+0x131/0x330 mm/slub.c:3517 __do_kmalloc_node mm/slab_common.c:1003 [inline] __kmalloc+0x4f/0x100 mm/slab_common.c:1017 kmalloc include/linux/slab.h:604 [inline] kzalloc include/linux/slab.h:721 [inline] tomoyo_commit_ok+0x21/0x90 security/tomoyo/memory.c:76 tomoyo_update_domain+0x5f7/0x860 security/tomoyo/domain.c:139 tomoyo_write_env security/tomoyo/environ.c:105 [inline] tomoyo_write_misc+0x14f/0x1e0 security/tomoyo/environ.c:121 tomoyo_write_domain2+0x126/0x1e0 security/tomoyo/common.c:1144 tomoyo_add_entry security/tomoyo/common.c:2034 [inline] tomoyo_supervisor+0x4ad/0xea0 security/tomoyo/common.c:2095 tomoyo_audit_env_log security/tomoyo/environ.c:36 [inline] tomoyo_env_perm+0x18f/0x200 security/tomoyo/environ.c:63 tomoyo_environ security/tomoyo/domain.c:672 [inline] tomoyo_find_next_domain+0xef6/0x2020 security/tomoyo/domain.c:878 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1134 [inline] free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2383 free_unref_page+0x33/0x3b0 mm/page_alloc.c:2518 kasan_depopulate_vmalloc_pte+0x63/0x80 mm/kasan/shadow.c:427 apply_to_pte_range mm/memory.c:2601 [inline] apply_to_pmd_range mm/memory.c:2645 [inline] apply_to_pud_range mm/memory.c:2681 [inline] apply_to_p4d_range mm/memory.c:2717 [inline] __apply_to_page_range+0x5ed/0xdb0 mm/memory.c:2751 kasan_release_vmalloc+0xa8/0xc0 mm/kasan/shadow.c:544 __purge_vmap_area_lazy+0x8b9/0x2160 mm/vmalloc.c:1770 _vm_unmap_aliases+0x693/0x9b0 mm/vmalloc.c:2306 change_page_attr_set_clr+0x24a/0x490 arch/x86/mm/pat/set_memory.c:1838 change_page_attr_set arch/x86/mm/pat/set_memory.c:1879 [inline] set_memory_nx+0xb6/0x110 arch/x86/mm/pat/set_memory.c:2072 free_init_pages+0x77/0xd0 arch/x86/mm/init.c:928 kernel_init+0x30/0x2a0 init/main.c:1446 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Memory state around the buggy address: ffff88802a095480: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc ffff88802a095500: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc >ffff88802a095580: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ^ ffff88802a095600: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88802a095680: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================