genl_rcv+0x24/0x40 net/netlink/genetlink.c:636 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline] netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1313 netlink_sendmsg+0x62e/0xb80 net/netlink/af_netlink.c:1878 kasan: GPF could be caused by NULL-ptr deref or user memory access sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 general protection fault: 0000 [#1] PREEMPT SMP KASAN ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062 Modules linked in: CPU: 0 PID: 30615 Comm: syz-executor.1 Not tainted 4.14.221-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff88809753c0c0 task.stack: ffff88807f048000 RIP: 0010:nla_get_u16 include/net/netlink.h:1100 [inline] RIP: 0010:nla_get_shortaddr net/ieee802154/nl-mac.c:56 [inline] RIP: 0010:ieee802154_llsec_parse_key_id+0x15f/0x820 net/ieee802154/nl-mac.c:567 RSP: 0018:ffff88807f04f688 EFLAGS: 00010247 RAX: dffffc0000000000 RBX: ffff88807f04f720 RCX: ffffc90008f13000 RDX: 0000000000000000 RSI: ffffffff86d898aa RDI: 0000000000000004 RBP: ffff88807f04f850 R08: 0000000000000001 R09: ffff88807f04f720 __sys_sendmsg+0xa3/0x120 net/socket.c:2096 R10: ffff88807f04f737 R11: ffff88809753c0c0 R12: 1ffff1100fe09ed1 R13: 0000000000000000 R14: ffff88823a052a40 R15: ffffffff89ec2778 FS: 00007f5eed24d700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4d7c829118 CR3: 000000008f446000 CR4: 00000000001406f0 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 Call Trace: entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x466019 RSP: 002b:00007fcf68196188 EFLAGS: 00000246 llsec_remove_key net/ieee802154/nl-mac.c:904 [inline] ieee802154_nl_llsec_change net/ieee802154/nl-mac.c:832 [inline] ieee802154_llsec_del_key+0xf5/0x210 net/ieee802154/nl-mac.c:912 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466019 genl_family_rcv_msg+0x572/0xb20 net/netlink/genetlink.c:600 RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000004 RBP: 00007fcf681961d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007fff1eeae14f R14: 00007fcf68196300 R15: 0000000000022000 genl_rcv_msg+0xaf/0x140 net/netlink/genetlink.c:625 netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2433 genl_rcv+0x24/0x40 net/netlink/genetlink.c:636 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline] netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1313 netlink_sendmsg+0x62e/0xb80 net/netlink/af_netlink.c:1878 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062 __sys_sendmsg+0xa3/0x120 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x466019 RSP: 002b:00007f5eed24d188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466019 RDX: 0000000000004054 RSI: 0000000020000440 RDI: 0000000000000005 RBP: 00000000004bd067 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffe161722df R14: 00007f5eed24d300 R15: 0000000000022000 Code: 97 05 00 00 4d 8b 6e 30 4d 85 ed 0f 84 ce 04 00 00 e8 56 87 7c fa 49 8d 7d 04 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 RIP: nla_get_u16 include/net/netlink.h:1100 [inline] RSP: ffff88807f04f688 RIP: nla_get_shortaddr net/ieee802154/nl-mac.c:56 [inline] RSP: ffff88807f04f688 RIP: ieee802154_llsec_parse_key_id+0x15f/0x820 net/ieee802154/nl-mac.c:567 RSP: ffff88807f04f688 ---[ end trace 2bd98a015292dfb9 ]---