================================================================== BUG: KASAN: slab-use-after-free in generic_test_bit include/asm-generic/bitops/generic-non-atomic.h:128 [inline] BUG: KASAN: slab-use-after-free in ext4_test_inode_flag fs/ext4/ext4.h:1924 [inline] BUG: KASAN: slab-use-after-free in ext4_statfs+0x520/0xb0c fs/ext4/super.c:6724 Read of size 8 at addr ffff000110e28c70 by task syz-executor.5/12259 CPU: 0 PID: 12259 Comm: syz-executor.5 Not tainted 6.3.0-rc5-syzkaller-g9a03cbd79d3a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __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:319 [inline] print_report+0x174/0x514 mm/kasan/report.c:430 kasan_report+0xd4/0x130 mm/kasan/report.c:536 __asan_report_load8_noabort+0x2c/0x38 mm/kasan/report_generic.c:381 generic_test_bit include/asm-generic/bitops/generic-non-atomic.h:128 [inline] ext4_test_inode_flag fs/ext4/ext4.h:1924 [inline] ext4_statfs+0x520/0xb0c fs/ext4/super.c:6724 statfs_by_dentry fs/statfs.c:66 [inline] vfs_statfs+0x140/0x2bc fs/statfs.c:90 ovl_check_namelen fs/overlayfs/super.c:919 [inline] ovl_lower_dir fs/overlayfs/super.c:939 [inline] ovl_get_lowerstack+0x1c4/0x1868 fs/overlayfs/super.c:1742 ovl_fill_super+0x1218/0x2240 fs/overlayfs/super.c:2010 mount_nodev+0x68/0x104 fs/super.c:1426 ovl_mount+0x3c/0x50 fs/overlayfs/super.c:2091 legacy_get_tree+0xd4/0x16c fs/fs_context.c:610 vfs_get_tree+0x90/0x274 fs/super.c:1510 do_new_mount+0x25c/0x8c8 fs/namespace.c:3042 path_mount+0x590/0xe20 fs/namespace.c:3372 do_mount fs/namespace.c:3385 [inline] __do_sys_mount fs/namespace.c:3594 [inline] __se_sys_mount fs/namespace.c:3571 [inline] __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3571 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Allocated by task 10398: 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:510 __kasan_slab_alloc+0x74/0x8c mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook+0x80/0x488 mm/slab.h:769 slab_alloc_node mm/slub.c:3452 [inline] slab_alloc mm/slub.c:3460 [inline] __kmem_cache_alloc_lru mm/slub.c:3467 [inline] kmem_cache_alloc_lru+0x1bc/0x3c4 mm/slub.c:3483 alloc_inode_sb include/linux/fs.h:2686 [inline] reiserfs_alloc_inode+0x2c/0xc4 fs/reiserfs/super.c:642 alloc_inode fs/inode.c:260 [inline] new_inode_pseudo+0x68/0x1d0 fs/inode.c:1019 new_inode+0x38/0x174 fs/inode.c:1047 reiserfs_mkdir+0x18c/0x77c fs/reiserfs/namei.c:815 xattr_mkdir fs/reiserfs/xattr.c:76 [inline] create_privroot fs/reiserfs/xattr.c:882 [inline] reiserfs_xattr_init+0x2b0/0x6bc fs/reiserfs/xattr.c:1005 reiserfs_fill_super+0x1bfc/0x2028 fs/reiserfs/super.c:2175 mount_bdev+0x26c/0x368 fs/super.c:1380 get_super_block+0x44/0x58 fs/reiserfs/super.c:2601 legacy_get_tree+0xd4/0x16c fs/fs_context.c:610 vfs_get_tree+0x90/0x274 fs/super.c:1510 do_new_mount+0x25c/0x8c8 fs/namespace.c:3042 path_mount+0x590/0xe20 fs/namespace.c:3372 do_mount fs/namespace.c:3385 [inline] __do_sys_mount fs/namespace.c:3594 [inline] __se_sys_mount fs/namespace.c:3571 [inline] __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3571 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 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:491 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:501 __call_rcu_common kernel/rcu/tree.c:2622 [inline] call_rcu+0x104/0xaf4 kernel/rcu/tree.c:2736 destroy_inode fs/inode.c:315 [inline] evict+0x5fc/0x68c fs/inode.c:680 iput_final fs/inode.c:1748 [inline] iput+0x734/0x818 fs/inode.c:1774 reiserfs_new_inode+0xc24/0x1724 fs/reiserfs/inode.c:2156 reiserfs_mkdir+0x4ac/0x77c fs/reiserfs/namei.c:845 xattr_mkdir fs/reiserfs/xattr.c:76 [inline] create_privroot fs/reiserfs/xattr.c:882 [inline] reiserfs_xattr_init+0x2b0/0x6bc fs/reiserfs/xattr.c:1005 reiserfs_fill_super+0x1bfc/0x2028 fs/reiserfs/super.c:2175 mount_bdev+0x26c/0x368 fs/super.c:1380 get_super_block+0x44/0x58 fs/reiserfs/super.c:2601 legacy_get_tree+0xd4/0x16c fs/fs_context.c:610 vfs_get_tree+0x90/0x274 fs/super.c:1510 do_new_mount+0x25c/0x8c8 fs/namespace.c:3042 path_mount+0x590/0xe20 fs/namespace.c:3372 do_mount fs/namespace.c:3385 [inline] __do_sys_mount fs/namespace.c:3594 [inline] __se_sys_mount fs/namespace.c:3571 [inline] __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3571 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 The buggy address belongs to the object at ffff000110e286a0 which belongs to the cache reiser_inode_cache of size 1568 The buggy address is located 1488 bytes inside of freed 1568-byte region [ffff000110e286a0, ffff000110e28cc0) The buggy address belongs to the physical page: page:00000000f60a393d refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff000110e286a0 pfn:0x150e28 head:00000000f60a393d order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff0000c1867601 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 ffff0000c1c88000 dead000000000122 0000000000000000 raw: ffff000110e286a0 0000000080130012 00000001ffffffff ffff0000c1867601 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff000110e28b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff000110e28b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff000110e28c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff000110e28c80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff000110e28d00: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ==================================================================