EXT4-fs error (device sda1): ext4_xattr_set_entry:1605: inode #16566: comm syz-executor.5: corrupted xattr entries ================================================================== BUG: KASAN: use-after-free in memset include/linux/string.h:332 [inline] BUG: KASAN: use-after-free in __ext4_expand_extra_isize+0x14f/0x220 fs/ext4/inode.c:5754 Write of size 16352 at addr ffff88807b334aa0 by task syz-executor.1/6833 CPU: 0 PID: 6833 Comm: syz-executor.1 Not tainted 4.14.142 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x138/0x197 lib/dump_stack.c:53 print_address_description.cold+0x7c/0x1dc mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2af mm/kasan/report.c:393 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:332 [inline] __ext4_expand_extra_isize+0x14f/0x220 fs/ext4/inode.c:5754 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5806 [inline] ext4_mark_inode_dirty+0x664/0x860 fs/ext4/inode.c:5882 ext4_unlink fs/ext4/namei.c:3083 [inline] ext4_unlink+0xae0/0xe90 fs/ext4/namei.c:3023 vfs_unlink+0x281/0x480 fs/namei.c:4024 do_unlinkat+0x33d/0x600 fs/namei.c:4089 SYSC_unlink fs/namei.c:4136 [inline] SyS_unlink+0x1b/0x20 fs/namei.c:4134 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x459637 RSP: 002b:00007fffc11f8d38 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000459637 RDX: 00007fffc11f8d50 RSI: 00007fffc11f8d50 RDI: 00007fffc11f8de0 RBP: 000000000000107d R08: 0000000000000000 R09: 000000000000000d R10: 0000000000000006 R11: 0000000000000246 R12: 00007fffc11f9e70 R13: 0000000000bc5940 R14: 0000000000000000 R15: 00007fffc11f9e70 The buggy address belongs to the page: page:ffffea0001eccd00 count:2 mapcount:0 mapping:ffff88821841fae0 index:0x45c flags: 0x1fffc0000001074(referenced|dirty|lru|active|private) raw: 01fffc0000001074 ffff88821841fae0 000000000000045c 00000002ffffffff raw: ffffea0001c8c020 ffffea0001c56220 ffff88808d600c78 ffff88821b7321c0 page dumped because: kasan: bad access detected page->mem_cgroup:ffff88821b7321c0 Memory state around the buggy address: ffff88807b337f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88807b337f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88807b338000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88807b338080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88807b338100: 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 #16505: comm syz-executor.4: corrupted xattr entries