EXT4-fs (sda1): re-mounted. Opts: debug_want_extra_isize=0x0000000000000e81, ================================================================== 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 3713 at addr ffff8881b322f380 by task syz-executor0/6247 CPU: 0 PID: 6247 Comm: syz-executor0 Not tainted 4.20.0-rc6+ #151 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_dirty_inode+0x97/0xc0 fs/ext4/inode.c:6059 __mark_inode_dirty+0x7c3/0x1510 fs/fs-writeback.c:2122 generic_update_time+0x26a/0x450 fs/inode.c:1654 update_time fs/inode.c:1670 [inline] touch_atime+0x29c/0x320 fs/inode.c:1741 file_accessed include/linux/fs.h:2156 [inline] iterate_dir+0x370/0x5d0 fs/readdir.c:56 __do_sys_getdents fs/readdir.c:231 [inline] __se_sys_getdents fs/readdir.c:212 [inline] __x64_sys_getdents+0x29f/0x510 fs/readdir.c:212 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455a5b Code: 02 74 b6 31 f6 eb b9 0f 1f 84 00 00 00 00 00 41 57 41 56 48 63 ff 41 55 41 54 b8 4e 00 00 00 55 53 48 89 f3 48 83 ec 08 0f 05 <48> 3d 00 f0 ff ff 77 55 4c 8d 24 06 49 89 c5 4c 39 e6 73 33 90 0f RSP: 002b:00007ffd8adbfd00 EFLAGS: 00000206 ORIG_RAX: 000000000000004e RAX: ffffffffffffffda RBX: 0000000000c5c970 RCX: 0000000000455a5b RDX: 0000000000008000 RSI: 0000000000c5c970 RDI: 0000000000000003 RBP: 0000000000c5c970 R08: 0000000000000001 R09: 0000000000c5b940 R10: 0000000000000000 R11: 0000000000000206 R12: ffffffffffffffd4 R13: 0000000000000016 R14: 0000000000000000 R15: 0000000000000000 The buggy address belongs to the page: page:ffffea0006cc8bc0 count:2 mapcount:0 mapping:ffff8881cc0cf658 index:0x42b flags: 0x2fffc000000203a(referenced|dirty|lru|active|private) raw: 02fffc000000203a ffffea0006bb6048 ffffea00065822c8 ffff8881cc0cf658 raw: 000000000000042b ffff8881a4986888 00000002ffffffff ffff8881c6afacc0 page dumped because: kasan: bad access detected page->mem_cgroup:ffff8881c6afacc0 Memory state around the buggy address: ffff8881b322ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881b322ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881b3230000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881b3230080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881b3230100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== EXT4-fs error (device sda1): ext4_xattr_set_entry:1605: inode #16486: comm syz-executor5: corrupted xattr entries