================================================================== BUG: KASAN: slab-use-after-free in __ext4_iget+0x26c/0x3390 fs/ext4/inode.c:4716 Read of size 8 at addr ffff0000dbfeceb0 by task syz-executor.2/21446 CPU: 1 PID: 21446 Comm: syz-executor.2 Not tainted 6.7.0-rc5-syzkaller-g0bcda4cd6851 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:291 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:298 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0x174/0x514 mm/kasan/report.c:475 kasan_report+0xd8/0x138 mm/kasan/report.c:588 __asan_report_load8_noabort+0x20/0x2c mm/kasan/report_generic.c:381 __ext4_iget+0x26c/0x3390 fs/ext4/inode.c:4716 __ext4_fill_super fs/ext4/super.c:5482 [inline] ext4_fill_super+0x44a8/0x5818 fs/ext4/super.c:5712 get_tree_bdev+0x33c/0x4a8 fs/super.c:1598 ext4_get_tree+0x28/0x38 fs/ext4/super.c:5744 vfs_get_tree+0x90/0x288 fs/super.c:1771 do_new_mount+0x25c/0x8c8 fs/namespace.c:3337 path_mount+0x590/0xe04 fs/namespace.c:3664 do_mount fs/namespace.c:3677 [inline] __do_sys_mount fs/namespace.c:3886 [inline] __se_sys_mount fs/namespace.c:3863 [inline] __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3863 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 Allocated by task 10000: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x7c mm/kasan/common.c:52 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:511 __kasan_slab_alloc+0x74/0x8c mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x90/0x498 mm/slab.h:763 slab_alloc_node mm/slub.c:3478 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc_lru+0x194/0x394 mm/slub.c:3509 alloc_inode_sb include/linux/fs.h:2937 [inline] reiserfs_alloc_inode+0x2c/0xc4 fs/reiserfs/super.c:642 alloc_inode fs/inode.c:261 [inline] new_inode_pseudo+0x68/0x1d0 fs/inode.c:1006 new_inode+0x30/0x16c fs/inode.c:1032 reiserfs_mkdir+0x18c/0x77c fs/reiserfs/namei.c:813 xattr_mkdir fs/reiserfs/xattr.c:77 [inline] create_privroot fs/reiserfs/xattr.c:891 [inline] reiserfs_xattr_init+0x2b4/0x638 fs/reiserfs/xattr.c:1007 reiserfs_fill_super+0x1bfc/0x2028 fs/reiserfs/super.c:2175 mount_bdev+0x1e8/0x2b4 fs/super.c:1650 get_super_block+0x44/0x58 fs/reiserfs/super.c:2601 legacy_get_tree+0xd4/0x16c fs/fs_context.c:662 vfs_get_tree+0x90/0x288 fs/super.c:1771 do_new_mount+0x25c/0x8c8 fs/namespace.c:3337 path_mount+0x590/0xe04 fs/namespace.c:3664 do_mount fs/namespace.c:3677 [inline] __do_sys_mount fs/namespace.c:3886 [inline] __se_sys_mount fs/namespace.c:3863 [inline] __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3863 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 Last potentially related work creation: kasan_save_stack+0x40/0x6c mm/kasan/common.c:45 __kasan_record_aux_stack+0xcc/0xe8 mm/kasan/generic.c:492 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:502 __call_rcu_common kernel/rcu/tree.c:2681 [inline] call_rcu+0x104/0xaf4 kernel/rcu/tree.c:2795 destroy_inode fs/inode.c:316 [inline] evict+0x5fc/0x68c fs/inode.c:681 iput_final fs/inode.c:1777 [inline] iput+0x734/0x818 fs/inode.c:1803 reiserfs_mkdir+0x2ec/0x77c xattr_mkdir fs/reiserfs/xattr.c:77 [inline] create_privroot fs/reiserfs/xattr.c:891 [inline] reiserfs_xattr_init+0x2b4/0x638 fs/reiserfs/xattr.c:1007 reiserfs_fill_super+0x1bfc/0x2028 fs/reiserfs/super.c:2175 mount_bdev+0x1e8/0x2b4 fs/super.c:1650 get_super_block+0x44/0x58 fs/reiserfs/super.c:2601 legacy_get_tree+0xd4/0x16c fs/fs_context.c:662 vfs_get_tree+0x90/0x288 fs/super.c:1771 do_new_mount+0x25c/0x8c8 fs/namespace.c:3337 path_mount+0x590/0xe04 fs/namespace.c:3664 do_mount fs/namespace.c:3677 [inline] __do_sys_mount fs/namespace.c:3886 [inline] __se_sys_mount fs/namespace.c:3863 [inline] __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3863 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 The buggy address belongs to the object at ffff0000dbfec8e0 which belongs to the cache reiser_inode_cache of size 1568 The buggy address is located 1488 bytes inside of freed 1568-byte region [ffff0000dbfec8e0, ffff0000dbfecf00) The buggy address belongs to the physical page: page:00000000474c8813 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff0000dbfed620 pfn:0x11bfe8 head:00000000474c8813 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff0000cfd05401 flags: 0x5ffc00000000840(slab|head|node=0|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 05ffc00000000840 ffff0000c46c9dc0 dead000000000122 0000000000000000 raw: ffff0000dbfed620 0000000080130009 00000001ffffffff ffff0000cfd05401 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000dbfecd80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000dbfece00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff0000dbfece80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000dbfecf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000dbfecf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs error (device loop2): __ext4_fill_super:5482: inode #2: comm syz-executor.2: unexpected EA_INODE flag EXT4-fs (loop2): get root inode failed EXT4-fs (loop2): mount failed