================================================================== BUG: KASAN: null-ptr-deref in memcpy include/linux/string.h:376 [inline] BUG: KASAN: null-ptr-deref in ieee802154_devaddr_from_raw include/net/ieee802154_netdev.h:165 [inline] BUG: KASAN: null-ptr-deref in nla_get_hwaddr net/ieee802154/nl-mac.c:46 [inline] BUG: KASAN: null-ptr-deref in ieee802154_llsec_parse_key_id+0x494/0x820 net/ieee802154/nl-mac.c:574 Read of size 8 at addr 0000000000000004 by task syz-executor.2/1338 CPU: 1 PID: 1338 Comm: syz-executor.2 Not tainted 4.14.230-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 kasan_report_error.cold+0x144/0x191 mm/kasan/report.c:349 kasan_report+0x6f/0x80 mm/kasan/report.c:409 memcpy+0x20/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:376 [inline] ieee802154_devaddr_from_raw include/net/ieee802154_netdev.h:165 [inline] nla_get_hwaddr net/ieee802154/nl-mac.c:46 [inline] ieee802154_llsec_parse_key_id+0x494/0x820 net/ieee802154/nl-mac.c:574 ieee802154_llsec_setparams+0x272/0x700 net/ieee802154/nl-mac.c:738 genl_family_rcv_msg+0x572/0xb20 net/netlink/genetlink.c:600 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:0x466459 RSP: 002b:00007f47ec4a0188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000004 RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffe5bcbcf1f R14: 00007f47ec4a0300 R15: 0000000000022000 ==================================================================