syzbot


general protection fault in nl802154_add_llsec_key
Status: fixed on 2021/05/17 08:49
Reported-by: syzbot+a51923a6d3b7ce852c63@syzkaller.appspotmail.com
Fix commit: 3a94a5b2e0ba net: ieee802154: fix nl802154 add llsec key
First crash: 461d, last: 401d

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

  net: ieee802154: fix nl802154 add llsec key

similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in nl802154_add_llsec_key C inconclusive 340 406d 460d 22/22 fixed on 2021/11/10 00:50
linux-4.19 general protection fault in nl802154_add_llsec_key C done 106 403d 458d 1/1 fixed on 2021/05/15 09:40

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
Modules linked in:
CPU: 1 PID: 7963 Comm: syz-executor309 Not tainted 4.14.218-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff888097934440 task.stack: ffff8880a0918000
RIP: 0010:nla_len syzkaller/managers/linux-4-14/kernel/./include/net/netlink.h:706 [inline]
RIP: 0010:nla_parse_nested syzkaller/managers/linux-4-14/kernel/./include/net/netlink.h:765 [inline]
RIP: 0010:nl802154_add_llsec_key+0x1e7/0x510 syzkaller/managers/linux-4-14/kernel/net/ieee802154/nl802154.c:1565
RSP: 0018:ffff8880a091f610 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff88823a05ba80 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff8880a091f850 RDI: ffff88823a05bba8
RBP: 1ffff11014123ec4 R08: 0000000000000001 R09: ffff8880a091f990
R10: ffff8880a091f6af R11: ffff888097934440 R12: ffff88823829b2c0
R13: ffff8880abb10e90 R14: ffffffff886f1c40 R15: ffff88809656c300
FS:  0000000001570300(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200006c8 CR3: 000000009df73000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 genl_family_rcv_msg+0x572/0xb20 syzkaller/managers/linux-4-14/kernel/net/netlink/genetlink.c:600
 genl_rcv_msg+0xaf/0x140 syzkaller/managers/linux-4-14/kernel/net/netlink/genetlink.c:625
 netlink_rcv_skb+0x125/0x390 syzkaller/managers/linux-4-14/kernel/net/netlink/af_netlink.c:2433
 genl_rcv+0x24/0x40 syzkaller/managers/linux-4-14/kernel/net/netlink/genetlink.c:636
 netlink_unicast_kernel syzkaller/managers/linux-4-14/kernel/net/netlink/af_netlink.c:1287 [inline]
 netlink_unicast+0x437/0x610 syzkaller/managers/linux-4-14/kernel/net/netlink/af_netlink.c:1313
 netlink_sendmsg+0x62e/0xb80 syzkaller/managers/linux-4-14/kernel/net/netlink/af_netlink.c:1878
 sock_sendmsg_nosec syzkaller/managers/linux-4-14/kernel/net/socket.c:646 [inline]
 sock_sendmsg+0xb5/0x100 syzkaller/managers/linux-4-14/kernel/net/socket.c:656
 ___sys_sendmsg+0x6c8/0x800 syzkaller/managers/linux-4-14/kernel/net/socket.c:2062
 __sys_sendmsg+0xa3/0x120 syzkaller/managers/linux-4-14/kernel/net/socket.c:2096
 SYSC_sendmsg syzkaller/managers/linux-4-14/kernel/net/socket.c:2107 [inline]
 SyS_sendmsg+0x27/0x40 syzkaller/managers/linux-4-14/kernel/net/socket.c:2103
 do_syscall_64+0x1d5/0x640 syzkaller/managers/linux-4-14/kernel/arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x43f8a9
RSP: 002b:00007ffdee038f68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004004a0 RCX: 000000000043f8a9
RDX: 0000000000000000 RSI: 0000000020000a00 RDI: 0000000000000004
RBP: 0000000000403310 R08: 00000000004004a0 R09: 00000000004004a0
R10: 0000000000000003 R11: 0000000000000246 R12: 00000000004033a0
R13: 0000000000000000 R14: 00000000004ad018 R15: 00000000004004a0
Code: 00 00 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 16 03 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 
RIP: nla_len syzkaller/managers/linux-4-14/kernel/./include/net/netlink.h:706 [inline] RSP: ffff8880a091f610
RIP: nla_parse_nested syzkaller/managers/linux-4-14/kernel/./include/net/netlink.h:765 [inline] RSP: ffff8880a091f610
RIP: nl802154_add_llsec_key+0x1e7/0x510 syzkaller/managers/linux-4-14/kernel/net/ieee802154/nl802154.c:1565 RSP: ffff8880a091f610
---[ end trace ba47e7790e7d8570 ]---

Crashes (168):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-14 2021/02/15 00:12 linux-4.14.y 2c8a3fceddf0 98682e5e .config log report syz C general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/16 01:59 linux-4.14.y 958e517f4e16 c59079a6 .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/15 21:25 linux-4.14.y 958e517f4e16 c59079a6 .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/15 19:09 linux-4.14.y 958e517f4e16 c59079a6 .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/15 10:05 linux-4.14.y 958e517f4e16 fcdb12ba .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/15 08:41 linux-4.14.y 958e517f4e16 fcdb12ba .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/15 07:17 linux-4.14.y 958e517f4e16 fcdb12ba .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/14 18:31 linux-4.14.y 958e517f4e16 3134b37f .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/14 15:33 linux-4.14.y 958e517f4e16 3134b37f .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/14 13:11 linux-4.14.y 958e517f4e16 3134b37f .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/13 08:30 linux-4.14.y 958e517f4e16 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/12 19:28 linux-4.14.y 958e517f4e16 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/12 16:05 linux-4.14.y 958e517f4e16 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/12 10:59 linux-4.14.y 958e517f4e16 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/12 00:18 linux-4.14.y 958e517f4e16 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/11 12:15 linux-4.14.y 958e517f4e16 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/11 10:35 linux-4.14.y 958e517f4e16 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/11 07:47 linux-4.14.y 958e517f4e16 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/11 05:03 linux-4.14.y 958e517f4e16 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/11 03:30 linux-4.14.y 958e517f4e16 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/11 01:23 linux-4.14.y 958e517f4e16 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/10 05:08 linux-4.14.y 0cc244011f40 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/09 11:57 linux-4.14.y 0cc244011f40 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/09 07:19 linux-4.14.y 0cc244011f40 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/08 23:15 linux-4.14.y 0cc244011f40 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/08 15:12 linux-4.14.y 0cc244011f40 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/08 12:26 linux-4.14.y 0cc244011f40 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/08 08:03 linux-4.14.y 0cc244011f40 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/08 04:58 linux-4.14.y 0cc244011f40 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/07 23:53 linux-4.14.y 0cc244011f40 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/07 20:56 linux-4.14.y 0cc244011f40 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/07 06:25 linux-4.14.y bd634aa64163 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/07 00:47 linux-4.14.y bd634aa64163 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/06 05:04 linux-4.14.y bd634aa64163 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/04 23:56 linux-4.14.y bd634aa64163 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/03 23:08 linux-4.14.y bd634aa64163 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/03 10:17 linux-4.14.y bd634aa64163 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/02 21:25 linux-4.14.y bd634aa64163 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/02 13:57 linux-4.14.y bd634aa64163 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/02 01:40 linux-4.14.y bd634aa64163 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/01 11:33 linux-4.14.y bd634aa64163 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/04/01 05:14 linux-4.14.y bd634aa64163 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/03/31 09:34 linux-4.14.y bd634aa64163 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/03/31 04:04 linux-4.14.y bd634aa64163 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/03/30 20:41 linux-4.14.y bd634aa64163 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci2-linux-4-14 2021/02/14 23:51 linux-4.14.y 2c8a3fceddf0 98682e5e .config log report info general protection fault in nl802154_add_llsec_key