================================================================== BUG: KASAN: slab-out-of-bounds in ext4_xattr_set_entry+0x13e2/0x1ed6 fs/ext4/xattr.c:1750 Write of size 4117 at addr ffffffe00daedee8 by task syz-executor.1/7616 CPU: 0 PID: 7616 Comm: syz-executor.1 Not tainted 5.15.0-rc1-syzkaller #0 Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:112 Allocated by task 2774: (stack is not available) The buggy address belongs to the object at ffffffe00daede80 which belongs to the cache kernfs_node_cache of size 168 The buggy address is located 104 bytes inside of 168-byte region [ffffffe00daede80, ffffffe00daedf28) The buggy address belongs to the page: page:ffffffcf02373b40 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8dced flags: 0xffe000000000200(slab|node=0|zone=0|lastcpupid=0x7ff) raw: 0ffe000000000200 0000000000000100 0000000000000122 ffffffe0056d7280 raw: 0000000000000000 0000000000110011 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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 2260, ts 1078522194400, free_ts 1078515237900 page_owner allocation stack trace missing page_owner free stack trace missing Memory state around the buggy address: ffffffe00daede00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffffffe00daede80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffffe00daedf00: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc ^ ffffffe00daedf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffffffe00daee000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================