ntfs3: loop1: RAW NTFS volume: Filesystem size 16384.00 Gb > volume size 0.00 Gb. Mount in read-only. ntfs3: loop1: NTFS 16384.00 Gb is too big to use 32 bits per cluster. ================================================================== BUG: KASAN: use-after-free in memcmp+0x172/0x1c0 lib/string.c:681 Read of size 8 at addr ffff88804b6c2002 by task syz-executor.1/7750 CPU: 0 PID: 7750 Comm: syz-executor.1 Not tainted 6.6.0-rc5-syzkaller-00055-g1c8b86a3799f #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 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 memcmp+0x172/0x1c0 lib/string.c:681 memcmp include/linux/fortify-string.h:728 [inline] ntfs_init_from_boot fs/ntfs3/super.c:858 [inline] ntfs_fill_super+0x6f2/0x4350 fs/ntfs3/super.c:1139 get_tree_bdev+0x3b5/0x650 fs/super.c:1577 vfs_get_tree+0x8c/0x370 fs/super.c:1750 do_new_mount fs/namespace.c:3335 [inline] path_mount+0x1492/0x1ed0 fs/namespace.c:3662 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount fs/namespace.c:3861 [inline] __ia32_sys_mount+0x291/0x310 fs/namespace.c:3861 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7fa9579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f7fa43f0 EFLAGS: 00000296 ORIG_RAX: 0000000000000015 RAX: ffffffffffffffda RBX: 00000000f7fa4460 RCX: 000000002001f1c0 RDX: 00000000200000c0 RSI: 0000000000010040 RDI: 00000000f7fa44a0 RBP: 00000000200000c0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 The buggy address belongs to the physical page: page:ffffea00012db080 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x4b6c2 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 04fff00000000000 ffffea00012db0c8 ffff88802c6427a0 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 7750, tgid 7749 (syz-executor.1), ts 240514701835, free_ts 240568410850 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536 prep_new_page mm/page_alloc.c:1543 [inline] get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170 __alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426 __folio_alloc+0x16/0x40 mm/page_alloc.c:4458 vma_alloc_folio+0x156/0x890 mm/mempolicy.c:2258 do_anonymous_page mm/memory.c:4110 [inline] do_pte_missing mm/memory.c:3667 [inline] handle_pte_fault mm/memory.c:4978 [inline] __handle_mm_fault+0xe67/0x3e10 mm/memory.c:5119 handle_mm_fault+0x478/0xa00 mm/memory.c:5284 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+0x5c/0xd0 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:1136 [inline] free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312 free_unref_page_list+0xe6/0xb30 mm/page_alloc.c:2451 release_pages+0x32a/0x14e0 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:2318 do_vmi_align_munmap+0xddc/0x15f0 mm/mmap.c:2555 do_vmi_munmap+0x20e/0x450 mm/mmap.c:2623 __vm_munmap+0x144/0x390 mm/mmap.c:2908 __do_sys_munmap mm/mmap.c:2925 [inline] __se_sys_munmap mm/mmap.c:2922 [inline] __ia32_sys_munmap+0x60/0x80 mm/mmap.c:2922 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 Memory state around the buggy address: ffff88804b6c1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88804b6c1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88804b6c2000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88804b6c2080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88804b6c2100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 10 06 adc %al,(%rsi) 2: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 6: 10 07 adc %al,(%rdi) 8: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi c: 10 08 adc %cl,(%rax) e: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1e: 00 51 52 add %dl,0x52(%rcx) 21: 55 push %rbp 22: 89 e5 mov %esp,%ebp 24: 0f 34 sysenter 26: cd 80 int $0x80 * 28: 5d pop %rbp <-- trapping instruction 29: 5a pop %rdx 2a: 59 pop %rcx 2b: c3 ret 2c: 90 nop 2d: 90 nop 2e: 90 nop 2f: 90 nop 30: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 37: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi