================================================================== BUG: KASAN: use-after-free in ext4_xattr_set_entry+0x1b8e/0x3b10 fs/ext4/xattr.c:1734 Read of size 4 at addr ffff888192318ffe by task syz-executor.1/21425 CPU: 1 PID: 21425 Comm: syz-executor.1 Not tainted 5.4.18-syzkaller-00113-g9204f620c2a9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1b0/0x228 lib/dump_stack.c:118 print_address_description+0x96/0x5d0 mm/kasan/report.c:374 __kasan_report+0x14b/0x1c0 mm/kasan/report.c:506 kasan_report+0x26/0x50 mm/kasan/common.c:634 check_memory_region_inline mm/kasan/generic.c:182 [inline] check_memory_region+0x2c6/0x300 mm/kasan/generic.c:192 memmove+0x28/0x60 mm/kasan/common.c:113 ext4_xattr_set_entry+0x1b8e/0x3b10 fs/ext4/xattr.c:1734 ext4_xattr_ibody_set fs/ext4/xattr.c:2236 [inline] ext4_xattr_set_handle+0xf46/0x2160 fs/ext4/xattr.c:2392 ext4_initxattrs+0xa3/0x110 fs/ext4/xattr_security.c:43 security_inode_init_security+0x25c/0x390 security/security.c:996 ext4_init_security+0x34/0x40 fs/ext4/xattr_security.c:57 __ext4_new_inode+0x4871/0x5e50 fs/ext4/ialloc.c:1155 ext4_mkdir+0x41e/0x14c0 fs/ext4/namei.c:2763 vfs_mkdir2+0x43b/0x610 fs/namei.c:3934 do_mkdirat+0x1d7/0x300 fs/namei.c:3963 __do_sys_mkdir fs/namei.c:3979 [inline] __se_sys_mkdir fs/namei.c:3977 [inline] __x64_sys_mkdir+0x60/0x70 fs/namei.c:3977 do_syscall_64+0xc0/0x100 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45a7b7 Code: 1f 40 00 b8 5a 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 7d c2 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 53 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 5d c2 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffc9244c128 EFLAGS: 00000206 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a7b7 RDX: 00007ffc9244c173 RSI: 00000000000001ff RDI: 00007ffc9244c170 RBP: 0000000000719460 R08: 0000000000000000 R09: 0000000000000003 R10: 0000000000000064 R11: 0000000000000206 R12: 0000000000718de8 R13: 00007ffc9244c160 R14: 0000000000000003 R15: 00007ffc9244c170 The buggy address belongs to the page: page:ffffea000648c600 refcount:2 mapcount:0 mapping:ffff8881d97fd4f8 index:0x489 def_blk_aops flags: 0x800000000000203a(referenced|dirty|lru|active|private) raw: 800000000000203a ffffea0006488188 ffffea0006a2a488 ffff8881d97fd4f8 raw: 0000000000000489 ffff8881cf50fbd0 00000002ffffffff ffff8881da940000 page dumped because: kasan: bad access detected page->mem_cgroup:ffff8881da940000 Memory state around the buggy address: ffff888192318f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888192318f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888192319000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888192319080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888192319100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== EXT4-fs error (device sda1): ext4_xattr_set_entry:1603: inode #18048: comm syz-executor.1: corrupted xattr entries