syzbot


BUG: unable to handle kernel paging request in nl802154_del_llsec_key

Status: fixed on 2021/11/10 00:50
Reported-by: syzbot+ac5c11d2959a8b3c4806@syzkaller.appspotmail.com
Fix commit: 37feaaf5ceb2 net: ieee802154: fix nl802154 del llsec key
First crash: 495d, last: 442d

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: general protection fault in nl802154_del_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_del_llsec_key C done 135 437d 493d 1/1 fixed on 2021/05/17 08:49
linux-4.19 general protection fault in nl802154_del_llsec_key C done 91 439d 491d 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: 1 PID: 8384 Comm: syz-executor149 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_del_llsec_key+0x16d/0x320 net/ieee802154/nl802154.c:1595
Code: 00 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 ab 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 16
RSP: 0018:ffffc90001b2f528 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff88802ca24800 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8890cd57 RDI: ffff88802ca24928
RBP: 1ffff92000365ea6 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff873804ba R11: 0000000000000000 R12: ffff88801b12e000
R13: ffff888144730c10 R14: ffffc90001b2f8b0 R15: 0000000000000000
FS:  0000000000cd7300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1a7adf66c0 CR3: 000000001b92b000 CR4: 00000000001506e0
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:0x43fa09
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:00007ffca1f2d7e8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004004a0 RCX: 000000000043fa09
RDX: 0000000000000000 RSI: 0000000020000f40 RDI: 0000000000000003
RBP: 0000000000403470 R08: 00000000004004a0 R09: 00000000004004a0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000403500
R13: 0000000000000000 R14: 00000000004ad018 R15: 00000000004004a0
Modules linked in:
---[ end trace bbbbe16f608207e5 ]---
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_del_llsec_key+0x16d/0x320 net/ieee802154/nl802154.c:1595
Code: 00 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 ab 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 16
RSP: 0018:ffffc90001b2f528 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff88802ca24800 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8890cd57 RDI: ffff88802ca24928
RBP: 1ffff92000365ea6 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff873804ba R11: 0000000000000000 R12: ffff88801b12e000
R13: ffff888144730c10 R14: ffffc90001b2f8b0 R15: 0000000000000000
FS:  0000000000cd7300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fdb92170000 CR3: 000000001b92b000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (235):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-net-this-kasan-gce 2021/03/31 05:12 net 6e5a03bcba44 6a81331a .config log report syz C general protection fault in nl802154_del_llsec_key
ci-upstream-net-this-kasan-gce 2021/02/20 10:08 net 3af409ca278d f689d40a .config log report syz C general protection fault in nl802154_del_llsec_key
ci-upstream-net-this-kasan-gce 2021/02/18 20:03 net 3af409ca278d 14052202 .config log report syz C general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/03/31 06:40 net-next 37f368d8d09d 6a81331a .config log report syz C general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/02/20 15:43 net-next 38b5133ad607 3e5ed8b4 .config log report syz C general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/02/18 20:28 net-next 38b5133ad607 14052202 .config log report syz C general protection fault in nl802154_del_llsec_key
ci-qemu2-arm64-compat 2021/03/09 06:52 upstream 144c79ef3353 09fbf400 .config log report info BUG: unable to handle kernel paging request in nl802154_del_llsec_key
ci-qemu2-arm64 2021/02/24 01:11 upstream 3b9cdafb5358 fcc6d71b .config log report info BUG: unable to handle kernel paging request in nl802154_del_llsec_key
ci-qemu2-arm64 2021/02/16 21:37 upstream f40ddce88593 98682e5e .config log report info BUG: unable to handle kernel paging request in nl802154_del_llsec_key
ci-upstream-kasan-gce-selinux-root 2021/04/09 09:16 upstream 4fa56ad0d12e 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-kasan-gce-selinux-root 2021/04/09 07:12 upstream 4fa56ad0d12e 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-kasan-gce-root 2021/04/09 06:09 upstream 4fa56ad0d12e 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-kasan-gce-smack-root 2021/04/08 20:43 upstream 454859c552da 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-kasan-gce-smack-root 2021/04/05 17:50 upstream e49d033bddf5 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-kasan-gce-smack-root 2021/04/05 01:12 upstream e49d033bddf5 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-kasan-gce-root 2021/04/04 17:50 upstream 2023a53bdf41 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-kasan-gce-selinux-root 2021/04/04 07:10 upstream 57fbdb15ec42 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-kasan-gce-smack-root 2021/04/03 21:06 upstream 57fbdb15ec42 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-kasan-gce-selinux-root 2021/04/03 13:20 upstream d93a0d43e3d0 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-kasan-gce-root 2021/03/31 17:07 upstream 5e46d1b78a03 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/08 08:53 net 5219d6012d46 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/08 05:49 net 5219d6012d46 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/05 13:06 net a14d273ba159 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/05 06:01 net a14d273ba159 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/04 19:51 net a14d273ba159 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/04 11:58 net a14d273ba159 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/04 05:32 net a14d273ba159 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/03 01:04 net 9256ce331101 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/02 22:47 net 9256ce331101 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/02 17:53 net 9256ce331101 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/02 13:17 net 9256ce331101 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-this-kasan-gce 2021/04/01 18:43 net 622d13694b5f 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-this-kasan-gce 2021/03/31 12:38 net 61431a5907fc 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/10 22:57 net-next 626b598aa8be bfeda1b1 .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/10 15:59 net-next 626b598aa8be bfeda1b1 .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/09 22:33 net-next 4438669eb703 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/09 13:50 net-next 4438669eb703 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/09 10:41 net-next 4438669eb703 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/09 04:28 net-next 4438669eb703 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/08 16:11 net-next 3cd52c1e32fe 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/08 10:18 net-next 0b35e0deb5be 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/07 22:59 net-next 0b35e0deb5be 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/07 20:47 net-next be107538c529 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/07 14:43 net-next be107538c529 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/06 19:58 net-next cc0626c2aaed 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/06 14:39 net-next cc0626c2aaed 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/06 10:55 net-next cc0626c2aaed 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/06 03:02 net-next 514e1150da9c 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/05 03:30 net-next 7d42e84eb99d 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/04 08:31 net-next 428e68e1a85a 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/03 22:12 net-next 825066651792 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/03 11:40 net-next f3f409a9b7f5 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/02 16:30 net-next bd78980be1a6 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/02 10:44 net-next bd78980be1a6 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/02 01:50 net-next 040806343bb4 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/04/01 23:13 net-next 040806343bb4 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-net-kasan-gce 2021/03/31 20:49 net-next 37f368d8d09d 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-linux-next-kasan-gce-root 2021/04/03 04:56 linux-next 454c576c3f5e 6a81331a .config log report info general protection fault in nl802154_del_llsec_key
ci-upstream-linux-next-kasan-gce-root 2021/03/31 01:23 linux-next 931294922e65 6a81331a .config log report info general protection fault in nl802154_del_llsec_key