EXT4-fs (loop2): mounted filesystem without journal. Quota mode: none. ================================================================== BUG: KASAN: use-after-free in ext4_xattr_set_entry+0xfc8/0x15ac fs/ext4/xattr.c:1698 Read of size 12404 at addr ffff0000f6cdf800 by task syz.2.159/5130 CPU: 0 PID: 5130 Comm: syz.2.159 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x88/0x218 mm/kasan/report.c:316 print_report+0x50/0x68 mm/kasan/report.c:420 kasan_report+0xa8/0x100 mm/kasan/report.c:524 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x260/0x2a0 mm/kasan/generic.c:189 memmove+0x48/0x90 mm/kasan/shadow.c:54 ext4_xattr_set_entry+0xfc8/0x15ac fs/ext4/xattr.c:1698 ext4_xattr_block_set+0x1324/0x2810 fs/ext4/xattr.c:1919 ext4_xattr_set_handle+0xa0c/0x102c fs/ext4/xattr.c:2413 ext4_xattr_set+0x1e0/0x2b4 fs/ext4/xattr.c:2515 ext4_xattr_trusted_set+0x4c/0x64 fs/ext4/xattr_trusted.c:38 __vfs_setxattr+0x388/0x3a4 fs/xattr.c:182 __vfs_setxattr_noperm+0x120/0x564 fs/xattr.c:216 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277 vfs_setxattr+0x158/0x2ac fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x228/0x28c fs/xattr.c:617 path_setxattr+0x12c/0x25c fs/xattr.c:636 __do_sys_lsetxattr fs/xattr.c:659 [inline] __se_sys_lsetxattr fs/xattr.c:655 [inline] __arm64_sys_lsetxattr+0xbc/0xd8 fs/xattr.c:655 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 The buggy address belongs to the physical page: page:0000000093d1e6ba refcount:2 mapcount:0 mapping:00000000f1c2eb73 index:0x1c pfn:0x136cdf memcg:ffff0000cea24000 aops:def_blk_aops ino:700002 flags: 0x5ffd6000000205a(referenced|dirty|lru|workingset|private|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffd6000000205a fffffc0003638f08 fffffc0003e06f48 ffff0000c0496010 raw: 000000000000001c ffff0000f65e1910 00000002ffffffff ffff0000cea24000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000f6cdff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000f6cdff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000f6ce0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff0000f6ce0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000f6ce0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== netlink: 24 bytes leftover after parsing attributes in process `syz.2.159'.