syzbot


general protection fault in ieee802154_llsec_parse_dev_addr

Status: fixed on 2021/11/10 00:50
Subsystems: wpan
[Documentation on labels]
Reported-by: syzbot+8b6719da8a04beeafcc3@syzkaller.appspotmail.com
Fix commit: 88c17855ac42 net: ieee802154: forbid monitor for set llsec params
First crash: 1243d, last: 1112d
Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: general protection fault in ieee802154_llsec_parse_dev_addr (log)
Repro: C syz .config
  
Discussions (17)
Title Replies (including bot) Last reply
[PATCH 4.14 00/68] 4.14.231-rc1 review 77 (77) 2021/07/28 12:56
[PATCH 5.4 000/111] 5.4.112-rc1 review 124 (124) 2021/05/19 00:04
[PATCH AUTOSEL 5.10 01/46] net: ieee802154: fix nl802154 del llsec key 47 (47) 2021/04/19 08:49
[PATCH 4.4 00/38] 4.4.267-rc1 review 42 (42) 2021/04/16 12:52
[PATCH 4.9 00/47] 4.9.267-rc1 review 51 (51) 2021/04/16 11:50
[PATCH 4.19 00/66] 4.19.187-rc1 review 75 (75) 2021/04/14 02:50
[PATCH 5.10 000/188] 5.10.30-rc1 review 199 (199) 2021/04/13 10:44
[PATCH 5.11 000/210] 5.11.14-rc1 review 214 (214) 2021/04/13 04:46
[PATCH AUTOSEL 4.4 01/23] net: ieee802154: nl-mac: fix check on panid 23 (23) 2021/04/12 16:27
[PATCH AUTOSEL 4.9 01/23] net: ieee802154: nl-mac: fix check on panid 23 (23) 2021/04/12 16:27
[PATCH AUTOSEL 4.14 01/25] net: ieee802154: nl-mac: fix check on panid 25 (25) 2021/04/12 16:26
[PATCH AUTOSEL 4.19 01/28] net: ieee802154: nl-mac: fix check on panid 28 (28) 2021/04/12 16:25
[PATCH AUTOSEL 5.4 01/39] net: ieee802154: fix nl802154 del llsec key 39 (39) 2021/04/12 16:25
[PATCH AUTOSEL 5.11 01/51] net: ieee802154: fix nl802154 del llsec key 51 (51) 2021/04/12 16:22
[PATCH RESEND wpan 00/15] net: ieee802154: forbid sec params for monitors 18 (18) 2021/04/06 20:29
[PATCH wpan 00/17] ieee802154: syzbot fixes 25 (25) 2021/03/06 23:35
general protection fault in ieee802154_llsec_parse_dev_addr 0 (1) 2021/02/25 16:47
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in ieee802154_llsec_parse_dev_addr C done 32 1120d 1239d 1/1 fixed on 2021/07/27 15:33
linux-4.14 general protection fault in ieee802154_llsec_parse_dev_addr C error 89 692d 1245d 0/1 upstream: reported C repro on 2021/02/22 20:38

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: 8419 Comm: syz-executor652 Not tainted 5.11.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:nla_get_le16 include/net/netlink.h:1599 [inline]
RIP: 0010:ieee802154_llsec_parse_dev_addr+0x2b3/0x370 net/ieee802154/nl802154.c:1306
Code: 00 0f 85 d5 00 00 00 48 89 5d 08 e9 5c ff ff ff e8 72 2e e4 f8 49 8d 7e 04 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 01 38 d0 7c 04 84 d2 75 7d 48
RSP: 0018:ffffc90001797390 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: 0000000000000002 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff888eab3e RDI: 0000000000000004
RBP: ffffc90001797590 R08: ffffffff8a8934e0 R09: ffffffff888eaa81
R10: 0000000000000002 R11: 0000000000000002 R12: 1ffff920002f2e72
R13: 0000000000000000 R14: 0000000000000000 R15: ffff88802171cc78
FS:  00000000016b2300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000408 CR3: 000000001360f000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ieee802154_llsec_parse_key_id+0x343/0x410 net/ieee802154/nl802154.c:1344
 nl802154_set_llsec_params+0x1db/0x470 net/ieee802154/nl802154.c:1399
 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:652 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:672
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2348
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2402
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2435
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x43fc09
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:00007ffed214c208 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004004a0 RCX: 000000000043fc09
RDX: 0000000000000040 RSI: 0000000020000680 RDI: 0000000000000003
RBP: 0000000000403670 R08: 0000000000000004 R09: 00000000004004a0
R10: 000000000000000c R11: 0000000000000246 R12: 0000000000403700
R13: 0000000000000000 R14: 00000000004ad018 R15: 00000000004004a0
Modules linked in:
---[ end trace 20aa2d549964b50b ]---
RIP: 0010:nla_get_le16 include/net/netlink.h:1599 [inline]
RIP: 0010:ieee802154_llsec_parse_dev_addr+0x2b3/0x370 net/ieee802154/nl802154.c:1306
Code: 00 0f 85 d5 00 00 00 48 89 5d 08 e9 5c ff ff ff e8 72 2e e4 f8 49 8d 7e 04 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 01 38 d0 7c 04 84 d2 75 7d 48
RSP: 0018:ffffc90001797390 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: 0000000000000002 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff888eab3e RDI: 0000000000000004
RBP: ffffc90001797590 R08: ffffffff8a8934e0 R09: ffffffff888eaa81
R10: 0000000000000002 R11: 0000000000000002 R12: 1ffff920002f2e72
R13: 0000000000000000 R14: 0000000000000000 R15: ffff88802171cc78
FS:  00000000016b2300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3256d2dab4 CR3: 000000001360f000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (80):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/24 12:30 net-old fcb3007371e1 fcc6d71b .config console log report syz C ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/03/09 03:33 net-next-old d310ec03a34e 09fbf400 .config console log report syz C ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/02/25 03:38 net-next-old d310ec03a34e fcc6d71b .config console log report syz C ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/06/02 01:41 upstream c2131f7e73c9 032639db .config console log report info ci-upstream-kasan-gce-root general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/30 06:56 upstream 6799d4f2da49 325a8dab .config console log report info ci-upstream-kasan-gce-root general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/26 15:45 upstream ad9f25d33860 54f0bcf1 .config console log report info ci-upstream-kasan-gce-root general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/02 01:48 upstream d2b6f8a17919 77e2b668 .config console log report info ci-upstream-kasan-gce-root general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/21 15:27 upstream 1fe5501ba1ab 95777977 .config console log report info ci-upstream-kasan-gce-root general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/17 16:16 upstream 9cdbf6467424 7e2b734b .config console log report info ci-upstream-kasan-gce-root general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/15 14:27 upstream 7f75285ca572 fcdb12ba .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/08 22:59 upstream 454859c552da 6a81331a .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in ieee802154_llsec_parse_dev_addr
2021/06/01 02:06 net-old 593f555fbc60 032639db .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/30 22:34 net-old 6850ec973791 325a8dab .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/30 15:37 net-old 6850ec973791 325a8dab .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/30 00:31 net-old 6850ec973791 325a8dab .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/29 04:03 net-old 44991d61aa12 858ea628 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/23 22:48 net-old e29f011e8fc0 3c7fef33 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/21 17:25 net-old 5cb4a593821f 3c7fef33 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/19 00:30 net-old 1dde47a66d4f a343ba6b .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/17 19:28 net-old b81ac7841d51 a2eb125d .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/04 20:05 net-old bbd6f0a94813 09efdd63 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/02 20:53 net-old bbd6f0a94813 77e2b668 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/02 08:11 net-old bbd6f0a94813 77e2b668 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/25 10:00 net-old 6477dd39e62c 36c88236 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/23 16:42 net-old bb556de79f0a 17f0b706 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/21 10:52 net-old d83b8aa5207d 95777977 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/18 16:20 net-old 88a5af943985 7e2b734b .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/16 02:59 net-old 4e39a072a6a0 c59079a6 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/14 07:45 net-old 61aaa1aa9a8f a184b83e .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/07 05:51 net-old 0f6925b3e8da 6a81331a .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/02 08:25 net-old 9256ce331101 6a81331a .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/02/24 16:35 net-old fcb3007371e1 fcc6d71b .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/02/24 11:59 net-old fcb3007371e1 fcc6d71b .config console log report info ci-upstream-net-this-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/06/07 15:41 net-next-old 1a42624aecba e59537be .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/06/07 06:25 net-next-old 1a42624aecba 500c2339 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/06/02 10:37 net-next-old 7fc6d3abc084 032639db .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/27 06:29 net-next-old c7a551b2e44a 858ea628 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/26 00:03 net-next-old 687c87adc11a 93d3a9f6 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/25 11:09 net-next-old c1eaf3c09c54 3c7fef33 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/22 23:33 net-next-old f5120f599880 3c7fef33 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/22 04:43 net-next-old d0d62baa7f50 3c7fef33 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/21 09:12 net-next-old 86fe2f8aa14f 3c7fef33 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/20 06:56 net-next-old bc6d076daa8c a343ba6b .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/20 05:25 net-next-old bc6d076daa8c a343ba6b .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/15 20:45 net-next-old 77091933e453 93f844de .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/12 08:19 net-next-old 009fc857c5f6 b3c3bb8e .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/11 22:14 net-next-old 3913ba732e97 b3c3bb8e .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/09 19:25 net-next-old b741596468b0 bc5434be .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/08 22:29 net-next-old 95aafe911db6 bc5434be .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/08 15:02 net-next-old 95aafe911db6 bc5434be .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/06 18:30 net-next-old 95aafe911db6 06585184 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/05 15:40 net-next-old 95aafe911db6 06c27ff5 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/05 04:11 net-next-old 95aafe911db6 06c27ff5 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/02 06:41 net-next-old 95aafe911db6 77e2b668 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/01 16:59 net-next-old 95aafe911db6 77e2b668 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/30 16:49 net-next-old 95aafe911db6 77e2b668 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/30 07:28 net-next-old 95aafe911db6 77e2b668 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/29 17:36 net-next-old 95aafe911db6 77e2b668 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/29 05:10 net-next-old 95aafe911db6 77e2b668 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/28 10:46 net-next-old 95aafe911db6 805b5003 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/28 07:29 net-next-old 95aafe911db6 805b5003 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/25 17:43 net-next-old b2f0ca00e6b3 36c88236 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/24 10:26 net-next-old b2f0ca00e6b3 17f0b706 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/20 13:45 net-next-old e7ad33fa7bc5 c0ced557 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/17 12:12 net-next-old e7ad33fa7bc5 7e2b734b .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/17 01:38 net-next-old e7ad33fa7bc5 7e2b734b .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/12 15:19 net-next-old 5b489fea977c bfeda1b1 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/08 18:58 net-next-old 3cd52c1e32fe 6a81331a .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/06 12:20 net-next-old cc0626c2aaed 6a81331a .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/02 15:49 net-next-old bd78980be1a6 6a81331a .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/02 11:09 net-next-old bd78980be1a6 6a81331a .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/03/29 21:27 net-next-old 37f368d8d09d 6a81331a .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/03/07 03:52 net-next-old d310ec03a34e e4b4d570 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/03/02 23:17 net-next-old d310ec03a34e 92ead296 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/03/02 22:45 net-next-old d310ec03a34e 92ead296 .config console log report info ci-upstream-net-kasan-gce general protection fault in ieee802154_llsec_parse_dev_addr
2021/07/05 22:39 linux-next a1f92694393a 55aa55c2 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in ieee802154_llsec_parse_dev_addr
2021/06/27 08:20 linux-next a1f92694393a 9d2ab5df .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in ieee802154_llsec_parse_dev_addr
2021/06/03 19:40 linux-next a1f92694393a 0740de69 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/24 19:12 linux-next a1f92694393a 3c7fef33 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/05 22:11 linux-next 29955e0289b3 06c27ff5 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in ieee802154_llsec_parse_dev_addr
* Struck through repros no longer work on HEAD.