================================================================== BUG: KASAN: use-after-free in ext4_xattr_set_entry+0x3244/0x3690 fs/ext4/xattr.c:1604 Read of size 4 at addr ffff88808c7bb004 by task syz-executor444/11523 CPU: 1 PID: 11523 Comm: syz-executor444 Not tainted 4.19.155-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+0x1fc/0x2fe lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1c7 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load4_noabort+0x88/0x90 mm/kasan/report.c:432 ext4_xattr_set_entry+0x3244/0x3690 fs/ext4/xattr.c:1604 ext4_xattr_ibody_set+0x81/0x2a0 fs/ext4/xattr.c:2243 ext4_xattr_set_handle+0x5ad/0xfa0 fs/ext4/xattr.c:2399 ext4_xattr_set+0x135/0x2a0 fs/ext4/xattr.c:2511 __vfs_setxattr+0x10e/0x170 fs/xattr.c:149 __vfs_setxattr_noperm+0x11a/0x420 fs/xattr.c:180 __vfs_setxattr_locked+0x176/0x250 fs/xattr.c:238 vfs_setxattr+0xe5/0x270 fs/xattr.c:255 setxattr+0x23d/0x330 fs/xattr.c:520 path_setxattr+0x170/0x190 fs/xattr.c:539 __do_sys_setxattr fs/xattr.c:554 [inline] __se_sys_setxattr fs/xattr.c:550 [inline] __x64_sys_setxattr+0xc0/0x160 fs/xattr.c:550 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x445669 Code: e8 7c e7 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 5b cb fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffdc22f8938 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 0000000000000016 RCX: 0000000000445669 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000020000100 RBP: 0000000001a18c30 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000001ee R13: 00007ffdc22f89b0 R14: 0000000000000000 R15: 0000000000000000 The buggy address belongs to the page: page:ffffea000231eec0 count:0 mapcount:0 mapping:0000000000000000 index:0x1 flags: 0xfff00000000000() raw: 00fff00000000000 ffffea00023a3208 ffffea00022edcc8 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808c7baf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88808c7baf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88808c7bb000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88808c7bb080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88808c7bb100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================