EXT4-fs error (device sda1): ext4_xattr_set_entry:1602: inode #16736: comm syz-executor0: corrupted xattr entries EXT4-fs error (device sda1): ext4_xattr_set_entry:1602: inode #16483: comm syz-executor5: corrupted xattr entries EXT4-fs error (device sda1): ext4_xattr_set_entry:1602: inode #16486: comm syz-executor0: corrupted xattr entries EXT4-fs error (device sda1): ext4_xattr_set_entry:1602: inode #16486: comm syz-executor0: 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 32768 at addr ffff880197fdea80 by task syz-executor3/1853 CPU: 1 PID: 1853 Comm: syz-executor3 Not tainted 4.14.78+ #27 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:00007fff4eae46f8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6 RAX: ffffffffffffffda RBX: 000000000003c3ff RCX: 0000000000459fb7 RDX: 0000000000402e70 RSI: 0000000000000002 RDI: 00007fff4eae47a0 RBP: 0000000000000526 R08: 0000000000000000 R09: 0000000000000010 R10: 000000000000000a R11: 0000000000000206 R12: 00007fff4eae5830 R13: 000000000127b940 R14: 0000000000000000 R15: 0000000000000003 The buggy address belongs to the page: page:ffffea00065ff780 count:2 mapcount:0 mapping:ffff8801d9aa8950 index:0x456 flags: 0x4000000000001074(referenced|dirty|lru|active|private) raw: 4000000000001074 ffff8801d9aa8950 0000000000000456 00000002ffffffff raw: ffffea0006b224a0 ffffea00065404e0 ffff880199114a80 ffff8801da81aa80 page dumped because: kasan: bad access detected page->mem_cgroup:ffff8801da81aa80 Memory state around the buggy address: ffff880197fdef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff880197fdef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff880197fdf000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff880197fdf080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff880197fdf100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================