loop0: detected capacity change from 0 to 4096 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+0xe82/0x2ca0 fs/ntfs/dir.c:292 Read of size 8 at addr ffff88806a08a55a by task syz-executor.0/3971 CPU: 0 PID: 3971 Comm: syz-executor.0 Not tainted 6.1.87-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x15f/0x4f0 mm/kasan/report.c:395 kasan_report+0x136/0x160 mm/kasan/report.c:495 sle64_to_cpup fs/ntfs/endian.h:46 [inline] ntfs_lookup_inode_by_name+0xe82/0x2ca0 fs/ntfs/dir.c:292 check_windows_hibernation_status+0xec/0x4c0 fs/ntfs/super.c:1274 load_system_files+0x35d7/0x4830 fs/ntfs/super.c:1989 ntfs_fill_super+0x19b0/0x2bd0 fs/ntfs/super.c:2892 mount_bdev+0x2c9/0x3f0 fs/super.c:1432 legacy_get_tree+0xeb/0x180 fs/fs_context.c:632 vfs_get_tree+0x88/0x270 fs/super.c:1562 do_new_mount+0x2ba/0xb40 fs/namespace.c:3051 do_mount fs/namespace.c:3394 [inline] __do_sys_mount fs/namespace.c:3602 [inline] __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3579 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f8dcfc7e05a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8dd099aee8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f8dd099af80 RCX: 00007f8dcfc7e05a RDX: 000000002001ec80 RSI: 000000002001ecc0 RDI: 00007f8dd099af40 RBP: 000000002001ec80 R08: 00007f8dd099af80 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000002001ecc0 R13: 00007f8dd099af40 R14: 000000000001ec6a R15: 000000002001ed00 The buggy address belongs to the physical page: page:ffffea0001a82280 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x6a08a flags: 0xfff80000000000(node=0|zone=1|lastcpupid=0xfff) raw: 00fff80000000000 ffffea0001a822c8 ffffea0001a82248 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 3548, tgid 3541 (syz-fuzzer), ts 55925121027, free_ts 57876552681 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2513 prep_new_page mm/page_alloc.c:2520 [inline] get_page_from_freelist+0x31a1/0x3320 mm/page_alloc.c:4279 __alloc_pages+0x28d/0x770 mm/page_alloc.c:5547 __folio_alloc+0xf/0x30 mm/page_alloc.c:5579 vma_alloc_folio+0x486/0x990 mm/mempolicy.c:2243 alloc_page_vma include/linux/gfp.h:284 [inline] do_anonymous_page mm/memory.c:4172 [inline] handle_pte_fault mm/memory.c:5011 [inline] __handle_mm_fault mm/memory.c:5155 [inline] handle_mm_fault+0x2e90/0x5340 mm/memory.c:5276 do_user_addr_fault arch/x86/mm/fault.c:1371 [inline] handle_page_fault arch/x86/mm/fault.c:1462 [inline] exc_page_fault+0x26f/0x660 arch/x86/mm/fault.c:1518 asm_exc_page_fault+0x22/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:1440 [inline] free_pcp_prepare mm/page_alloc.c:1490 [inline] free_unref_page_prepare+0xf63/0x1120 mm/page_alloc.c:3358 free_unref_page_list+0x663/0x900 mm/page_alloc.c:3499 release_pages+0x2836/0x2b40 mm/swap.c:1055 tlb_batch_pages_flush mm/mmu_gather.c:59 [inline] tlb_flush_mmu_free mm/mmu_gather.c:254 [inline] tlb_flush_mmu+0xfc/0x210 mm/mmu_gather.c:261 zap_pte_range mm/memory.c:1525 [inline] zap_pmd_range mm/memory.c:1574 [inline] zap_pud_range mm/memory.c:1603 [inline] zap_p4d_range mm/memory.c:1624 [inline] unmap_page_range+0x217c/0x2740 mm/memory.c:1645 unmap_vmas+0x48b/0x640 mm/memory.c:1730 exit_mmap+0x252/0x9f0 mm/mmap.c:3227 __mmput+0x115/0x3c0 kernel/fork.c:1199 exit_mm+0x226/0x300 kernel/exit.c:563 do_exit+0x9f6/0x26a0 kernel/exit.c:856 do_group_exit+0x202/0x2b0 kernel/exit.c:1019 get_signal+0x16f7/0x17d0 kernel/signal.c:2862 arch_do_signal_or_restart+0xb0/0x1a10 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:174 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303 Memory state around the buggy address: ffff88806a08a400: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88806a08a480: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88806a08a500: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88806a08a580: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88806a08a600: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================