================================================================== BUG: KASAN: use-after-free in ext4_xattr_set_entry+0x33f0/0x39e0 fs/ext4/xattr.c:1600 Read of size 4 at addr ffff88803e170081 by task syz-executor.2/29073 CPU: 0 PID: 29073 Comm: syz-executor.2 Not tainted 5.4.0-rc6 #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+0x1d8/0x2f8 lib/dump_stack.c:113 print_address_description+0x75/0x5c0 mm/kasan/report.c:374 __kasan_report+0x14b/0x1c0 mm/kasan/report.c:506 kasan_report+0x26/0x50 mm/kasan/common.c:634 __asan_report_load4_noabort+0x14/0x20 mm/kasan/generic_report.c:131 ext4_xattr_set_entry+0x33f0/0x39e0 fs/ext4/xattr.c:1600 ext4_xattr_ibody_set fs/ext4/xattr.c:2236 [inline] ext4_xattr_set_handle+0xd9d/0x1eb0 fs/ext4/xattr.c:2392 ext4_initxattrs+0xb8/0x110 fs/ext4/xattr_security.c:43 security_inode_init_security+0x237/0x310 security/security.c:996 ext4_init_security+0x34/0x40 fs/ext4/xattr_security.c:57 __ext4_new_inode+0x446c/0x5650 fs/ext4/ialloc.c:1160 ext4_symlink+0x536/0xed0 fs/ext4/namei.c:3262 vfs_symlink+0x36f/0x4f0 fs/namei.c:4119 do_symlinkat+0x187/0x3f0 fs/namei.c:4146 __do_sys_symlink fs/namei.c:4165 [inline] __se_sys_symlink fs/namei.c:4163 [inline] __x64_sys_symlink+0x60/0x70 fs/namei.c:4163 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459f47 Code: 0f 1f 00 b8 5c 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 6d b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 58 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 4d b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fff9b66f1a8 EFLAGS: 00000202 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000459f47 RDX: 00007fff9b66f243 RSI: 00000000004bfc7e RDI: 00007fff9b66f230 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000013 R10: 0000000000000075 R11: 0000000000000202 R12: 0000000000000001 R13: 00007fff9b66f1e0 R14: 0000000000000000 R15: 00007fff9b66f1f0 The buggy address belongs to the page: page:ffffea0000f85c00 refcount:0 mapcount:-128 mapping:0000000000000000 index:0x1 flags: 0x1fffc0000000000() raw: 01fffc0000000000 ffffea0000f84a08 ffffea0000f85d88 0000000000000000 raw: 0000000000000001 0000000000000001 00000000ffffff7f 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88803e16ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88803e170000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88803e170080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88803e170100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88803e170180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================