================================================================== BUG: KASAN: use-after-free in ext4_xattr_set_entry+0x172/0x1ed6 fs/ext4/xattr.c:1593 Read of size 4 at addr ffffffe00d5fc004 by task syz-executor.0/4661 CPU: 0 PID: 4661 Comm: syz-executor.0 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 3825: (stack is not available) Freed by task 3825: (stack is not available) The buggy address belongs to the object at ffffffe00d5fc000 which belongs to the cache skbuff_head_cache of size 232 The buggy address is located 4 bytes inside of 232-byte region [ffffffe00d5fc000, ffffffe00d5fc0e8) The buggy address belongs to the page: page:ffffffcf0235ff00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8d7fc flags: 0xffe000000000200(slab|node=0|zone=0|lastcpupid=0x7ff) raw: 0ffe000000000200 0000000000000000 0000000300000001 ffffffe00570b640 raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 2843, ts 751032630500, free_ts 750130295200 page_owner allocation stack trace missing page_owner free stack trace missing Memory state around the buggy address: ffffffe00d5fbf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffe00d5fbf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffffe00d5fc000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffffffe00d5fc080: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ffffffe00d5fc100: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ================================================================== EXT4-fs error (device vda): ext4_xattr_set_entry:1596: inode #640: comm syz-executor.0: corrupted xattr entries