call_write_iter include/linux/fs.h:1778 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x44c/0x630 fs/read_write.c:482 kasan: GPF could be caused by NULL-ptr deref or user memory access vfs_write+0x17f/0x4d0 fs/read_write.c:544 general protection fault: 0000 [#1] PREEMPT SMP KASAN SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 Modules linked in: CPU: 1 PID: 21688 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 task: ffff888098dc8380 task.stack: ffff888098728000 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 RIP: 0010:nla_get_le64 include/net/netlink.h:1162 [inline] RIP: 0010:ieee802154_llsec_parse_dev_addr+0x1dc/0x320 net/ieee802154/nl802154.c:1326 entry_SYSCALL_64_after_hwframe+0x46/0xbb RSP: 0018:ffff88809872f548 EFLAGS: 00010247 RIP: 0033:0x466459 RSP: 002b:00007fcb1227b188 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc900066fb000 ORIG_RAX: 0000000000000001 RDX: 0000000000000000 RSI: ffffffff86dad4f2 RDI: 0000000000000004 RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459 RBP: ffff88809872f708 R08: 0000000000000001 R09: ffff88809872f578 RDX: 00000000175d900f RSI: 0000000020000200 RDI: 0000000000000003 R10: ffff88809872f5a7 R11: ffff888098dc8380 R12: 1ffff110130e5ea9 RBP: 00007fcb1227b1d0 R08: 0000000000000000 R09: 0000000000000000 R13: 0000000000000000 R14: ffff8880b41eb034 R15: ffff8880b41eb03c R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 FS: 00007f12bfc9c700(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000 R13: 00007ffdc7da8c5f R14: 00007fcb1227b300 R15: 0000000000022000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe6e7df0000 CR3: 00000000981b9000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ieee802154_llsec_parse_key_id+0x2f4/0x3a0 net/ieee802154/nl802154.c:1362 nl802154_set_llsec_params+0x1bb/0x420 net/ieee802154/nl802154.c:1417 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:00007f12bfc9c188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459 RDX: 0000000000000000 RSI: 0000000020000300 RDI: 0000000000000005 RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffe0d639c6f R14: 00007f12bfc9c300 R15: 0000000000022000 Code: 00 0f 84 a3 00 00 00 80 fb 03 75 63 e8 7e 50 7a fa 48 8b 5c 24 50 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 04 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 19 01 00 00 48 8d 7d 08 48 8b 5b 04 48 b8 00 RIP: nla_get_le64 include/net/netlink.h:1162 [inline] RSP: ffff88809872f548 RIP: ieee802154_llsec_parse_dev_addr+0x1dc/0x320 net/ieee802154/nl802154.c:1326 RSP: ffff88809872f548 ---[ end trace f3f08ba2ad043ec8 ]---