ntfs: volume version 3.1. ================================================================== BUG: KASAN: use-after-free in sle64_to_cpup fs/ntfs/endian.h:46 [inline] BUG: KASAN: use-after-free in ntfs_lookup_inode_by_name+0x2fe2/0x3120 fs/ntfs/dir.c:292 Read of size 8 at addr ffff88807348755a by task syz-executor340/5062 CPU: 1 PID: 5062 Comm: syz-executor340 Not tainted 6.7.0-rc5-syzkaller-00125-gc7402612e2e6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/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 sle64_to_cpup fs/ntfs/endian.h:46 [inline] ntfs_lookup_inode_by_name+0x2fe2/0x3120 fs/ntfs/dir.c:292 check_windows_hibernation_status fs/ntfs/super.c:1282 [inline] load_system_files fs/ntfs/super.c:1997 [inline] ntfs_fill_super+0x4622/0x9100 fs/ntfs/super.c:2900 mount_bdev+0x1f3/0x2e0 fs/super.c:1650 legacy_get_tree+0x109/0x220 fs/fs_context.c:662 vfs_get_tree+0x8c/0x370 fs/super.c:1771 do_new_mount fs/namespace.c:3337 [inline] path_mount+0x1492/0x1ed0 fs/namespace.c:3664 do_mount fs/namespace.c:3677 [inline] __do_sys_mount fs/namespace.c:3886 [inline] __se_sys_mount fs/namespace.c:3863 [inline] __x64_sys_mount+0x293/0x310 fs/namespace.c:3863 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f2a7638e46a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007fff678e6678 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f2a7638e46a RDX: 000000002001ec80 RSI: 000000002001ecc0 RDI: 00007fff678e66c0 RBP: 0000000000000004 R08: 00007fff678e6700 R09: 000000000001ec63 R10: 0000000000000000 R11: 0000000000000286 R12: 00007fff678e66c0 R13: 00007fff678e6700 R14: 0000000000200000 R15: 0000000000000003 The buggy address belongs to the physical page: page:ffffea0001cd21c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x73487 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 dead000000000100 dead000000000122 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Movable, gfp_mask 0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_ZERO), pid 5050, tgid 5050 (sshd), ts 68024552059, free_ts 68078141414 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2d0/0x350 mm/page_alloc.c:1537 prep_new_page mm/page_alloc.c:1544 [inline] get_page_from_freelist+0xa25/0x36d0 mm/page_alloc.c:3312 __alloc_pages+0x22e/0x2420 mm/page_alloc.c:4568 alloc_pages_mpol+0x258/0x5f0 mm/mempolicy.c:2133 vma_alloc_folio+0xad/0x220 mm/mempolicy.c:2172 do_anonymous_page mm/memory.c:4172 [inline] do_pte_missing mm/memory.c:3729 [inline] handle_pte_fault mm/memory.c:5039 [inline] __handle_mm_fault+0xe07/0x3d70 mm/memory.c:5180 handle_mm_fault+0x47a/0xa10 mm/memory.c:5345 do_user_addr_fault+0x30b/0x1000 arch/x86/mm/fault.c:1364 handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x5d/0xc0 arch/x86/mm/fault.c:1561 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1137 [inline] free_unref_page_prepare+0x4fa/0xaa0 mm/page_alloc.c:2347 free_unref_page_list+0xe6/0xb40 mm/page_alloc.c:2533 release_pages+0x32a/0x14f0 mm/swap.c:1042 tlb_batch_pages_flush+0x9a/0x190 mm/mmu_gather.c:98 tlb_flush_mmu_free mm/mmu_gather.c:293 [inline] tlb_flush_mmu mm/mmu_gather.c:300 [inline] tlb_finish_mmu+0x14b/0x6f0 mm/mmu_gather.c:392 unmap_region.constprop.0+0x2e6/0x3b0 mm/mmap.c:2341 do_vmi_align_munmap+0xde6/0x1600 mm/mmap.c:2657 do_vmi_munmap+0x20e/0x450 mm/mmap.c:2725 __vm_munmap+0x144/0x390 mm/mmap.c:3012 __do_sys_munmap mm/mmap.c:3029 [inline] __se_sys_munmap mm/mmap.c:3026 [inline] __x64_sys_munmap+0x62/0x80 mm/mmap.c:3026 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b Memory state around the buggy address: ffff888073487400: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888073487480: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888073487500: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888073487580: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888073487600: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================