ntfs3: loop0: Different NTFS sector size (4096) and media sector size (512). ntfs3: loop0: RAW NTFS volume: Filesystem size 16384.00 Gb > volume size 0.00 Gb. Mount in read-only. ntfs3: loop0: NTFS 16384.00 Gb is too big to use 32 bits per cluster. ================================================================== BUG: KASAN: use-after-free in memcmp lib/string.c:681 [inline] BUG: KASAN: use-after-free in bcmp+0xc0/0x1e0 lib/string.c:713 Read of size 8 at addr ffff888066465002 by task syz-executor.0/5422 CPU: 0 PID: 5422 Comm: syz-executor.0 Not tainted 6.4.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x167/0x220 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:351 [inline] print_report+0x163/0x540 mm/kasan/report.c:462 kasan_report+0x176/0x1b0 mm/kasan/report.c:572 memcmp lib/string.c:681 [inline] bcmp+0xc0/0x1e0 lib/string.c:713 ntfs_init_from_boot fs/ntfs3/super.c:740 [inline] ntfs_fill_super+0x975/0x3f30 fs/ntfs3/super.c:1032 get_tree_bdev+0x3ce/0x600 fs/super.c:1303 vfs_get_tree+0x7e/0x180 fs/super.c:1510 do_new_mount+0x1e5/0x8f0 fs/namespace.c:3039 do_mount fs/namespace.c:3382 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x232/0x2c0 fs/namespace.c:3568 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:0x7fc52228d8ba 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:00007fc522fe4f88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 000000000001f1a5 RCX: 00007fc52228d8ba RDX: 00000000200000c0 RSI: 0000000020000000 RDI: 00007fc522fe4fe0 RBP: 00007fc522fe5020 R08: 00007fc522fe5020 R09: 0000000000800000 R10: 0000000000800000 R11: 0000000000000246 R12: 00000000200000c0 R13: 0000000020000000 R14: 00007fc522fe4fe0 R15: 0000000020000100 The buggy address belongs to the physical page: page:ffffea0001991940 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x66465 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 ffffea0001991fc8 ffffea0001991d48 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 5422, tgid 5420 (syz-executor.0), ts 72535343075, free_ts 72576115176 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x26e/0x290 mm/page_alloc.c:1731 prep_new_page mm/page_alloc.c:1738 [inline] get_page_from_freelist+0x3197/0x3320 mm/page_alloc.c:3502 __alloc_pages+0x255/0x650 mm/page_alloc.c:4768 __folio_alloc+0x13/0x30 mm/page_alloc.c:4800 vma_alloc_folio+0x48e/0x9f0 mm/mempolicy.c:2240 do_anonymous_page mm/memory.c:4085 [inline] do_pte_missing mm/memory.c:3645 [inline] handle_pte_fault mm/memory.c:4947 [inline] __handle_mm_fault mm/memory.c:5089 [inline] handle_mm_fault+0x296e/0x43a0 mm/memory.c:5243 do_user_addr_fault arch/x86/mm/fault.c:1349 [inline] handle_page_fault arch/x86/mm/fault.c:1534 [inline] exc_page_fault+0x263/0x8c0 arch/x86/mm/fault.c:1590 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:1302 [inline] free_unref_page_prepare+0x817/0x940 mm/page_alloc.c:2564 free_unref_page_list+0x54b/0x7e0 mm/page_alloc.c:2705 release_pages+0x19c2/0x1b70 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+0xe9/0x1d0 mm/mmu_gather.c:299 tlb_finish_mmu+0xb6/0x1c0 mm/mmu_gather.c:391 unmap_region+0x247/0x2a0 mm/mmap.c:2222 do_vmi_align_munmap+0xf3a/0x1540 mm/mmap.c:2465 do_vmi_munmap+0x199/0x1f0 mm/mmap.c:2527 __vm_munmap+0x1e8/0x3b0 mm/mmap.c:2802 __do_sys_munmap mm/mmap.c:2827 [inline] __se_sys_munmap mm/mmap.c:2824 [inline] __x64_sys_munmap+0x64/0x70 mm/mmap.c:2824 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 Memory state around the buggy address: ffff888066464f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888066464f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888066465000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888066465080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888066465100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================