loop3: detected capacity change from 0 to 4096 ntfs3: loop3: Different NTFS sector size (2048) and media sector size (512). ================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_iget5+0x160/0x3b50 fs/ntfs3/inode.c:531 Read of size 8 at addr ffff88807b4e7f60 by task syz-executor.3/15033 CPU: 1 PID: 15033 Comm: syz-executor.3 Not tainted 6.5.0-rc7-syzkaller-00004-gf7757129e3de #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/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:364 [inline] print_report+0x163/0x540 mm/kasan/report.c:475 kasan_report+0x175/0x1b0 mm/kasan/report.c:588 ntfs_iget5+0x160/0x3b50 fs/ntfs3/inode.c:531 ntfs_fill_super+0x2cb7/0x4cb0 fs/ntfs3/super.c:1215 get_tree_bdev+0x468/0x6c0 fs/super.c:1318 vfs_get_tree+0x8c/0x270 fs/super.c:1519 do_new_mount+0x28f/0xae0 fs/namespace.c:3335 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3861 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:0x7ff87627e1ea Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff876ff9ee8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ff876ff9f80 RCX: 00007ff87627e1ea RDX: 000000002001f380 RSI: 0000000020000040 RDI: 00007ff876ff9f40 RBP: 000000002001f380 R08: 00007ff876ff9f80 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000040 R13: 00007ff876ff9f40 R14: 000000000001f3d7 R15: 0000000020000100 Allocated by task 18591: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:196 [inline] __do_kmalloc_node mm/slab_common.c:985 [inline] __kmalloc+0xb9/0x230 mm/slab_common.c:998 kmalloc include/linux/slab.h:586 [inline] __d_alloc+0xb8/0x710 fs/dcache.c:1786 d_alloc+0x4c/0x1d0 fs/dcache.c:1849 lookup_one_qstr_excl+0xce/0x250 fs/namei.c:1601 filename_create+0x297/0x530 fs/namei.c:3887 do_symlinkat+0xfa/0x610 fs/namei.c:4496 __do_sys_symlink fs/namei.c:4524 [inline] __se_sys_symlink fs/namei.c:4522 [inline] __x64_sys_symlink+0x7e/0x90 fs/namei.c:4522 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 The buggy address belongs to the object at ffff88807b4e6000 which belongs to the cache kmalloc-rcl-4k of size 4096 The buggy address is located 3936 bytes to the right of allocated 4096-byte region [ffff88807b4e6000, ffff88807b4e7000) The buggy address belongs to the physical page: page:ffffea0001ed3800 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88807b4e6000 pfn:0x7b4e0 head:ffffea0001ed3800 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff888064705f41 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000010200 ffff88801284c280 ffffea0000e28410 ffff888012843408 raw: ffff88807b4e6000 0000000000040000 00000001ffffffff ffff888064705f41 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d20d0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 18591, tgid 18589 (syz-executor.0), ts 2358601011953, free_ts 2353299757626 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1570 prep_new_page mm/page_alloc.c:1577 [inline] get_page_from_freelist+0x31e8/0x3370 mm/page_alloc.c:3221 __alloc_pages+0x255/0x670 mm/page_alloc.c:4477 alloc_slab_page+0x6a/0x160 mm/slub.c:1862 allocate_slab mm/slub.c:2009 [inline] new_slab+0x84/0x2f0 mm/slub.c:2062 ___slab_alloc+0xade/0x1100 mm/slub.c:3215 __slab_alloc mm/slub.c:3314 [inline] __slab_alloc_node mm/slub.c:3367 [inline] slab_alloc_node mm/slub.c:3460 [inline] __kmem_cache_alloc_node+0x1af/0x270 mm/slub.c:3509 __do_kmalloc_node mm/slab_common.c:984 [inline] __kmalloc+0xa8/0x230 mm/slab_common.c:998 kmalloc include/linux/slab.h:586 [inline] __d_alloc+0xb8/0x710 fs/dcache.c:1786 d_alloc+0x4c/0x1d0 fs/dcache.c:1849 lookup_one_qstr_excl+0xce/0x250 fs/namei.c:1601 filename_create+0x297/0x530 fs/namei.c:3887 do_symlinkat+0xfa/0x610 fs/namei.c:4496 __do_sys_symlink fs/namei.c:4524 [inline] __se_sys_symlink fs/namei.c:4522 [inline] __x64_sys_symlink+0x7e/0x90 fs/namei.c:4522 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 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1161 [inline] free_unref_page_prepare+0x903/0xa30 mm/page_alloc.c:2348 free_unref_page+0x37/0x3f0 mm/page_alloc.c:2443 discard_slab mm/slub.c:2108 [inline] __unfreeze_partials+0x1dc/0x220 mm/slub.c:2647 put_cpu_partial+0x116/0x180 mm/slub.c:2723 __slab_free+0x2b6/0x390 mm/slub.c:3671 qlist_free_all+0x22/0x60 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x14b/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x23/0x70 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook+0x6c/0x3b0 mm/slab.h:762 slab_alloc_node mm/slub.c:3470 [inline] slab_alloc mm/slub.c:3478 [inline] __kmem_cache_alloc_lru mm/slub.c:3485 [inline] kmem_cache_alloc+0x123/0x300 mm/slub.c:3494 getname_flags+0xbc/0x4e0 fs/namei.c:140 user_path_at_empty+0x2e/0x180 fs/namei.c:2906 user_path_at include/linux/namei.h:57 [inline] ksys_umount fs/namespace.c:1914 [inline] __do_sys_umount fs/namespace.c:1922 [inline] __se_sys_umount fs/namespace.c:1920 [inline] __x64_sys_umount+0xf4/0x170 fs/namespace.c:1920 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: ffff88807b4e7e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807b4e7e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88807b4e7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88807b4e7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807b4e8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================