syzbot


general protection fault in nl802154_del_llsec_key

Status: fixed on 2021/05/15 09:40
Reported-by: syzbot+418d685287b7c21c6daa@syzkaller.appspotmail.com
Fix commit: 79ba55c0e7a7 net: ieee802154: fix nl802154 del llsec key
First crash: 491d, last: 438d

Fix bisection: fixed by (bisect log) :
commit 79ba55c0e7a7990537d36a470e3a2f0968408b7e
Author: Alexander Aring <aahringo@redhat.com>
Date: Sun Feb 21 17:43:18 2021 +0000

  net: ieee802154: fix nl802154 del llsec key

similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in nl802154_del_llsec_key C inconclusive 235 441d 492d 22/22 fixed on 2021/11/10 00:50
linux-4.14 general protection fault in nl802154_del_llsec_key C done 135 436d 492d 1/1 fixed on 2021/05/17 08:49

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8078 Comm: syz-executor852 Not tainted 4.19.176-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:nla_len include/net/netlink.h:706 [inline]
RIP: 0010:nla_parse_nested include/net/netlink.h:765 [inline]
RIP: 0010:nl802154_del_llsec_key+0x16d/0x340 net/ieee802154/nl802154.c:1615
Code: 00 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 b5 01 00 00 48 8b 93 28 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 d1 48 c1 e9 03 <0f> b6 0c 01 48 89 d0 83 e0 07 83 c0 01 38 c8 7c 08 84 c9 0f 85 13
RSP: 0018:ffff88808f60f5e0 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff8880b25fba80 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff87c52f57 RDI: ffff8880b25fbba8
RBP: 1ffff11011ec1ebe R08: 0000000000000001 R09: ffff88808f60f920
R10: 0000000000000005 R11: 0000000000000001 R12: ffff8880abba4e80
R13: ffff8880ab5a5010 R14: ffff8880b25fba80 R15: ffffffff89cf57c0
FS:  0000000001102300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000148 CR3: 00000000b3ffc000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 genl_family_rcv_msg+0x642/0xc40 net/netlink/genetlink.c:602
 genl_rcv_msg+0xbf/0x160 net/netlink/genetlink.c:627
 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:638
 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
 netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344
 netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909
 sock_sendmsg_nosec net/socket.c:622 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:632
 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115
 __sys_sendmsg net/socket.c:2153 [inline]
 __do_sys_sendmsg net/socket.c:2162 [inline]
 __se_sys_sendmsg net/socket.c:2160 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2160
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x43fa69
Code: 28 c3 e8 5a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe7dcca318 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004004a0 RCX: 000000000043fa69
RDX: 0000000000000810 RSI: 00000000200005c0 RDI: 0000000000000003
RBP: 00000000004034d0 R08: 0000000000000008 R09: 00000000004004a0
R10: 0000000000000006 R11: 0000000000000246 R12: 0000000000403560
R13: 0000000000000000 R14: 00000000004ad018 R15: 00000000004004a0
Modules linked in:
---[ end trace 6d894b5f9929c691 ]---
RIP: 0010:nla_len include/net/netlink.h:706 [inline]
RIP: 0010:nla_parse_nested include/net/netlink.h:765 [inline]
RIP: 0010:nl802154_del_llsec_key+0x16d/0x340 net/ieee802154/nl802154.c:1615
Code: 00 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 b5 01 00 00 48 8b 93 28 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 d1 48 c1 e9 03 <0f> b6 0c 01 48 89 d0 83 e0 07 83 c0 01 38 c8 7c 08 84 c9 0f 85 13
RSP: 0018:ffff88808f60f5e0 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff8880b25fba80 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff87c52f57 RDI: ffff8880b25fbba8
RBP: 1ffff11011ec1ebe R08: 0000000000000001 R09: ffff88808f60f920
R10: 0000000000000005 R11: 0000000000000001 R12: ffff8880abba4e80
R13: ffff8880ab5a5010 R14: ffff8880b25fba80 R15: ffffffff89cf57c0
FS:  0000000001102300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000148 CR3: 00000000b3ffc000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (91):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-19 2021/02/20 09:38 linux-4.19.y 255b58a2b3af f689d40a .config log report syz C general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/14 02:30 linux-4.19.y 830a059cbba6 a184b83e .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/13 14:56 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/13 06:12 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/12 12:33 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/11 16:47 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/11 12:03 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/11 05:02 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/10 23:51 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/10 22:24 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/10 21:03 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/10 17:13 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/10 10:26 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/10 01:47 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/09 04:21 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/09 02:14 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/08 22:25 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/08 13:50 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/08 12:20 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/08 04:07 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/06 09:47 linux-4.19.y 2034d6f0838e 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/05 18:51 linux-4.19.y 2034d6f0838e 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/05 05:49 linux-4.19.y 2034d6f0838e 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/04/05 03:02 linux-4.19.y 2034d6f0838e 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/31 02:55 linux-4.19.y 2034d6f0838e 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/30 00:19 linux-4.19.y 78fec1611cbf 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/29 20:16 linux-4.19.y 78fec1611cbf 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/29 11:32 linux-4.19.y 78fec1611cbf a8529b82 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/29 05:38 linux-4.19.y 78fec1611cbf a8529b82 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/29 02:58 linux-4.19.y 78fec1611cbf a8529b82 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/29 02:38 linux-4.19.y 78fec1611cbf a8529b82 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/28 16:23 linux-4.19.y 78fec1611cbf a8529b82 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/28 15:04 linux-4.19.y 78fec1611cbf a8529b82 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/28 07:57 linux-4.19.y 78fec1611cbf a8529b82 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/28 05:02 linux-4.19.y 78fec1611cbf a8529b82 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/28 03:30 linux-4.19.y 78fec1611cbf a8529b82 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/28 01:21 linux-4.19.y 78fec1611cbf a8529b82 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/27 23:42 linux-4.19.y 78fec1611cbf a8529b82 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/27 08:10 linux-4.19.y 78fec1611cbf a8529b82 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/26 08:58 linux-4.19.y 78fec1611cbf 6a383ecf .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/26 05:21 linux-4.19.y 78fec1611cbf 6a383ecf .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/25 19:40 linux-4.19.y 78fec1611cbf 6a383ecf .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/25 05:39 linux-4.19.y 78fec1611cbf 607e3baf .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/23 04:01 linux-4.19.y 125222814e7b 8092f30d .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/23 02:57 linux-4.19.y 125222814e7b 8092f30d .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/22 12:25 linux-4.19.y 125222814e7b bea32f74 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/21 14:37 linux-4.19.y 125222814e7b 4c9a64da .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/21 08:52 linux-4.19.y 125222814e7b 17810eae .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/21 02:45 linux-4.19.y 125222814e7b 17810eae .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/21 02:40 linux-4.19.y 125222814e7b 17810eae .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/21 00:44 linux-4.19.y 125222814e7b 17810eae .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/20 19:27 linux-4.19.y 125222814e7b e45f5621 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/06 01:50 linux-4.19.y dfb571610ba3 4a024a9b .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/05 23:23 linux-4.19.y dfb571610ba3 4a024a9b .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/05 08:37 linux-4.19.y dfb571610ba3 9d751681 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/04 01:15 linux-4.19.y 2d19be4653f5 06ed56cd .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/04 00:23 linux-4.19.y 2d19be4653f5 06ed56cd .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/03/01 12:33 linux-4.19.y 2d19be4653f5 4c37c133 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/02/28 18:41 linux-4.19.y 2d19be4653f5 4c37c133 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/02/27 15:07 linux-4.19.y 2d19be4653f5 4c37c133 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/02/27 14:52 linux-4.19.y 2d19be4653f5 4c37c133 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/02/26 19:54 linux-4.19.y 2d19be4653f5 4c37c133 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/02/25 19:41 linux-4.19.y 2d19be4653f5 76f7fc95 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/02/25 07:43 linux-4.19.y 2d19be4653f5 fcc6d71b .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/02/23 22:45 linux-4.19.y 2d19be4653f5 fcc6d71b .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/02/21 11:17 linux-4.19.y 255b58a2b3af 3e5ed8b4 .config log report info general protection fault in nl802154_del_llsec_key
ci2-linux-4-19 2021/02/20 09:23 linux-4.19.y 255b58a2b3af f689d40a .config log report info general protection fault in nl802154_del_llsec_key