================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_iget5+0x14e/0x37d0 fs/ntfs3/inode.c:526 Read of size 8 at addr ffff888055a7ff60 by task syz.3.1390/7681 CPU: 1 PID: 7681 Comm: syz.3.1390 Not tainted 6.1.137-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x220 mm/kasan/report.c:427 kasan_report+0x10b/0x140 mm/kasan/report.c:531 ntfs_iget5+0x14e/0x37d0 fs/ntfs3/inode.c:526 ntfs_fill_super+0x2226/0x3f30 fs/ntfs3/super.c:1033 get_tree_bdev+0x3f1/0x610 fs/super.c:1366 vfs_get_tree+0x88/0x270 fs/super.c:1573 do_new_mount+0x24a/0xa40 fs/namespace.c:3057 do_mount fs/namespace.c:3400 [inline] __do_sys_mount fs/namespace.c:3608 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3585 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fa2d7b9010a 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:00007fa2d89d5e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fa2d89d5ef0 RCX: 00007fa2d7b9010a RDX: 000020000001f800 RSI: 000020000001f840 RDI: 00007fa2d89d5eb0 RBP: 000020000001f800 R08: 00007fa2d89d5ef0 R09: 0000000000000010 R10: 0000000000000010 R11: 0000000000000246 R12: 000020000001f840 R13: 00007fa2d89d5eb0 R14: 000000000001f814 R15: 0000200000000040 Allocated by task 7443: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x6b/0x80 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 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+0x11a/0x2e0 mm/slub.c:3429 alloc_inode_sb include/linux/fs.h:3245 [inline] ocfs2_alloc_inode+0x26/0xe0 fs/ocfs2/super.c:549 alloc_inode fs/inode.c:261 [inline] iget5_locked+0x9e/0x260 fs/inode.c:1328 ocfs2_iget+0x235/0x1bc0 fs/ocfs2/inode.c:147 _ocfs2_get_system_file_inode fs/ocfs2/sysfile.c:142 [inline] ocfs2_get_system_file_inode+0x362/0x7b0 fs/ocfs2/sysfile.c:112 ocfs2_init_global_system_inodes+0x316/0x650 fs/ocfs2/super.c:457 ocfs2_initialize_super fs/ocfs2/super.c:2250 [inline] ocfs2_fill_super+0x2a32/0x4d00 fs/ocfs2/super.c:994 mount_bdev+0x287/0x3c0 fs/super.c:1443 legacy_get_tree+0xe6/0x180 fs/fs_context.c:632 vfs_get_tree+0x88/0x270 fs/super.c:1573 do_new_mount+0x24a/0xa40 fs/namespace.c:3057 do_mount fs/namespace.c:3400 [inline] __do_sys_mount fs/namespace.c:3608 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3585 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 call_rcu+0x14b/0x970 kernel/rcu/tree.c:2845 destroy_inode fs/inode.c:316 [inline] evict+0x7da/0x870 fs/inode.c:720 ocfs2_release_system_inodes+0x9b/0x480 fs/ocfs2/super.c:513 ocfs2_mount_volume+0x1329/0x1540 fs/ocfs2/super.c:1839 ocfs2_fill_super+0x3c34/0x4d00 fs/ocfs2/super.c:1082 mount_bdev+0x287/0x3c0 fs/super.c:1443 legacy_get_tree+0xe6/0x180 fs/fs_context.c:632 vfs_get_tree+0x88/0x270 fs/super.c:1573 do_new_mount+0x24a/0xa40 fs/namespace.c:3057 do_mount fs/namespace.c:3400 [inline] __do_sys_mount fs/namespace.c:3608 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3585 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Second to last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 call_rcu+0x14b/0x970 kernel/rcu/tree.c:2845 destroy_inode fs/inode.c:316 [inline] evict+0x7da/0x870 fs/inode.c:720 ocfs2_release_system_inodes+0x2af/0x480 fs/ocfs2/super.c:526 ocfs2_dismount_volume+0x3cf/0x920 fs/ocfs2/super.c:1906 generic_shutdown_super+0x130/0x340 fs/super.c:501 kill_block_super+0x7c/0xe0 fs/super.c:1470 deactivate_locked_super+0x93/0xf0 fs/super.c:332 cleanup_mnt+0x463/0x4f0 fs/namespace.c:1186 task_work_run+0x1ca/0x250 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff888055a7e3c0 which belongs to the cache ocfs2_inode_cache of size 3520 The buggy address is located 3552 bytes to the right of 3520-byte region [ffff888055a7e3c0, ffff888055a7f180) The buggy address belongs to the physical page: page:ffffea0001569e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888055a7b900 pfn:0x55a78 head:ffffea0001569e00 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff88807f4cef81 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea0001c1c800 dead000000000005 ffff88801bf9b280 raw: ffff888055a7b900 0000000080080000 00000001ffffffff ffff88807f4cef81 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 4673, tgid 4672 (syz.1.151), ts 96478277314, free_ts 20078907202 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5606 alloc_slab_page+0x5d/0x160 mm/slub.c:1794 allocate_slab mm/slub.c:1939 [inline] new_slab+0x87/0x2c0 mm/slub.c:1992 ___slab_alloc+0xbc6/0x1220 mm/slub.c:3180 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc_lru+0x1ae/0x2e0 mm/slub.c:3429 alloc_inode_sb include/linux/fs.h:3245 [inline] ocfs2_alloc_inode+0x26/0xe0 fs/ocfs2/super.c:549 alloc_inode fs/inode.c:261 [inline] iget5_locked+0x9e/0x260 fs/inode.c:1328 ocfs2_iget+0x235/0x1bc0 fs/ocfs2/inode.c:147 _ocfs2_get_system_file_inode fs/ocfs2/sysfile.c:142 [inline] ocfs2_get_system_file_inode+0x362/0x7b0 fs/ocfs2/sysfile.c:112 ocfs2_init_local_system_inodes fs/ocfs2/super.c:487 [inline] ocfs2_mount_volume+0x32b/0x1540 fs/ocfs2/super.c:1813 ocfs2_fill_super+0x3c34/0x4d00 fs/ocfs2/super.c:1082 mount_bdev+0x287/0x3c0 fs/super.c:1443 legacy_get_tree+0xe6/0x180 fs/fs_context.c:632 vfs_get_tree+0x88/0x270 fs/super.c:1573 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479 free_contig_range+0x9d/0x150 mm/page_alloc.c:9566 destroy_args+0xef/0x8bf mm/debug_vm_pgtable.c:1031 debug_vm_pgtable+0x32a/0x37e mm/debug_vm_pgtable.c:1354 do_one_initcall+0x214/0x7a0 init/main.c:1298 do_initcall_level+0x137/0x1e4 init/main.c:1371 do_initcalls+0x4b/0x8a init/main.c:1387 kernel_init_freeable+0x3fa/0x5ac init/main.c:1626 kernel_init+0x19/0x1b0 init/main.c:1514 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Memory state around the buggy address: ffff888055a7fe00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888055a7fe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888055a7ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888055a7ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888055a80000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================