------------[ cut here ]------------ kernel BUG at mm/slab.c:4420! invalid opcode: 0000 [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 4445 Comm: syz-executor3 Not tainted 4.17.0-rc2+ #17 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__check_heap_object+0xa7/0xb5 mm/slab.c:4445 RSP: 0018:ffff8801979979e0 EFLAGS: 00010297 RAX: 00000000000f0f0e RBX: 1ffff10032f32f43 RCX: 000000000000000c RDX: ffff8801c0826540 RSI: 0000000000000fe0 RDI: ffff8801c0826020 RBP: ffff8801979979e0 R08: ffff8801979884c0 R09: ffff8801da988dc0 R10: 00000000e1e1dd5c R11: 0000000000000000 R12: ffff8801c0826020 R13: 0000000000000fe0 R14: 0000000000000001 R15: ffffea0007020980 FS: 0000000000b40940(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000b49978 CR3: 0000000197f55000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: check_heap_object mm/usercopy.c:236 [inline] __check_object_size+0x4c7/0x5d9 mm/usercopy.c:259 check_object_size include/linux/thread_info.h:108 [inline] strncpy_from_user+0x109/0x500 lib/strncpy_from_user.c:116 getname_flags+0x113/0x5a0 fs/namei.c:151 user_path_at_empty+0x2d/0x50 fs/namei.c:2555 user_path_at include/linux/namei.h:57 [inline] vfs_statx+0x121/0x1f0 fs/stat.c:185 vfs_lstat include/linux/fs.h:3083 [inline] __do_sys_newlstat+0x87/0xf0 fs/stat.c:350 __se_sys_newlstat fs/stat.c:344 [inline] __x64_sys_newlstat+0x54/0x80 fs/stat.c:344 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x454765 RSP: 002b:0000000000a3d9d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000454765 RDX: 0000000000a3d9f0 RSI: 0000000000a3d9f0 RDI: 0000000000a3da80 RBP: 0000000000a3f790 R08: 0000000000000000 R09: 0000000000000010 R10: 000000000000000a R11: 0000000000000246 R12: 0000000000b41940 R13: 0000000000000000 R14: 0000000000000293 R15: 000000000001fad3 Code: 2c 48 c7 c7 c8 49 9d 88 e8 07 50 08 00 5d c3 41 8b 91 04 01 00 00 48 29 c7 48 39 d7 77 be 48 01 d0 48 29 c8 48 39 f0 72 b3 5d c3 <0f> 0b 48 c7 c7 c8 49 9d 88 e8 d4 56 08 00 44 89 e1 4c 8d 45 cc RIP: __check_heap_object+0xa7/0xb5 mm/slab.c:4445 RSP: ffff8801979979e0 ---[ end trace b6666422c0477c20 ]---