syzbot


general protection fault in ieee802154_llsec_parse_dev_addr

Status: fixed on 2021/07/27 15:33
Reported-by: syzbot+7f1b4f2030ff6be8870e@syzkaller.appspotmail.com
Fix commit: 00b16396ad26 HID: quirks: Set INCREMENT_USAGE_ON_DUPLICATE for Saitek X65
First crash: 1383d, last: 1264d
Fix bisection: fixed by (bisect log) :
commit 00b16396ad26fbb725d13c305f1d6e372e44f9f5
Author: Nirenjan Krishnan <nirenjan@gmail.com>
Date: Mon Mar 29 16:10:02 2021 +0000

  HID: quirks: Set INCREMENT_USAGE_ON_DUPLICATE for Saitek X65

  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in ieee802154_llsec_parse_dev_addr wpan C inconclusive 80 1255d 1385d 20/28 fixed on 2021/11/10 00:50
linux-4.14 general protection fault in ieee802154_llsec_parse_dev_addr C error 89 835d 1388d 0/1 upstream: reported C repro on 2021/02/22 20:38

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: 0 PID: 8084 Comm: syz-executor049 Not tainted 4.19.186-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:nla_get_le64 include/net/netlink.h:1162 [inline]
RIP: 0010:ieee802154_llsec_parse_dev_addr+0x260/0x370 net/ieee802154/nl802154.c:1326
Code: 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 1a b4 9b f9 48 8b 5c 24 50 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 04 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 ee 00 00 00 48 8d 7d 08 48 8b 5b 04 48 b8 00 00
RSP: 0018:ffff8880b2747450 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff87c6a93e
RDX: 0000000000000000 RSI: ffffffff87c6a9a6 RDI: 0000000000000004
RBP: ffff8880b2747650 R08: 0000000000000001 R09: 0000000000000003
R10: 0000000000000001 R11: 0000000000074071 R12: 1ffff110164e8e8a
R13: 0000000000000000 R14: ffff8880969a6100 R15: ffff8880969a60e8
FS:  00000000019b9300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000100 CR3: 00000000b5ba9000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ieee802154_llsec_parse_key_id+0x340/0x410 net/ieee802154/nl802154.c:1362
 nl802154_set_llsec_params+0x1db/0x470 net/ieee802154/nl802154.c:1417
 genl_family_rcv_msg+0x642/0xc40 net/netlink/genetlink.c:602
 genl_rcv_msg+0xbf/0x160 net/netlink/genetlink.c:627
 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:638
 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
 netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344
 netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909
 sock_sendmsg_nosec net/socket.c:622 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:632
 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115
 __sys_sendmsg net/socket.c:2153 [inline]
 __do_sys_sendmsg net/socket.c:2162 [inline]
 __se_sys_sendmsg net/socket.c:2160 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2160
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x43fe09
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:00007ffdc0334068 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004004a0 RCX: 000000000043fe09
RDX: 0000000000000000 RSI: 0000000020000500 RDI: 0000000000000003
RBP: 0000000000403870 R08: 0000000000000001 R09: 00000000004004a0
R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000403900
R13: 0000000000000000 R14: 00000000004ad018 R15: 00000000004004a0
Modules linked in:
---[ end trace 6ffe834e5f1c6381 ]---
RIP: 0010:nla_get_le64 include/net/netlink.h:1162 [inline]
RIP: 0010:ieee802154_llsec_parse_dev_addr+0x260/0x370 net/ieee802154/nl802154.c:1326
Code: 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 1a b4 9b f9 48 8b 5c 24 50 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 04 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 ee 00 00 00 48 8d 7d 08 48 8b 5b 04 48 b8 00 00
RSP: 0018:ffff8880b2747450 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff87c6a93e
RDX: 0000000000000000 RSI: ffffffff87c6a9a6 RDI: 0000000000000004
RBP: ffff8880b2747650 R08: 0000000000000001 R09: 0000000000000003
R10: 0000000000000001 R11: 0000000000074071 R12: 1ffff110164e8e8a
R13: 0000000000000000 R14: ffff8880969a6100 R15: ffff8880969a60e8
FS:  00000000019b9300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000100 CR3: 00000000b5ba9000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (32):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/11 00:02 linux-4.19.y 830a059cbba6 6a81331a .config console log report syz C ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/03/07 04:30 linux-4.19.y dfb571610ba3 e4b4d570 .config console log report syz C ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/13 10:44 linux-4.19.y 3c8c23092588 ed7d41c5 .config console log report syz ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/06/27 03:05 linux-4.19.y eb575cd5d7f6 9d2ab5df .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/06/25 04:57 linux-4.19.y eb575cd5d7f6 0edbbe31 .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/06/23 00:38 linux-4.19.y eb575cd5d7f6 aba2b2fb .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/06/20 18:15 linux-4.19.y eb575cd5d7f6 aba2b2fb .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/06/18 02:17 linux-4.19.y eb575cd5d7f6 aba2b2fb .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/06/12 07:04 linux-4.19.y 9a2dc0e6c531 1ba81399 .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/06/09 03:27 linux-4.19.y 1722257b8ece 5c2fe346 .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/06/07 04:19 linux-4.19.y 1722257b8ece 500c2339 .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/30 07:38 linux-4.19.y 6b7b0056defc 325a8dab .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/29 10:07 linux-4.19.y 6b7b0056defc 858ea628 .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/28 00:26 linux-4.19.y 6b7b0056defc 858ea628 .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/26 17:54 linux-4.19.y 6b7b0056defc 750ce164 .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/22 13:27 linux-4.19.y 1e986fe9ad15 3c7fef33 .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/21 15:46 linux-4.19.y 3c8c23092588 3c7fef33 .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/19 13:22 linux-4.19.y 3c8c23092588 a343ba6b .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/15 04:53 linux-4.19.y 3c8c23092588 8bdd5343 .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/11 09:34 linux-4.19.y 3c8c23092588 ca873091 .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/09 18:33 linux-4.19.y 3c8c23092588 bc5434be .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/07 00:08 linux-4.19.y 97a8651cadce 06585184 .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/02 07:37 linux-4.19.y 97a8651cadce 77e2b668 .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/05/01 23:17 linux-4.19.y 97a8651cadce 77e2b668 .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/26 07:53 linux-4.19.y 2965db2e004c 2a82f1b3 .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/18 15:19 linux-4.19.y 2965db2e004c 7e2b734b .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/14 05:00 linux-4.19.y 830a059cbba6 a184b83e .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/04/07 05:40 linux-4.19.y 2034d6f0838e 6a81331a .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/03/20 06:24 linux-4.19.y ac3af4beac43 3d01c4de .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/03/15 23:04 linux-4.19.y 030194a5b292 fdb2bb2c .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/03/11 00:13 linux-4.19.y 2cae3e25b706 764067f3 .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
2021/02/28 09:12 linux-4.19.y 2d19be4653f5 4c37c133 .config console log report info ci2-linux-4-19 general protection fault in ieee802154_llsec_parse_dev_addr
* Struck through repros no longer work on HEAD.