syzbot


WARNING in ieee802154_get_llsec_params

Status: fixed on 2021/11/10 00:50
Subsystems: wpan
[Documentation on labels]
Reported-by: syzbot+cde43a581a8e5f317bc2@syzkaller.appspotmail.com
Fix commit: 1534efc7bbc1 net: ieee802154: stop dump llsec params for monitors
First crash: 1151d, last: 1104d
Cause bisection: introduced by (bisect log) :
commit b60673c4c418bef7550d02faf53c34fbfeb366bf
Author: Jakub Kicinski <kuba@kernel.org>
Date: Tue Mar 3 05:05:15 2020 +0000

  nl802154: add missing attribute validation for dev_type

Crash: WARNING in ieee802154_get_llsec_params (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
WARNING in ieee802154_get_llsec_params 0 (3) 2021/03/05 06:37
Last patch testing requests (4)
Created Duration User Patch Repo Result
2021/04/04 03:24 18m ducheng2@gmail.com patch upstream OK
2021/04/04 03:22 10m ducheng2@gmail.com upstream report log
2021/03/29 08:43 10m ducheng2@gmail.com linux-next report log
2021/03/29 08:42 10m ducheng2@gmail.com upstream report log

Sample crash report:
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(lock->magic != lock)
WARNING: CPU: 1 PID: 8405 at kernel/locking/mutex.c:928 __mutex_lock_common kernel/locking/mutex.c:928 [inline]
WARNING: CPU: 1 PID: 8405 at kernel/locking/mutex.c:928 __mutex_lock+0xc0b/0x1120 kernel/locking/mutex.c:1093
Modules linked in:
CPU: 1 PID: 8405 Comm: syz-executor780 Not tainted 5.11.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__mutex_lock_common kernel/locking/mutex.c:928 [inline]
RIP: 0010:__mutex_lock+0xc0b/0x1120 kernel/locking/mutex.c:1093
Code: 08 84 d2 0f 85 a3 04 00 00 8b 05 68 cf c1 04 85 c0 0f 85 12 f5 ff ff 48 c7 c6 a0 87 6b 89 48 c7 c7 60 85 6b 89 e8 0c cb bc ff <0f> 0b e9 f8 f4 ff ff 65 48 8b 1c 25 00 f0 01 00 be 08 00 00 00 48
RSP: 0018:ffffc9000160f258 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff8880218e1bc0 RSI: ffffffff815bcf55 RDI: fffff520002c1e3d
RBP: ffff888022c74c90 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff815b602e R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: ffffffff8a89cb60 R15: 0000000000000000
FS:  0000000001879300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f36ba8e3710 CR3: 0000000012a0f000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ieee802154_get_llsec_params+0x3f/0x70 net/mac802154/cfg.c:321
 rdev_get_llsec_params net/ieee802154/rdev-ops.h:241 [inline]
 nl802154_get_llsec_params+0xce/0x390 net/ieee802154/nl802154.c:745
 nl802154_send_iface+0x7cf/0xa70 net/ieee802154/nl802154.c:823
 nl802154_get_interface+0xeb/0x230 net/ieee802154/nl802154.c:889
 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:2437
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x440899
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 14 00 00 90 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:00007ffefaa773e8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000001100f RCX: 0000000000440899
RDX: 0000000000000000 RSI: 0000000020000300 RDI: 0000000000000005
RBP: 0000000000000000 R08: 00007ffefaa77588 R09: 00007ffefaa77588
R10: 00007ffefaa77588 R11: 0000000000000246 R12: 00007ffefaa773fc
R13: 431bde82d7b634db R14: 00000000004ae018 R15: 00000000004004a0

Crashes (36):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/05 02:07 net-old d93ef301644e 9d751681 .config console log report syz C ci-upstream-net-this-kasan-gce WARNING in ieee802154_get_llsec_params
2021/03/05 00:03 linux-next f5427c2460eb 9d751681 .config console log report syz C ci-upstream-linux-next-kasan-gce-root WARNING in ieee802154_get_llsec_params
2021/03/25 01:18 upstream 4ee998b0ef8b 607e3baf .config console log report info ci-upstream-kasan-gce-root WARNING in ieee802154_get_llsec_params
2021/03/20 17:23 upstream 1c273e10bc0c 17810eae .config console log report info ci-upstream-kasan-gce-smack-root WARNING in ieee802154_get_llsec_params
2021/02/28 14:28 upstream 5695e5161974 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in ieee802154_get_llsec_params
2021/02/27 22:02 upstream 5695e5161974 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in ieee802154_get_llsec_params
2021/02/23 13:41 upstream a99163e9e708 fcc6d71b .config console log report info ci-qemu-upstream WARNING in ieee802154_get_llsec_params
2021/02/22 21:59 upstream a99163e9e708 c26fb06b .config console log report info ci-upstream-kasan-gce-root WARNING in ieee802154_get_llsec_params
2021/03/21 03:49 upstream 812da4d39463 17810eae .config console log report info ci-qemu-upstream-386 WARNING in ieee802154_get_llsec_params
2021/04/06 08:45 net-old 08c27f3322fe 6a81331a .config console log report info ci-upstream-net-this-kasan-gce WARNING in ieee802154_get_llsec_params
2021/04/05 01:40 net-old a14d273ba159 6a81331a .config console log report info ci-upstream-net-this-kasan-gce WARNING in ieee802154_get_llsec_params
2021/04/04 21:21 net-old a14d273ba159 6a81331a .config console log report info ci-upstream-net-this-kasan-gce WARNING in ieee802154_get_llsec_params
2021/04/04 13:35 net-old a14d273ba159 6a81331a .config console log report info ci-upstream-net-this-kasan-gce WARNING in ieee802154_get_llsec_params
2021/04/04 03:44 net-old a14d273ba159 6a81331a .config console log report info ci-upstream-net-this-kasan-gce WARNING in ieee802154_get_llsec_params
2021/04/03 23:04 net-old a14d273ba159 6a81331a .config console log report info ci-upstream-net-this-kasan-gce WARNING in ieee802154_get_llsec_params
2021/04/03 01:22 net-old 990b03b05b2f 6a81331a .config console log report info ci-upstream-net-this-kasan-gce WARNING in ieee802154_get_llsec_params
2021/04/02 13:31 net-old 9256ce331101 6a81331a .config console log report info ci-upstream-net-this-kasan-gce WARNING in ieee802154_get_llsec_params
2021/03/29 06:32 net-old 1b479fb80160 a8529b82 .config console log report info ci-upstream-net-this-kasan-gce WARNING in ieee802154_get_llsec_params
2021/03/24 22:45 net-old 6f235a69e594 607e3baf .config console log report info ci-upstream-net-this-kasan-gce WARNING in ieee802154_get_llsec_params
2021/03/09 20:49 net-old 4416e98594dc 26967e35 .config console log report info ci-upstream-net-this-kasan-gce WARNING in ieee802154_get_llsec_params
2021/03/08 17:13 net-old 9270bbe258c8 09fbf400 .config console log report info ci-upstream-net-this-kasan-gce WARNING in ieee802154_get_llsec_params
2021/03/03 01:28 net-old 95b39f07a17f e5b64d68 .config console log report info ci-upstream-net-this-kasan-gce WARNING in ieee802154_get_llsec_params
2021/03/03 00:31 net-old 95b39f07a17f e5b64d68 .config console log report info ci-upstream-net-this-kasan-gce WARNING in ieee802154_get_llsec_params
2021/03/02 21:15 net-old 8811f4a9836e 92ead296 .config console log report info ci-upstream-net-this-kasan-gce WARNING in ieee802154_get_llsec_params
2021/02/24 00:30 net-old 42870a1a8728 fcc6d71b .config console log report info ci-upstream-net-this-kasan-gce WARNING in ieee802154_get_llsec_params
2021/04/10 16:14 net-next-old 626b598aa8be bfeda1b1 .config console log report info ci-upstream-net-kasan-gce WARNING in ieee802154_get_llsec_params
2021/04/09 22:04 net-next-old 4438669eb703 6a81331a .config console log report info ci-upstream-net-kasan-gce WARNING in ieee802154_get_llsec_params
2021/04/06 13:27 net-next-old cc0626c2aaed 6a81331a .config console log report info ci-upstream-net-kasan-gce WARNING in ieee802154_get_llsec_params
2021/04/04 13:46 net-next-old 428e68e1a85a 6a81331a .config console log report info ci-upstream-net-kasan-gce WARNING in ieee802154_get_llsec_params
2021/04/04 12:16 net-next-old 428e68e1a85a 6a81331a .config console log report info ci-upstream-net-kasan-gce WARNING in ieee802154_get_llsec_params
2021/03/01 05:53 net-next-old d310ec03a34e 4c37c133 .config console log report info ci-upstream-net-kasan-gce WARNING in ieee802154_get_llsec_params
2021/02/23 13:41 net-next-old d310ec03a34e c26fb06b .config console log report info ci-upstream-net-kasan-gce WARNING in ieee802154_get_llsec_params
2021/03/04 22:00 linux-next f5427c2460eb 9d751681 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in ieee802154_get_llsec_params
2021/03/04 09:30 linux-next f5427c2460eb d7e4e604 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in ieee802154_get_llsec_params
2021/02/26 14:59 linux-next d01f2f7e3557 4c37c133 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in ieee802154_get_llsec_params
2021/02/26 10:53 linux-next d01f2f7e3557 76f7fc95 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in ieee802154_get_llsec_params
* Struck through repros no longer work on HEAD.