================================================================== BUG: KASAN: use-after-free in memset include/linux/string.h:344 [inline] BUG: KASAN: use-after-free in __ext4_expand_extra_isize+0x16c/0x240 fs/ext4/inode.c:5917 Write of size 63478 at addr ffff88807216c3a0 by task syz-executor.1/9086 CPU: 1 PID: 9086 Comm: syz-executor.1 Not tainted 5.2.0-rc5+ #38 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:188 __kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317 kasan_report+0x12/0x20 mm/kasan/common.c:614 check_memory_region_inline mm/kasan/generic.c:185 [inline] check_memory_region+0x123/0x190 mm/kasan/generic.c:191 memset+0x24/0x40 mm/kasan/common.c:107 memset include/linux/string.h:344 [inline] __ext4_expand_extra_isize+0x16c/0x240 fs/ext4/inode.c:5917 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5969 [inline] ext4_mark_inode_dirty+0x6e7/0x940 fs/ext4/inode.c:6045 ext4_unlink fs/ext4/namei.c:3150 [inline] ext4_unlink+0xd18/0x1050 fs/ext4/namei.c:3090 vfs_unlink+0x2d3/0x560 fs/namei.c:3998 do_unlinkat+0x3f7/0x6d0 fs/namei.c:4061 __do_sys_unlink fs/namei.c:4108 [inline] __se_sys_unlink fs/namei.c:4106 [inline] __x64_sys_unlink+0x42/0x50 fs/namei.c:4106 do_syscall_64+0xfd/0x680 arch/x86/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459017 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:00007fff0d4f7b98 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000459017 RDX: 00007fff0d4f7bb0 RSI: 00007fff0d4f7bb0 RDI: 00007fff0d4f7c40 RBP: 0000000000002243 R08: 0000000000000000 R09: 000000000000000d R10: 0000000000000006 R11: 0000000000000246 R12: 00007fff0d4f8cd0 R13: 000055555584e940 R14: 0000000000000000 R15: 00007fff0d4f8cd0 The buggy address belongs to the page: page:ffffea0001c85b00 refcount:2 mapcount:0 mapping:ffff88821a1e54d8 index:0x42f def_blk_aops flags: 0x1fffc000000203a(referenced|dirty|lru|active|private) raw: 01fffc000000203a ffffea0001d91e08 ffffea0001f4ba08 ffff88821a1e54d8 raw: 000000000000042f ffff8880a315aa80 00000002ffffffff ffff88805e462cc0 page dumped because: kasan: bad access detected page->mem_cgroup:ffff88805e462cc0 Memory state around the buggy address: ffff88807216ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88807216ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888072170000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888072170080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888072170100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================