loop5: 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+0xe86/0x2ca0 fs/ntfs/dir.c:292 Read of size 8 at addr ffff888097969560 by task syz-executor.5/3339 CPU: 1 PID: 3339 Comm: syz-executor.5 Not tainted 6.3.0-syzkaller-00113-g1a0beef98b58 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:319 [inline] print_report+0x163/0x540 mm/kasan/report.c:430 kasan_report+0x176/0x1b0 mm/kasan/report.c:536 sle64_to_cpup fs/ntfs/endian.h:46 [inline] ntfs_lookup_inode_by_name+0xe86/0x2ca0 fs/ntfs/dir.c:292 check_windows_hibernation_status+0xf0/0x4c0 fs/ntfs/super.c:1282 load_system_files+0x35db/0x4840 fs/ntfs/super.c:1997 ntfs_fill_super+0x19b4/0x2bd0 fs/ntfs/super.c:2900 mount_bdev+0x271/0x3a0 fs/super.c:1380 legacy_get_tree+0xef/0x190 fs/fs_context.c:610 vfs_get_tree+0x8c/0x270 fs/super.c:1510 do_new_mount+0x28f/0xae0 fs/namespace.c:3042 do_mount fs/namespace.c:3385 [inline] __do_sys_mount fs/namespace.c:3594 [inline] __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3571 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f0b5b68d69a Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 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:00007f0b5c3e4f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 000000000001ec6a RCX: 00007f0b5b68d69a RDX: 000000002001ec80 RSI: 000000002001ecc0 RDI: 00007f0b5c3e4fe0 RBP: 00007f0b5c3e5020 R08: 00007f0b5c3e5020 R09: 0000000000000003 R10: 0000000000000003 R11: 0000000000000202 R12: 000000002001ec80 R13: 000000002001ecc0 R14: 00007f0b5c3e4fe0 R15: 000000002001ed00 The buggy address belongs to the physical page: page:ffffea00025e5a40 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x97969 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea000252fa88 ffffea00025eb948 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 3308, tgid 3308 (syz-executor.3), ts 3022696177345, free_ts 3022925907385 prep_new_page mm/page_alloc.c:2553 [inline] get_page_from_freelist+0x3246/0x33c0 mm/page_alloc.c:4326 __alloc_pages+0x255/0x670 mm/page_alloc.c:5592 __folio_alloc+0x13/0x30 mm/page_alloc.c:5624 vma_alloc_folio+0x48a/0x9a0 mm/mempolicy.c:2238 do_anonymous_page mm/memory.c:4066 [inline] handle_pte_fault mm/memory.c:4921 [inline] __handle_mm_fault mm/memory.c:5065 [inline] handle_mm_fault+0x2984/0x51c0 mm/memory.c:5211 do_user_addr_fault arch/x86/mm/fault.c:1407 [inline] handle_page_fault arch/x86/mm/fault.c:1498 [inline] exc_page_fault+0x5b1/0x7c0 arch/x86/mm/fault.c:1554 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:1454 [inline] free_pcp_prepare mm/page_alloc.c:1504 [inline] free_unref_page_prepare+0xe2f/0xe70 mm/page_alloc.c:3388 free_unref_page_list+0x596/0x830 mm/page_alloc.c:3529 release_pages+0x219e/0x2470 mm/swap.c:1042 tlb_batch_pages_flush mm/mmu_gather.c:97 [inline] tlb_flush_mmu_free mm/mmu_gather.c:292 [inline] tlb_flush_mmu+0x100/0x210 mm/mmu_gather.c:299 zap_pte_range mm/memory.c:1487 [inline] zap_pmd_range mm/memory.c:1536 [inline] zap_pud_range mm/memory.c:1565 [inline] zap_p4d_range mm/memory.c:1586 [inline] unmap_page_range+0x23e9/0x2980 mm/memory.c:1607 unmap_vmas+0x347/0x4e0 mm/memory.c:1692 exit_mmap+0x255/0x9d0 mm/mmap.c:3069 __mmput+0x115/0x3c0 kernel/fork.c:1208 exit_mm+0x227/0x310 kernel/exit.c:563 do_exit+0x612/0x2290 kernel/exit.c:856 do_group_exit+0x206/0x2c0 kernel/exit.c:1019 get_signal+0x1701/0x17e0 kernel/signal.c:2859 arch_do_signal_or_restart+0x91/0x670 arch/x86/kernel/signal.c:306 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:168 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:297 Memory state around the buggy address: ffff888097969400: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888097969480: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888097969500: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888097969580: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888097969600: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================