================================================================== BUG: KASAN: use-after-free in ext4_xattr_set_entry+0x3491/0x37b0 fs/ext4/xattr.c:1584 Read of size 4 at addr ffff888067add000 by task syz-executor.2/10005 CPU: 0 PID: 10005 Comm: syz-executor.2 Not tainted 5.8.0-rc2-syzkaller #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+0x18f/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xae/0x436 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530 ext4_xattr_set_entry+0x3491/0x37b0 fs/ext4/xattr.c:1584 ext4_xattr_ibody_set+0x78/0x2b0 fs/ext4/xattr.c:2223 ext4_xattr_set_handle+0x8f9/0x1140 fs/ext4/xattr.c:2379 ext4_initxattrs+0xb5/0x120 fs/ext4/xattr_security.c:43 security_inode_init_security+0x1c4/0x370 security/security.c:1052 __ext4_new_inode+0x43bb/0x5390 fs/ext4/ialloc.c:1175 ext4_symlink+0x4b0/0xe10 fs/ext4/namei.c:3303 vfs_symlink fs/namei.c:3953 [inline] vfs_symlink+0x453/0x6a0 fs/namei.c:3939 do_symlinkat+0x258/0x2c0 fs/namei.c:3980 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:359 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45c8a7 Code: Bad RIP value. RSP: 002b:00007fff1d213f78 EFLAGS: 00000206 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000045c8a7 RDX: 00007fff1d214013 RSI: 00000000004c2674 RDI: 00007fff1d214000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000013 R10: 0000000000000075 R11: 0000000000000206 R12: 0000000000000001 R13: 00007fff1d213fb0 R14: 0000000000000000 R15: 00007fff1d213fc0 The buggy address belongs to the page: page:ffffea00019eb740 refcount:0 mapcount:-128 mapping:0000000000000000 index:0x1 flags: 0xfffe0000000000() raw: 00fffe0000000000 ffffea0001979488 ffffea00019a0408 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffff7f 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888067adcf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888067adcf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888067add000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888067add080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888067add100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================