netlink: 'syz-executor4': attribute type 8 has an invalid length. netlink: 9 bytes leftover after parsing attributes in process `syz-executor4'. netlink: 9 bytes leftover after parsing attributes in process `syz-executor4'. ================================================================== 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 2533 at addr ffff8881857cffa0 by task syz-executor2/8063 CPU: 0 PID: 8063 Comm: syz-executor2 Not tainted 4.20.0-rc2+ #111 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_evict_inode+0x9b4/0x1ad0 fs/ext4/inode.c:282 evict+0x4b9/0x980 fs/inode.c:558 iput_final fs/inode.c:1547 [inline] iput+0x679/0xa90 fs/inode.c:1573 dentry_unlink_inode+0x461/0x5e0 fs/dcache.c:360 __dentry_kill+0x44c/0x7a0 fs/dcache.c:552 dentry_kill+0xc9/0x680 fs/dcache.c:671 dput.part.25+0x660/0x860 fs/dcache.c:832 dput+0x15/0x20 fs/dcache.c:814 path_put+0x31/0x70 fs/namei.c:484 free_fs_struct+0x22/0x60 fs/fs_struct.c:90 exit_fs+0xf3/0x130 fs/fs_struct.c:107 do_exit+0xf52/0x26d0 kernel/exit.c:863 do_group_exit+0x177/0x440 kernel/exit.c:970 get_signal+0x8b0/0x1980 kernel/signal.c:2517 do_signal+0x9c/0x21c0 arch/x86/kernel/signal.c:816 exit_to_usermode_loop+0x2e5/0x380 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_64+0x6be/0x820 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457569 Code: fd b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fe6b856acf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 000000000072bf08 RCX: 0000000000457569 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000072bf08 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000072bf0c R13: 00007ffcc149013f R14: 00007fe6b856b9c0 R15: 0000000000000000 The buggy address belongs to the page: page:ffffea000615f3c0 count:2 mapcount:0 mapping:ffff8881cc4fac58 index:0x42a flags: 0x2fffc000000203a(referenced|dirty|lru|active|private) raw: 02fffc000000203a ffffea0006011148 ffffea0005dd9b08 ffff8881cc4fac58 raw: 000000000000042a ffff8881bfb879d8 00000002ffffffff ffff888181db4b80 page dumped because: kasan: bad access detected page->mem_cgroup:ffff888181db4b80 Memory state around the buggy address: ffff8881857cff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881857cff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881857d0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881857d0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881857d0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================