EXT4-fs error (device sda1): ext4_xattr_set_entry:1602: inode #16630: comm syz-executor5: corrupted xattr entries ================================================================== 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 8160 at addr ffff88019298b8a0 by task syz-executor4/1851 CPU: 0 PID: 1851 Comm: syz-executor4 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 ext4_dirty_inode+0x71/0xa0 fs/ext4/inode.c:5942 __mark_inode_dirty+0x108/0x1060 fs/fs-writeback.c:2097 generic_update_time+0x1a5/0x270 fs/inode.c:1650 update_time fs/inode.c:1666 [inline] touch_atime+0x210/0x270 fs/inode.c:1738 get_link fs/namei.c:1045 [inline] trailing_symlink+0x26c/0x770 fs/namei.c:2256 path_mountpoint+0x5e7/0x9a0 fs/namei.c:2700 filename_mountpoint.part.19+0x15b/0x310 fs/namei.c:2725 filename_mountpoint fs/namei.c:2722 [inline] user_path_mountpoint_at+0x42/0x70 fs/namei.c:2755 SYSC_umount fs/namespace.c:1742 [inline] SyS_umount+0x131/0xc10 fs/namespace.c:1726 do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x459fb7 RSP: 002b:00007ffd8a0b1a38 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6 RAX: ffffffffffffffda RBX: 000000000007c9d1 RCX: 0000000000459fb7 RDX: 0000000000402e70 RSI: 0000000000000002 RDI: 00007ffd8a0b1ae0 RBP: 0000000000000aa5 R08: 0000000000000000 R09: 000000000000000c R10: 0000000000000006 R11: 0000000000000206 R12: 00007ffd8a0b2b70 R13: 0000000000f03940 R14: 0000000000000000 R15: 0000000000000004 The buggy address belongs to the page: page:ffffea00064a62c0 count:2 mapcount:0 mapping:ffff8801d9aa8950 index:0x43d flags: 0x4000000000001074(referenced|dirty|lru|active|private) raw: 4000000000001074 ffff8801d9aa8950 000000000000043d 00000002ffffffff raw: ffffea00064fb620 ffffea00064db420 ffff8801cf264d20 ffff8801da81aa80 page dumped because: kasan: bad access detected page->mem_cgroup:ffff8801da81aa80 Memory state around the buggy address: ffff88019298bf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88019298bf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88019298c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88019298c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88019298c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================