syzbot


general protection fault in nl802154_del_llsec_devkey

Status: fixed on 2021/05/15 09:40
Reported-by: syzbot+312d9ddd5ef095c56b2e@syzkaller.appspotmail.com
Fix commit: 22e025c1733b net: ieee802154: fix nl802154 del llsec devkey
First crash: 500d, last: 440d

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

  net: ieee802154: fix nl802154 del llsec devkey

similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in nl802154_del_llsec_devkey C done 171 438d 500d 1/1 fixed on 2021/05/17 08:49
upstream general protection fault in nl802154_del_llsec_devkey C inconclusive 229 444d 496d 22/22 fixed on 2021/11/10 00:50

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: 1 PID: 8072 Comm: syz-executor044 Not tainted 4.19.172-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:nla_len syzkaller/managers/linux-4-19/kernel/./include/net/netlink.h:706 [inline]
RIP: 0010:nla_parse_nested syzkaller/managers/linux-4-19/kernel/./include/net/netlink.h:765 [inline]
RIP: 0010:nl802154_del_llsec_devkey+0x163/0x380 syzkaller/managers/linux-4-19/kernel/net/ieee802154/nl802154.c:1943
Code: 00 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 ce 01 00 00 48 8b 93 20 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 4f
RSP: 0018:ffff8880b2a775e8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff88823aabb800 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff87c50ffd RDI: ffff88823aabb920
RBP: 1ffff1101654eebf R08: 0000000000000001 R09: ffff8880b2a77920
R10: 0000000000000005 R11: 0000000000000001 R12: ffff8880ab6a36c0
R13: ffff8880ab64d0d0 R14: ffff88823aabb800 R15: ffffffff89cf57c0
FS:  00000000017ad300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000408 CR3: 00000000aae1d000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 genl_family_rcv_msg+0x642/0xc40 syzkaller/managers/linux-4-19/kernel/net/netlink/genetlink.c:602
 genl_rcv_msg+0xbf/0x160 syzkaller/managers/linux-4-19/kernel/net/netlink/genetlink.c:627
 netlink_rcv_skb+0x160/0x440 syzkaller/managers/linux-4-19/kernel/net/netlink/af_netlink.c:2455
 genl_rcv+0x24/0x40 syzkaller/managers/linux-4-19/kernel/net/netlink/genetlink.c:638
 netlink_unicast_kernel syzkaller/managers/linux-4-19/kernel/net/netlink/af_netlink.c:1318 [inline]
 netlink_unicast+0x4d5/0x690 syzkaller/managers/linux-4-19/kernel/net/netlink/af_netlink.c:1344
 netlink_sendmsg+0x6bb/0xc40 syzkaller/managers/linux-4-19/kernel/net/netlink/af_netlink.c:1909
 sock_sendmsg_nosec syzkaller/managers/linux-4-19/kernel/net/socket.c:622 [inline]
 sock_sendmsg+0xc3/0x120 syzkaller/managers/linux-4-19/kernel/net/socket.c:632
 ___sys_sendmsg+0x7bb/0x8e0 syzkaller/managers/linux-4-19/kernel/net/socket.c:2115
 __sys_sendmsg syzkaller/managers/linux-4-19/kernel/net/socket.c:2153 [inline]
 __do_sys_sendmsg syzkaller/managers/linux-4-19/kernel/net/socket.c:2162 [inline]
 __se_sys_sendmsg syzkaller/managers/linux-4-19/kernel/net/socket.c:2160 [inline]
 __x64_sys_sendmsg+0x132/0x220 syzkaller/managers/linux-4-19/kernel/net/socket.c:2160
 do_syscall_64+0xf9/0x620 syzkaller/managers/linux-4-19/kernel/arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x43f8a9
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:00007ffc0ca290c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004004a0 RCX: 000000000043f8a9
RDX: 0000000024000044 RSI: 00000000200007c0 RDI: 0000000000000004
RBP: 0000000000403310 R08: 00000000004004a0 R09: 00000000004004a0
R10: 0000000000000006 R11: 0000000000000246 R12: 00000000004033a0
R13: 0000000000000000 R14: 00000000004ad018 R15: 00000000004004a0
Modules linked in:
---[ end trace 4306c58d85867916 ]---
RIP: 0010:nla_len syzkaller/managers/linux-4-19/kernel/./include/net/netlink.h:706 [inline]
RIP: 0010:nla_parse_nested syzkaller/managers/linux-4-19/kernel/./include/net/netlink.h:765 [inline]
RIP: 0010:nl802154_del_llsec_devkey+0x163/0x380 syzkaller/managers/linux-4-19/kernel/net/ieee802154/nl802154.c:1943
Code: 00 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 ce 01 00 00 48 8b 93 20 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 4f
RSP: 0018:ffff8880b2a775e8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff88823aabb800 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff87c50ffd RDI: ffff88823aabb920
RBP: 1ffff1101654eebf R08: 0000000000000001 R09: ffff8880b2a77920
R10: 0000000000000005 R11: 0000000000000001 R12: ffff8880ab6a36c0
R13: ffff8880ab64d0d0 R14: ffff88823aabb800 R15: ffffffff89cf57c0
FS:  00000000017ad300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff37343a6c0 CR3: 00000000aae1d000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (110):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-19 2021/02/13 11:48 linux-4.19.y 811218eceeaa 98682e5e .config log report syz C general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/14 02:42 linux-4.19.y 830a059cbba6 a184b83e .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/14 01:02 linux-4.19.y 830a059cbba6 a184b83e .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/13 15:00 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/13 13:19 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/12 19:37 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/12 10:37 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/12 02:47 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/11 16:28 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/11 16:13 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/11 12:11 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/11 03:57 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/10 21:04 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/10 11:27 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/10 10:17 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/10 08:14 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/10 06:27 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/09 13:54 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/08 05:08 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/07 20:37 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/07 18:13 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/06 21:19 linux-4.19.y 2034d6f0838e 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/05 05:57 linux-4.19.y 2034d6f0838e 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/05 04:14 linux-4.19.y 2034d6f0838e 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/05 00:09 linux-4.19.y 2034d6f0838e 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/04 12:43 linux-4.19.y 2034d6f0838e 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/03 23:01 linux-4.19.y 2034d6f0838e 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/03 06:54 linux-4.19.y 2034d6f0838e 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/03 03:05 linux-4.19.y 2034d6f0838e 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/02 21:43 linux-4.19.y 2034d6f0838e 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/02 13:47 linux-4.19.y 2034d6f0838e 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/02 06:54 linux-4.19.y 2034d6f0838e 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/04/01 19:15 linux-4.19.y 2034d6f0838e 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/03/30 09:30 linux-4.19.y 78fec1611cbf 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/03/30 03:21 linux-4.19.y 78fec1611cbf 6a81331a .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/03/29 12:23 linux-4.19.y 78fec1611cbf a8529b82 .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/03/28 20:04 linux-4.19.y 78fec1611cbf a8529b82 .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/03/28 16:55 linux-4.19.y 78fec1611cbf a8529b82 .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/03/27 19:21 linux-4.19.y 78fec1611cbf a8529b82 .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/03/27 05:21 linux-4.19.y 78fec1611cbf a8529b82 .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/03/27 00:47 linux-4.19.y 78fec1611cbf a8529b82 .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/03/25 21:07 linux-4.19.y 78fec1611cbf 6a383ecf .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/03/25 11:36 linux-4.19.y 78fec1611cbf 6a383ecf .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/03/24 19:23 linux-4.19.y 78fec1611cbf 607e3baf .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/03/23 18:33 linux-4.19.y 125222814e7b e613994b .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/03/23 14:36 linux-4.19.y 125222814e7b 8092f30d .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/03/23 11:17 linux-4.19.y 125222814e7b 8092f30d .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/03/22 15:44 linux-4.19.y 125222814e7b bea32f74 .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/03/21 00:07 linux-4.19.y 125222814e7b 17810eae .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/03/20 06:25 linux-4.19.y ac3af4beac43 3d01c4de .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/02/25 08:12 linux-4.19.y 2d19be4653f5 fcc6d71b .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/02/25 07:03 linux-4.19.y 2d19be4653f5 fcc6d71b .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/02/25 06:20 linux-4.19.y 2d19be4653f5 fcc6d71b .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/02/25 00:33 linux-4.19.y 2d19be4653f5 fcc6d71b .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/02/24 10:55 linux-4.19.y 2d19be4653f5 fcc6d71b .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/02/23 23:26 linux-4.19.y 2d19be4653f5 fcc6d71b .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/02/23 03:56 linux-4.19.y 255b58a2b3af fcc6d71b .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/02/22 21:43 linux-4.19.y 255b58a2b3af c26fb06b .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/02/21 22:48 linux-4.19.y 255b58a2b3af a659b3f1 .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/02/21 20:58 linux-4.19.y 255b58a2b3af a659b3f1 .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/02/21 14:09 linux-4.19.y 255b58a2b3af 3e5ed8b4 .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/02/21 10:12 linux-4.19.y 255b58a2b3af 3e5ed8b4 .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/02/20 12:30 linux-4.19.y 255b58a2b3af 3e5ed8b4 .config log report info general protection fault in nl802154_del_llsec_devkey
ci2-linux-4-19 2021/02/13 11:34 linux-4.19.y 811218eceeaa 98682e5e .config log report info general protection fault in nl802154_del_llsec_devkey