loop0: detected capacity change from 0 to 4096 ntfs3: loop0: Different NTFS' sector size (1024) and media sector size (512) ================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_iget5+0x14a/0x3670 fs/ntfs3/inode.c:526 Read of size 8 at addr ffff88806089ff60 by task syz.0.3648/12584 CPU: 0 PID: 12584 Comm: syz.0.3648 Not tainted 5.15.188-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 ntfs_iget5+0x14a/0x3670 fs/ntfs3/inode.c:526 ntfs_fill_super+0x2068/0x3c10 fs/ntfs3/super.c:1004 get_tree_bdev+0x3f1/0x610 fs/super.c:1325 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x24a/0xa40 fs/namespace.c:3014 do_mount fs/namespace.c:3357 [inline] __do_sys_mount fs/namespace.c:3565 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3542 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f2d698390ca Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2d6769ee68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f2d6769eef0 RCX: 00007f2d698390ca RDX: 000020000001f800 RSI: 000020000001f840 RDI: 00007f2d6769eeb0 RBP: 000020000001f800 R08: 00007f2d6769eef0 R09: 0000000000000091 R10: 0000000000000091 R11: 0000000000000246 R12: 000020000001f840 R13: 00007f2d6769eeb0 R14: 000000000001f838 R15: 0000200000000040 Allocated by task 0: (stack is not available) The buggy address belongs to the object at ffff88806089f350 which belongs to the cache udf_inode_cache of size 1512 The buggy address is located 1576 bytes to the right of 1512-byte region [ffff88806089f350, ffff88806089f938) The buggy address belongs to the page: page:ffffea0001822600 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88806089a008 pfn:0x60898 head:ffffea0001822600 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff8880221a9f01 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff88801db04dc0 raw: ffff88806089a008 000000008013000d 00000001ffffffff ffff8880221a9f01 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 5909, ts 132537671350, free_ts 72992064612 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5474 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1975 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x195/0x290 mm/slub.c:3233 udf_alloc_inode+0x1d/0x170 fs/udf/super.c:146 alloc_inode fs/inode.c:261 [inline] iget_locked+0x191/0x820 fs/inode.c:1308 __udf_iget+0xcb/0x3a90 fs/udf/inode.c:1812 udf_iget fs/udf/udfdecl.h:155 [inline] udf_fill_super+0x11e0/0x18f0 fs/udf/super.c:2312 mount_bdev+0x287/0x3c0 fs/super.c:1400 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x24a/0xa40 fs/namespace.c:3014 do_mount fs/namespace.c:3357 [inline] __do_sys_mount fs/namespace.c:3565 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3542 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page+0x94/0x280 mm/page_alloc.c:3396 free_slab mm/slub.c:2015 [inline] discard_slab mm/slub.c:2021 [inline] __unfreeze_partials+0x1a5/0x200 mm/slub.c:2507 put_cpu_partial+0x12d/0x190 mm/slub.c:2587 qlist_free_all+0x35/0x90 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x150/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xd0 mm/kasan/common.c:444 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] __kmalloc+0x127/0x330 mm/slub.c:4403 kmalloc include/linux/slab.h:609 [inline] inotify_handle_inode_event+0x17c/0x4e0 fs/notify/inotify/inotify_fsnotify.c:96 fsnotify_handle_inode_event fs/notify/fsnotify.c:275 [inline] fsnotify_handle_event fs/notify/fsnotify.c:330 [inline] send_to_group fs/notify/fsnotify.c:378 [inline] fsnotify+0x18dd/0x1ca0 fs/notify/fsnotify.c:584 __fsnotify_parent+0x4a1/0x6e0 fs/notify/fsnotify.c:241 fsnotify_parent include/linux/fsnotify.h:77 [inline] fsnotify_file include/linux/fsnotify.h:105 [inline] fsnotify_close include/linux/fsnotify.h:347 [inline] __fput+0x71a/0x930 fs/file_table.c:297 task_work_run+0x125/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214 Memory state around the buggy address: ffff88806089fe00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806089fe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88806089ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88806089ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880608a0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================