================================================================== EXT4-fs error (device sda1): ext4_xattr_set_entry:1607: inode #16519: comm syz-executor.4: corrupted xattr entries BUG: KASAN: use-after-free in memset include/linux/string.h:333 [inline] BUG: KASAN: use-after-free in __ext4_expand_extra_isize+0x175/0x250 fs/ext4/inode.c:5916 Write of size 994 at addr ffff888072862fa0 by task syz-executor.3/7433 CPU: 0 PID: 7433 Comm: syz-executor.3 Not tainted 4.19.80 #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+0x172/0x1f0 lib/dump_stack.c:113 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold+0x8c/0x2ba mm/kasan/report.c:396 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x123/0x190 mm/kasan/kasan.c:267 memset+0x24/0x40 mm/kasan/kasan.c:285 memset include/linux/string.h:333 [inline] __ext4_expand_extra_isize+0x175/0x250 fs/ext4/inode.c:5916 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5968 [inline] ext4_mark_inode_dirty+0x6f0/0x940 fs/ext4/inode.c:6044 ext4_unlink fs/ext4/namei.c:3074 [inline] ext4_unlink+0xd21/0xff0 fs/ext4/namei.c:3014 vfs_unlink+0x2d3/0x500 fs/namei.c:3999 do_unlinkat+0x3f7/0x6d0 fs/namei.c:4062 __do_sys_unlink fs/namei.c:4109 [inline] __se_sys_unlink fs/namei.c:4107 [inline] __x64_sys_unlink+0x42/0x50 fs/namei.c:4107 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4597a7 Code: 00 66 90 b8 58 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 9d ba fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 7d ba fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffe360fa4f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004597a7 RDX: 00007ffe360fa510 RSI: 00007ffe360fa510 RDI: 00007ffe360fa5a0 RBP: 000000000000002e R08: 0000000000000000 R09: 000000000000000b R10: 0000000000000006 R11: 0000000000000246 R12: 00007ffe360fb630 R13: 0000000002849940 R14: 0000000000000000 R15: 00007ffe360fb630 The buggy address belongs to the page: page:ffffea0001ca1880 count:2 mapcount:0 mapping:ffff8880a6f6eb18 index:0x42e flags: 0x1fffc0000001074(referenced|dirty|lru|active|private) raw: 01fffc0000001074 ffffea0001551f48 ffff8880829db230 ffff8880a6f6eb18 raw: 000000000000042e ffff888094997348 00000002ffffffff ffff88808b0cc000 page dumped because: kasan: bad access detected page->mem_cgroup:ffff88808b0cc000 Memory state around the buggy address: ffff888072862f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888072862f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888072863000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888072863080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888072863100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================