EXT4-fs (loop1): Test dummy encryption mode enabled EXT4-fs (loop1): Ignoring removed nomblk_io_submit option ================================================================== BUG: KASAN: use-after-free in check_igot_inode fs/ext4/inode.c:-1 [inline] BUG: KASAN: use-after-free in __ext4_iget+0x2b5/0x3cc0 fs/ext4/inode.c:4673 Read of size 8 at addr ffff88806701bae0 by task syz.1.4913/15332 CPU: 1 PID: 15332 Comm: syz.1.4913 Not tainted 5.15.181-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/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 check_igot_inode fs/ext4/inode.c:-1 [inline] __ext4_iget+0x2b5/0x3cc0 fs/ext4/inode.c:4673 ext4_fill_super+0x77d5/0x9a00 fs/ext4/super.c:4841 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:3013 do_mount fs/namespace.c:3356 [inline] __do_sys_mount fs/namespace.c:3564 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3541 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:0x7efe2d24b10a 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:00007efe2b0b0e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007efe2b0b0ef0 RCX: 00007efe2d24b10a RDX: 0000200000000800 RSI: 0000200000000540 RDI: 00007efe2b0b0eb0 RBP: 0000200000000800 R08: 00007efe2b0b0ef0 R09: 00000000002040d0 R10: 00000000002040d0 R11: 0000000000000246 R12: 0000200000000540 R13: 00007efe2b0b0eb0 R14: 00000000000004c3 R15: 0000200000000580 Allocated by task 8929: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x9c/0xd0 mm/kasan/common.c:467 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] kmem_cache_alloc+0x100/0x290 mm/slub.c:3233 reiserfs_alloc_inode+0x19/0xb0 fs/reiserfs/super.c:642 alloc_inode fs/inode.c:261 [inline] iget5_locked+0x9e/0x250 fs/inode.c:1263 reiserfs_fill_super+0x11c5/0x23e0 fs/reiserfs/super.c:2057 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:3013 do_mount fs/namespace.c:3356 [inline] __do_sys_mount fs/namespace.c:3564 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3541 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 Last potentially related work creation: kasan_save_stack+0x35/0x60 mm/kasan/common.c:38 kasan_record_aux_stack+0xb8/0x100 mm/kasan/generic.c:348 __call_rcu kernel/rcu/tree.c:3007 [inline] call_rcu+0x179/0x920 kernel/rcu/tree.c:3087 destroy_inode fs/inode.c:316 [inline] evict+0x7da/0x870 fs/inode.c:662 reiserfs_fill_super+0x145c/0x23e0 fs/reiserfs/super.c:2082 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:3013 do_mount fs/namespace.c:3356 [inline] __do_sys_mount fs/namespace.c:3564 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3541 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 The buggy address belongs to the object at ffff88806701b500 which belongs to the cache reiser_inode_cache of size 1568 The buggy address is located 1504 bytes inside of 1568-byte region [ffff88806701b500, ffff88806701bb20) The buggy address belongs to the page: page:ffffea00019c0600 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88806701dcc0 pfn:0x67018 head:ffffea00019c0600 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff8880195b6701 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff888146706a00 raw: ffff88806701dcc0 0000000080130005 00000001ffffffff ffff8880195b6701 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 5243, ts 89279620509, free_ts 11927034773 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:5466 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 reiserfs_alloc_inode+0x19/0xb0 fs/reiserfs/super.c:642 alloc_inode fs/inode.c:261 [inline] iget5_locked+0x9e/0x250 fs/inode.c:1263 reiserfs_fill_super+0x11c5/0x23e0 fs/reiserfs/super.c:2057 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:3013 do_mount fs/namespace.c:3356 [inline] __do_sys_mount fs/namespace.c:3564 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3541 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_contig_range+0x96/0xf0 mm/page_alloc.c:9385 destroy_args+0xef/0x8b0 mm/debug_vm_pgtable.c:1018 debug_vm_pgtable+0x318/0x370 mm/debug_vm_pgtable.c:1331 do_one_initcall+0x1ee/0x680 init/main.c:1302 do_initcall_level+0x137/0x1f0 init/main.c:1375 do_initcalls+0x4b/0x90 init/main.c:1391 kernel_init_freeable+0x3ce/0x560 init/main.c:1615 kernel_init+0x19/0x1b0 init/main.c:1506 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Memory state around the buggy address: ffff88806701b980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88806701ba00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88806701ba80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88806701bb00: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ffff88806701bb80: fc fc fc fc 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================