loop3: detected capacity change from 0 to 4096 ntfs3: loop3: Different NTFS' sector size (4096) and media sector size (512) ================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_iget5+0x120/0x2bd4 fs/ntfs3/inode.c:525 Read of size 8 at addr ffff00012a34ff60 by task syz-executor.3/25115 CPU: 0 PID: 25115 Comm: syz-executor.3 Not tainted 6.1.62-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x174/0x4c0 mm/kasan/report.c:395 kasan_report+0xd4/0x130 mm/kasan/report.c:495 __asan_report_load8_noabort+0x2c/0x38 mm/kasan/report_generic.c:351 ntfs_iget5+0x120/0x2bd4 fs/ntfs3/inode.c:525 ntfs_fill_super+0x1e38/0x3a08 fs/ntfs3/super.c:1009 get_tree_bdev+0x360/0x54c fs/super.c:1355 ntfs_fs_get_tree+0x28/0x38 fs/ntfs3/super.c:1359 vfs_get_tree+0x90/0x274 fs/super.c:1562 do_new_mount+0x25c/0x8c4 fs/namespace.c:3040 path_mount+0x590/0xe5c fs/namespace.c:3370 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount fs/namespace.c:3568 [inline] __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3568 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Allocated by task 4395: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:52 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:505 __kasan_slab_alloc+0x74/0x8c mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x74/0x458 mm/slab.h:737 slab_alloc_node mm/slub.c:3398 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc_lru+0x1ac/0x2f8 mm/slub.c:3429 xas_alloc lib/xarray.c:377 [inline] xas_create+0xef4/0x13d4 lib/xarray.c:679 xas_store+0x90/0x1598 lib/xarray.c:789 __filemap_add_folio+0x694/0x1258 mm/filemap.c:895 filemap_add_folio+0x10c/0x298 mm/filemap.c:934 page_cache_ra_unbounded+0x1c0/0x58c mm/readahead.c:251 do_page_cache_ra mm/readahead.c:300 [inline] page_cache_ra_order+0x7fc/0x994 mm/readahead.c:560 do_sync_mmap_readahead+0x3a4/0x844 filemap_fault+0x604/0xf7c mm/filemap.c:3136 __do_fault+0x11c/0x3d8 mm/memory.c:4241 do_read_fault mm/memory.c:4592 [inline] do_fault mm/memory.c:4721 [inline] handle_pte_fault mm/memory.c:4993 [inline] __handle_mm_fault mm/memory.c:5135 [inline] handle_mm_fault+0x1f68/0x3e9c mm/memory.c:5256 __do_page_fault arch/arm64/mm/fault.c:499 [inline] do_page_fault+0x330/0x890 arch/arm64/mm/fault.c:583 do_translation_fault+0x94/0xc8 arch/arm64/mm/fault.c:667 do_mem_abort+0x74/0x200 arch/arm64/mm/fault.c:803 el0_da+0x70/0x184 arch/arm64/kernel/entry-common.c:515 el0t_64_sync_handler+0xcc/0xf0 arch/arm64/kernel/entry-common.c:658 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 The buggy address belongs to the object at ffff00012a34fc80 which belongs to the cache radix_tree_node of size 576 The buggy address is located 160 bytes to the right of 576-byte region [ffff00012a34fc80, ffff00012a34fec0) The buggy address belongs to the physical page: page:00000000bda21d6b refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff00012a34c840 pfn:0x16a34c head:00000000bda21d6b order:2 compound_mapcount:0 compound_pincount:0 memcg:ffff0000d4570c01 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 fffffc0003874408 fffffc0004a8f708 ffff0000c000d500 raw: ffff00012a34c840 000000000017000f 00000001ffffffff ffff0000d4570c01 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff00012a34fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff00012a34fe80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff00012a34ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff00012a34ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff00012a350000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== Unable to handle kernel paging request at virtual address dfff800000000002 KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] Mem abort info: ESR = 0x0000000096000006 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x06: level 2 translation fault Data abort info: ISV = 0, ISS = 0x00000006 CM = 0, WnR = 0 [dfff800000000002] address between user and kernel address ranges Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 25115 Comm: syz-executor.3 Tainted: G B 6.1.62-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : ntfs_iget5+0x12c/0x2bd4 fs/ntfs3/inode.c:525 lr : ntfs_iget5+0x120/0x2bd4 fs/ntfs3/inode.c:525 sp : ffff80001de475a0 x29: ffff80001de477e0 x28: ffff000105cee000 x27: ffff80001258fee0 x26: dfff800000000000 x25: ffff80001de479b0 x24: ffff700003bc8ee8 x23: ffff00013330dad0 x22: 0000000000000002 x21: ffff00012a350190 x20: 0000000000000010 x19: ffff80001de47740 x18: 1fffe000368ac776 x17: ffff80001580d000 x16: ffff80001213551c x15: ffff0001b4563bbc x14: ffff0001b4563bb8 x13: 1fffe000368ac776 x12: 0000000000040000 x11: 000000000002c142 x10: ffff80001e449000 x9 : 0000000000000000 x8 : 0000000000000002 x7 : 1fffe000368ac777 x6 : ffff80000827db78 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff8000081aead0 x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000000000000001 Call trace: ntfs_iget5+0x12c/0x2bd4 fs/ntfs3/inode.c:525 ntfs_fill_super+0x1e38/0x3a08 fs/ntfs3/super.c:1009 get_tree_bdev+0x360/0x54c fs/super.c:1355 ntfs_fs_get_tree+0x28/0x38 fs/ntfs3/super.c:1359 vfs_get_tree+0x90/0x274 fs/super.c:1562 do_new_mount+0x25c/0x8c4 fs/namespace.c:3040 path_mount+0x590/0xe5c fs/namespace.c:3370 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount fs/namespace.c:3568 [inline] __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3568 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Code: 97cb2e49 f9400288 91004114 d343fe88 (38fa6908) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: 97cb2e49 bl 0xffffffffff2cb924 4: f9400288 ldr x8, [x20] 8: 91004114 add x20, x8, #0x10 c: d343fe88 lsr x8, x20, #3 * 10: 38fa6908 ldrsb w8, [x8, x26] <-- trapping instruction