================================================================== BUG: KASAN: use-after-free in ext4_xattr_set_entry+0x172/0x1ed6 fs/ext4/xattr.c:1593 Read of size 4 at addr ffffffe00d718004 by task syz-executor.1/11565 CPU: 1 PID: 11565 Comm: syz-executor.1 Not tainted 5.15.0-rc1-syzkaller-00001-g64a19591a293 #0 Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:112 Allocated by task 2009: (stack is not available) The buggy address belongs to the object at ffffffe00d718000 which belongs to the cache files_cache of size 832 The buggy address is located 4 bytes inside of 832-byte region [ffffffe00d718000, ffffffe00d718340) The buggy address belongs to the page: page:ffffffcf02364600 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffffffe00d719e00 pfn:0x8d918 head:ffffffcf02364600 order:2 compound_mapcount:0 compound_pincount:0 memcg:ffffffe006987901 flags: 0xffe000000010200(slab|head|node=0|zone=0|lastcpupid=0x7ff) raw: 0ffe000000010200 ffffffcf02208508 ffffffcf02364b08 ffffffe005636dc0 raw: ffffffe00d719e00 0000000000110007 00000001ffffffff ffffffe006987901 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 142, ts 53252388200, free_ts 53016675900 page_owner allocation stack trace missing page_owner free stack trace missing Memory state around the buggy address: ffffffe00d717f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffe00d717f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffffe00d718000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffffffe00d718080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffffffe00d718100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== EXT4-fs error (device vda): ext4_xattr_set_entry:1596: inode #672: comm syz-executor.1: corrupted xattr entries