ntfs3: loop0: Different NTFS' sector size (2048) and media sector size (512) ntfs3: loop0: RAW NTFS volume: Filesystem size 0.00 Gb > volume size 0.00 Gb. Mount in read-only ================================================================== BUG: KASAN: slab-out-of-bounds in run_unpack+0x84f/0xd00 fs/ntfs3/run.c:944 Read of size 1 at addr ffff88807897b150 by task syz-executor350/3600 CPU: 1 PID: 3600 Comm: syz-executor350 Not tainted 6.0.0-rc7-syzkaller-00068-g49c13ed0316d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106 print_address_description+0x65/0x4b0 mm/kasan/report.c:317 print_report+0x108/0x1f0 mm/kasan/report.c:433 kasan_report+0xc3/0xf0 mm/kasan/report.c:495 run_unpack+0x84f/0xd00 fs/ntfs3/run.c:944 run_unpack_ex+0xcc/0x870 fs/ntfs3/run.c:1057 ntfs_read_mft fs/ntfs3/inode.c:368 [inline] ntfs_iget5+0x1cf2/0x36a0 fs/ntfs3/inode.c:501 ntfs_loadlog_and_replay+0x1ac/0x5c0 fs/ntfs3/fsntfs.c:272 ntfs_fill_super+0x2333/0x42a0 fs/ntfs3/super.c:1018 get_tree_bdev+0x400/0x620 fs/super.c:1323 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x289/0xad0 fs/namespace.c:3040 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x2d3/0x3c0 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7ff6e3d2a7fa Code: 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff80a0fe28 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007ff6e3d2a7fa RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fff80a0fe40 RBP: 00007fff80a0fe40 R08: 00007fff80a0fe80 R09: 00005555555982c0 R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000004 R13: 00007fff80a0fe80 R14: 000000000000000d R15: 0000000020000338 Allocated by task 0: (stack is not available) The buggy address belongs to the object at ffff88807897b000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 336 bytes inside of 2048-byte region [ffff88807897b000, ffff88807897b800) The buggy address belongs to the physical page: page:ffffea0001e25e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x78978 head:ffffea0001e25e00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff888012042000 raw: 0000000000000000 0000000080080008 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 3600, tgid 3600 (syz-executor350), ts 40465647482, free_ts 36720022316 prep_new_page mm/page_alloc.c:2532 [inline] get_page_from_freelist+0x742/0x7c0 mm/page_alloc.c:4283 __alloc_pages+0x259/0x560 mm/page_alloc.c:5549 alloc_slab_page+0x70/0xf0 mm/slub.c:1829 allocate_slab+0x5e/0x520 mm/slub.c:1974 new_slab mm/slub.c:2034 [inline] ___slab_alloc+0x3ee/0xc40 mm/slub.c:3036 __slab_alloc mm/slub.c:3123 [inline] slab_alloc_node mm/slub.c:3214 [inline] slab_alloc mm/slub.c:3256 [inline] __kmalloc+0x2bd/0x370 mm/slub.c:4425 kmalloc include/linux/slab.h:605 [inline] mi_init+0x72/0xe0 fs/ntfs3/record.c:105 ntfs_read_mft fs/ntfs3/inode.c:53 [inline] ntfs_iget5+0x309/0x36a0 fs/ntfs3/inode.c:501 ntfs_fill_super+0x2127/0x42a0 fs/ntfs3/super.c:994 get_tree_bdev+0x400/0x620 fs/super.c:1323 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x289/0xad0 fs/namespace.c:3040 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x2d3/0x3c0 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1449 [inline] free_pcp_prepare+0x812/0x900 mm/page_alloc.c:1499 free_unref_page_prepare mm/page_alloc.c:3380 [inline] free_unref_page+0x7d/0x5f0 mm/page_alloc.c:3476 free_slab mm/slub.c:2073 [inline] discard_slab mm/slub.c:2079 [inline] __unfreeze_partials+0x1ab/0x200 mm/slub.c:2553 put_cpu_partial+0x106/0x170 mm/slub.c:2629 qlist_free_all+0x2b/0x70 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x169/0x180 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x2f/0xd0 mm/kasan/common.c:447 kasan_slab_alloc include/linux/kasan.h:224 [inline] slab_post_alloc_hook mm/slab.h:727 [inline] slab_alloc_node mm/slub.c:3248 [inline] slab_alloc mm/slub.c:3256 [inline] __kmem_cache_alloc_lru mm/slub.c:3263 [inline] kmem_cache_alloc+0x1a6/0x310 mm/slub.c:3273 anon_vma_chain_alloc mm/rmap.c:141 [inline] __anon_vma_prepare+0x64/0x3f0 mm/rmap.c:195 anon_vma_prepare include/linux/rmap.h:159 [inline] do_anonymous_page+0xe4e/0x1150 mm/memory.c:4082 handle_pte_fault mm/memory.c:4915 [inline] __handle_mm_fault mm/memory.c:5059 [inline] handle_mm_fault+0x184b/0x3590 mm/memory.c:5157 do_user_addr_fault+0x69b/0xcb0 arch/x86/mm/fault.c:1397 handle_page_fault arch/x86/mm/fault.c:1488 [inline] exc_page_fault+0x7a/0x110 arch/x86/mm/fault.c:1544 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570 Memory state around the buggy address: ffff88807897b000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807897b080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88807897b100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88807897b180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807897b200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================