syzbot


general protection fault in nl802154_add_llsec_key

Status: fixed on 2021/11/10 00:50
Reported-by: syzbot+ce4e062c2d51977ddc50@syzkaller.appspotmail.com
Fix commit: 20d5fe2d7103 net: ieee802154: fix nl802154 add llsec key
First crash: 497d, last: 442d

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: general protection fault in nl802154_add_llsec_key (log)
Repro: C syz .config
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in nl802154_add_llsec_key C done 168 437d 497d 1/1 fixed on 2021/05/17 08:49
linux-4.19 general protection fault in nl802154_add_llsec_key C done 106 439d 494d 1/1 fixed on 2021/05/15 09:40

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 8400 Comm: syz-executor992 Not tainted 5.12.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:nla_len include/net/netlink.h:1148 [inline]
RIP: 0010:nla_parse_nested_deprecated include/net/netlink.h:1231 [inline]
RIP: 0010:nl802154_add_llsec_key+0x1f7/0x560 net/ieee802154/nl802154.c:1547
Code: 00 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 2f 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 c9
RSP: 0018:ffffc90000eef4a0 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff88801b360800 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8890d095 RDI: ffff88801b360928
RBP: 1ffff920001dde95 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff873804ba R11: 0000000000000000 R12: ffff888144c66000
R13: ffff88801aa80c10 R14: ffffc90000eef8b0 R15: 0000000000000000
FS:  0000000002263300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000048 CR3: 0000000026db2000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 genl_family_rcv_msg_doit+0x228/0x320 net/netlink/genetlink.c:739
 genl_family_rcv_msg net/netlink/genetlink.c:783 [inline]
 genl_rcv_msg+0x328/0x580 net/netlink/genetlink.c:800
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2502
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:811
 netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1338
 netlink_sendmsg+0x856/0xd90 net/netlink/af_netlink.c:1927
 sock_sendmsg_nosec net/socket.c:654 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:674
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2350
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2404
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2433
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x43fa39
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:00007ffdaeef05e8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004004a0 RCX: 000000000043fa39
RDX: 0000000000000000 RSI: 00000000200004c0 RDI: 0000000000000003
RBP: 00000000004034a0 R08: 000000000000000c R09: 00000000004004a0
R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000403530
R13: 0000000000000000 R14: 00000000004ad018 R15: 00000000004004a0
Modules linked in:
---[ end trace c4edb05429afbac0 ]---
RIP: 0010:nla_len include/net/netlink.h:1148 [inline]
RIP: 0010:nla_parse_nested_deprecated include/net/netlink.h:1231 [inline]
RIP: 0010:nl802154_add_llsec_key+0x1f7/0x560 net/ieee802154/nl802154.c:1547
Code: 00 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 2f 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 c9
RSP: 0018:ffffc90000eef4a0 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff88801b360800 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8890d095 RDI: ffff88801b360928
RBP: 1ffff920001dde95 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff873804ba R11: 0000000000000000 R12: ffff888144c66000
R13: ffff88801aa80c10 R14: ffffc90000eef8b0 R15: 0000000000000000
FS:  0000000002263300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f461403d0f8 CR3: 0000000026db2000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (340):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-net-this-kasan-gce 2021/03/31 00:48 net 6e5a03bcba44 6a81331a .config log report syz C general protection fault in nl802154_add_llsec_key
ci-upstream-net-this-kasan-gce 2021/02/15 00:45 net 57baf8cc70ea 98682e5e .config log report syz C general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/03/31 00:49 net-next 37f368d8d09d 6a81331a .config log report syz C general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/02/15 00:40 net-next c4762993129f 98682e5e .config log report syz C general protection fault in nl802154_add_llsec_key
ci-upstream-kasan-gce-selinux-root 2021/04/09 22:43 upstream 17e7124aad76 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-kasan-gce-root 2021/04/09 11:45 upstream 4fa56ad0d12e 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-kasan-gce-smack-root 2021/04/09 09:02 upstream 4fa56ad0d12e 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-kasan-gce-smack-root 2021/04/09 02:08 upstream 454859c552da 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-kasan-gce-smack-root 2021/04/08 03:41 upstream 3a22981230f9 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-kasan-gce-selinux-root 2021/04/07 12:34 upstream 2d743660786e 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-kasan-gce-selinux-root 2021/04/07 06:26 upstream 2d743660786e 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-kasan-gce-smack-root 2021/04/06 23:07 upstream 0a50438c8436 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-kasan-gce-root 2021/04/06 09:25 upstream 0a50438c8436 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-kasan-gce-smack-root 2021/04/04 06:25 upstream 57fbdb15ec42 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/08 03:07 net 5219d6012d46 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/07 09:55 net 0f6925b3e8da 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/06 18:53 net 08c27f3322fe 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/05 17:24 net a14d273ba159 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/05 15:48 net a14d273ba159 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/05 09:38 net a14d273ba159 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/05 01:48 net a14d273ba159 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/05 00:21 net a14d273ba159 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/04 21:49 net a14d273ba159 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/04 07:38 net a14d273ba159 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/04 00:08 net a14d273ba159 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/03 11:29 net 990b03b05b2f 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/03 08:42 net 990b03b05b2f 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/11 01:34 net-next 626b598aa8be bfeda1b1 .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/10 23:58 net-next 626b598aa8be bfeda1b1 .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/10 13:07 net-next 626b598aa8be bfeda1b1 .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/10 06:54 net-next 626b598aa8be 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/10 05:05 net-next 626b598aa8be 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/10 03:59 net-next 626b598aa8be 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/09 21:00 net-next 4438669eb703 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/09 15:30 net-next 4438669eb703 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/09 14:02 net-next 4438669eb703 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/09 10:14 net-next 4438669eb703 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/09 07:17 net-next 4438669eb703 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/09 04:59 net-next 4438669eb703 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/09 00:48 net-next 3cd52c1e32fe 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/08 23:44 net-next 3cd52c1e32fe 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/08 22:18 net-next 3cd52c1e32fe 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/08 14:35 net-next 3cd52c1e32fe 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/08 01:38 net-next 0b35e0deb5be 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/07 16:56 net-next be107538c529 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/07 14:10 net-next be107538c529 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/07 07:55 net-next be107538c529 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/07 01:03 net-next cc0626c2aaed 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/06 08:22 net-next 514e1150da9c 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/06 07:31 net-next 514e1150da9c 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/06 04:40 net-next 514e1150da9c 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/05 11:01 net-next 7d42e84eb99d 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/04 13:36 net-next 428e68e1a85a 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/04 12:03 net-next 428e68e1a85a 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/04 09:38 net-next 428e68e1a85a 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/03 21:41 net-next 825066651792 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-net-kasan-gce 2021/04/03 19:00 net-next 825066651792 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-upstream-linux-next-kasan-gce-root 2021/04/05 03:52 linux-next 454c576c3f5e 6a81331a .config log report info general protection fault in nl802154_add_llsec_key
ci-qemu2-arm64 2021/03/06 15:11 upstream a38fd8748464 e4b4d570 .config log report info BUG: unable to handle kernel paging request in nl802154_add_llsec_key
ci-qemu2-arm64 2021/02/28 08:01 upstream 5695e5161974 4c37c133 .config log report info BUG: unable to handle kernel paging request in nl802154_add_llsec_key