================================================================== BUG: KASAN: slab-out-of-bounds in ext4_xattr_set_entry+0x13e2/0x1ed6 fs/ext4/xattr.c:1750 Write of size 4029 at addr ffffffe009e3f440 by task syz-executor.0/3424 CPU: 0 PID: 3424 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 1: (stack is not available) The buggy address belongs to the object at ffffffe009e3f000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1088 bytes inside of 2048-byte region [ffffffe009e3f000, ffffffe009e3f800) The buggy address belongs to the page: page:ffffffcf02280e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8a038 head:ffffffcf02280e00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xffe000000010200(slab|head|node=0|zone=0|lastcpupid=0x7ff) raw: 0ffe000000010200 0000000000000000 0000000000000122 ffffffe005602000 raw: 0000000000000000 0000000000080008 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, ts 26905774600, free_ts 0 page_owner allocation stack trace missing page_owner free stack trace missing Memory state around the buggy address: ffffffe009e3f380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffe009e3f400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffffe009e3f480: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffffffe009e3f500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffffffe009e3f580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================