EXT4-fs (sda1): re-mounted. Opts: debug_want_extra_isize=0x0000000000100000, ================================================================== BUG: KASAN: use-after-free in memset include/linux/string.h:337 [inline] BUG: KASAN: use-after-free in __ext4_expand_extra_isize+0x16f/0x240 fs/ext4/inode.c:5897 Write of size 1048531 at addr ffff8881b0412aad by task syz-executor4/6181 CPU: 0 PID: 6181 Comm: syz-executor4 Not tainted 4.20.0-rc4+ #136 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+0x244/0x39d lib/dump_stack.c:113 print_address_description.cold.7+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.8+0x242/0x309 mm/kasan/report.c:412 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x13e/0x1b0 mm/kasan/kasan.c:267 memset+0x23/0x40 mm/kasan/kasan.c:285 memset include/linux/string.h:337 [inline] __ext4_expand_extra_isize+0x16f/0x240 fs/ext4/inode.c:5897 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5949 [inline] ext4_mark_inode_dirty+0x8f9/0xb20 fs/ext4/inode.c:6025 ext4_evict_inode+0x9b4/0x1ad0 fs/ext4/inode.c:282 evict+0x4b9/0x980 fs/inode.c:558 iput_final fs/inode.c:1550 [inline] iput+0x679/0xa90 fs/inode.c:1576 do_unlinkat+0x733/0xa30 fs/namei.c:4069 __do_sys_unlink fs/namei.c:4110 [inline] __se_sys_unlink fs/namei.c:4108 [inline] __x64_sys_unlink+0x42/0x50 fs/namei.c:4108 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4572b7 Code: 00 66 90 b8 58 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 9d b6 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 b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fff8899d908 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004572b7 RDX: 00007fff8899d920 RSI: 00007fff8899d920 RDI: 00007fff8899d9b0 RBP: 000000000000053d R08: 0000000000000000 R09: 0000000000000010 R10: 000000000000000a R11: 0000000000000246 R12: 00007fff8899ea40 R13: 000000000298d940 R14: 0000000000000000 R15: 0000000000000004 The buggy address belongs to the page: page:ffffea0006c10480 count:2 mapcount:0 mapping:ffff8881cbcdf658 index:0x47f flags: 0x2fffc000000203a(referenced|dirty|lru|active|private) raw: 02fffc000000203a ffffea0006b9ae48 ffffea000684a908 ffff8881cbcdf658 raw: 000000000000047f ffff8881b6255930 00000002ffffffff ffff888181e3e940 page dumped because: kasan: bad access detected page->mem_cgroup:ffff888181e3e940 Memory state around the buggy address: ffff8881b0413f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881b0413f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881b0414000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881b0414080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881b0414100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================