usercopy: kernel memory overwrite attempt detected to 00000000f40dc5cc (kmalloc-1024) (968 bytes) ------------[ cut here ]------------ kernel BUG at mm/usercopy.c:72! invalid opcode: 0000 [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 5590 Comm: syz-executor6 Not tainted 4.15.0-rc1+ #138 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: 0000000059db798b task.stack: 0000000095fd7bc3 RIP: 0010:report_usercopy mm/usercopy.c:64 [inline] RIP: 0010:__check_object_size+0x3a2/0x4f0 mm/usercopy.c:264 RSP: 0018:ffff8801cd7bf7c0 EFLAGS: 00010286 RAX: 0000000000000061 RBX: ffffffff85328540 RCX: 0000000000000000 RDX: 0000000000000061 RSI: ffffc900031a2000 RDI: ffffed0039af7eec RBP: ffff8801cd7bf8b0 R08: 1ffff10039af7e7a R09: 0000000000000000 R10: 000000006cdf42ba R11: 0000000000000000 R12: ffffffff85328500 R13: ffff8801db195290 R14: 00000000000003c8 R15: ffffea00076c6500 FS: 00007f501439e700(0000) GS:ffff8801db400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000559de5f741e8 CR3: 00000001c1cd2000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: check_object_size include/linux/thread_info.h:112 [inline] check_copy_size include/linux/thread_info.h:143 [inline] copy_from_user include/linux/uaccess.h:146 [inline] memdup_user+0x46/0x90 mm/util.c:168 do_ip_setsockopt.isra.12+0x13b9/0x3200 net/ipv4/ip_sockglue.c:1090 ip_setsockopt+0x3a/0xb0 net/ipv4/ip_sockglue.c:1248 tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2871 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2968 SYSC_setsockopt net/socket.c:1851 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1830 entry_SYSCALL_64_fastpath+0x1f/0x96 RIP: 0033:0x4529d9 RSP: 002b:00007f501439dc58 EFLAGS: 00000212 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f501439e700 RCX: 00000000004529d9 RDX: 0000000000000030 RSI: 0000000000000000 RDI: 0000000000000015 RBP: 0000000000000000 R08: 00000000000003c8 R09: 0000000000000000 R10: 00000000207fd000 R11: 0000000000000212 R12: 0000000000000000 R13: 0000000000a6f7ff R14: 00007f501439e9c0 R15: 0000000000000000 Code: 48 0f 44 da e8 e0 74 c2 ff 48 8b 85 28 ff ff ff 4d 89 f1 4c 89 e9 4c 89 e2 48 89 de 48 c7 c7 00 86 32 85 49 89 c0 e8 d3 32 ac ff <0f> 0b 48 c7 c0 c0 83 32 85 eb 96 48 c7 c0 00 84 32 85 eb 8d 48 RIP: report_usercopy mm/usercopy.c:64 [inline] RSP: ffff8801cd7bf7c0 RIP: __check_object_size+0x3a2/0x4f0 mm/usercopy.c:264 RSP: ffff8801cd7bf7c0 ---[ end trace 5ebfb3796eb13428 ]--- Kernel panic - not syncing: Fatal exception Dumping ftrace buffer: (ftrace buffer empty) Kernel Offset: disabled Rebooting in 86400 seconds..