EXT4-fs error (device sda1): ext4_expand_extra_isize_ea:2726: inode #17610: comm syz-executor2: corrupted in-inode xattr EXT4-fs warning (device sda1): ext4_expand_extra_isize_ea:2788: Unable to expand inode 17610. Delete some EAs or run e2fsck. EXT4-fs error (device sda1): ext4_expand_extra_isize_ea:2726: inode #17611: comm syz-executor2: corrupted in-inode xattr ================================================================== BUG: KASAN: use-after-free in memset include/linux/string.h:329 [inline] BUG: KASAN: use-after-free in __ext4_expand_extra_isize.isra.13+0x108/0x1b0 fs/ext4/inode.c:5780 Write of size 65505 at addr ffff8801ac7b74a0 by task syz-executor2/30023 CPU: 0 PID: 30023 Comm: syz-executor2 Not tainted 4.14.78+ #28 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xb9/0x11b lib/dump_stack.c:53 print_address_description+0x60/0x22b mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report.cold.6+0x11b/0x2dd mm/kasan/report.c:409 memset+0x1f/0x40 mm/kasan/kasan.c:285 memset include/linux/string.h:329 [inline] __ext4_expand_extra_isize.isra.13+0x108/0x1b0 fs/ext4/inode.c:5780 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5832 [inline] ext4_mark_inode_dirty+0x46c/0x7e0 fs/ext4/inode.c:5908 add_dirent_to_buf+0x38a/0x640 fs/ext4/namei.c:1889 ext4_add_entry+0x519/0x990 fs/ext4/namei.c:2082 ext4_add_nondir+0x22/0x80 fs/ext4/namei.c:2411 ext4_symlink+0x51e/0xaf0 fs/ext4/namei.c:3161 vfs_symlink2+0x321/0x550 fs/namei.c:4161 SYSC_symlinkat fs/namei.c:4194 [inline] SyS_symlinkat+0x110/0x1e0 fs/namei.c:4174 do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x457297 RSP: 002b:00007ffd7bad7938 EFLAGS: 00000202 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000457297 RDX: 00007ffd7bad79b3 RSI: 00000000004bcf9a RDI: 00007ffd7bad79a0 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000013 R10: 0000000000000075 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000001 R14: 0000000000000009 R15: 0000000000000002 The buggy address belongs to the page: page:ffffea0006b1edc0 count:2 mapcount:0 mapping:ffff8801da416b10 index:0x42b flags: 0x4000000000001074(referenced|dirty|lru|active|private) raw: 4000000000001074 ffff8801da416b10 000000000000042b 00000002ffffffff raw: ffffea0006b1abe0 ffffea0006b1de60 ffff8801c243d738 ffff8801da81aa80 page dumped because: kasan: bad access detected page->mem_cgroup:ffff8801da81aa80 Memory state around the buggy address: ffff8801ac7b7f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801ac7b7f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8801ac7b8000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8801ac7b8080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8801ac7b8100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================