================================================================== BUG: KASAN: slab-out-of-bounds in ext4_xattr_set_entry+0x13e2/0x1ec4 fs/ext4/xattr.c:1746 Write of size 4029 at addr ffffffe00b847940 by task syz-executor.1/6814 CPU: 0 PID: 6814 Comm: syz-executor.1 Not tainted 5.14.0-rc1-syzkaller-00003-g417166ddec02 #0 Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:112 Allocated by task 6590: (stack is not available) Freed by task 3445: (stack is not available) The buggy address belongs to the object at ffffffe00b846000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 2368 bytes to the right of 4096-byte region [ffffffe00b846000, ffffffe00b847000) The buggy address belongs to the page: page:ffffffcf022e9000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8ba40 head:ffffffcf022e9000 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xffe000000010200(slab|head|node=0|zone=0|lastcpupid=0x7ff) raw: 0ffe000000010200 0000000000000100 0000000000000122 ffffffe005602140 raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 11, ts 3646770996700, free_ts 3646266929600 page_owner allocation stack trace missing page_owner free stack trace missing Memory state around the buggy address: ffffffe00b847800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffffffe00b847880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffffffe00b847900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffffffe00b847980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffffffe00b847a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== EXT4-fs error (device vda): ext4_xattr_ibody_find:2180: inode #649: comm syz-executor.1: corrupted in-inode xattr