------------[ cut here ]------------ kernel BUG at net/key/af_key.c:2068! invalid opcode: 0000 [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 11493 Comm: syz-executor4 Not tainted 4.14.0-rc3+ #78 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 nla_parse: 11 callbacks suppressed netlink: 4 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 4 bytes leftover after parsing attributes in process `syz-executor2'. task: ffff8801cdd18540 task.stack: ffff8801cf3f8000 RIP: 0010:pfkey_xfrm_policy2msg+0x209c/0x22b0 net/key/af_key.c:2068 RSP: 0018:ffff8801cf3ff418 EFLAGS: 00010216 netlink: 4 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 4 bytes leftover after parsing attributes in process `syz-executor2'. RAX: 0000000000010000 RBX: ffff8801c23c78cc RCX: ffffc90001920000 netlink: 4 bytes leftover after parsing attributes in process `syz-executor2'. RDX: 0000000000000345 RSI: ffffffff8444af0c RDI: ffff8801c23c776c RBP: ffff8801cf3ff4f0 R08: 0000000000000001 R09: ffff8801d5538900 R10: 000000000000001b R11: ffffed003aaa713a R12: ffff8801c23c7788 netlink: 4 bytes leftover after parsing attributes in process `syz-executor2'. R13: ffff8801c23c7680 R14: 0000000000000008 R15: 0000000000000001 FS: 00007f526709e700(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=65535 sclass=netlink_route_socket pig=11528 comm=syz-executor7 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=6 sclass=netlink_route_socket pig=11528 comm=syz-executor7 netlink: 51 bytes leftover after parsing attributes in process `syz-executor7'. tc_ctl_action: received NO action attribs SELinux: unrecognized netlink message: protocol=0 nlmsg_type=65535 sclass=netlink_route_socket pig=11528 comm=syz-executor7 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=6 sclass=netlink_route_socket pig=11528 comm=syz-executor7 netlink: 51 bytes leftover after parsing attributes in process `syz-executor7'. tc_ctl_action: received NO action attribs netlink: 4 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 4 bytes leftover after parsing attributes in process `syz-executor2'. tc_ctl_action: received NO action attribs tc_ctl_action: received NO action attribs CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000208df000 CR3: 00000001d4d6d000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tc_ctl_action: received NO action attribs tc_ctl_action: received NO action attribs dump_sp+0x14f/0x510 net/key/af_key.c:2669 xfrm_policy_walk+0x2f1/0xa30 net/xfrm/xfrm_policy.c:1015 pfkey_dump_sp+0x42/0x50 net/key/af_key.c:2692 pfkey_do_dump+0xaa/0x3f0 net/key/af_key.c:299 pfkey_spddump+0x1a0/0x210 net/key/af_key.c:2719 pfkey_process+0x60b/0x720 net/key/af_key.c:2809 pfkey_sendmsg+0x4d6/0x9f0 net/key/af_key.c:3648 sock_sendmsg_nosec net/socket.c:633 [inline] sock_sendmsg+0xca/0x110 net/socket.c:643 ___sys_sendmsg+0x75b/0x8a0 net/socket.c:2049 __sys_sendmsg+0xe5/0x210 net/socket.c:2083 SYSC_sendmsg net/socket.c:2094 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2090 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x4520a9 RSP: 002b:00007f526709dc08 EFLAGS: 00000216 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 00000000004520a9 RDX: 0000000000000000 RSI: 00000000204a1fc8 RDI: 0000000000000006 RBP: 0000000000000086 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004bf1c0 R13: 00000000ffffffff R14: 0000000000000006 R15: 000000000000891c Code: ff ff 48 89 95 58 ff ff ff 89 8d 70 ff ff ff e8 bb 82 5e fd 48 8b 95 58 ff ff ff 8b 8d 70 ff ff ff e9 04 e3 ff ff e8 44 63 29 fd <0f> 0b be 02 00 00 00 4c 89 f7 e8 d5 83 5e fd e9 6f e3 ff ff 48 RIP: pfkey_xfrm_policy2msg+0x209c/0x22b0 net/key/af_key.c:2068 RSP: ffff8801cf3ff418 ---[ end trace 187ea75a8f4d8509 ]---