syzbot


INFO: trying to register non-static key in ieee802154_add_seclevel

Status: auto-closed as invalid on 2021/08/18 10:02
Reported-by: syzbot+92759a406ff33873f33e@syzkaller.appspotmail.com
First crash: 1343d, last: 1297d

Sample crash report:
INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
CPU: 0 PID: 15796 Comm: syz-executor.3 Not tainted 4.14.231-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 register_lock_class+0x32b/0x1320 kernel/locking/lockdep.c:768
 __lock_acquire+0x167/0x3f20 kernel/locking/lockdep.c:3378
 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998
 __mutex_lock_common kernel/locking/mutex.c:756 [inline]
 __mutex_lock+0xc4/0x1310 kernel/locking/mutex.c:893
 ieee802154_add_seclevel+0x3f/0x70 net/mac802154/cfg.c:373
 rdev_add_seclevel net/ieee802154/rdev-ops.h:276 [inline]
 nl802154_add_llsec_seclevel+0x179/0x200 net/ieee802154/nl802154.c:2119
 genl_family_rcv_msg+0x572/0xb20 net/netlink/genetlink.c:600
 genl_rcv_msg+0xaf/0x140 net/netlink/genetlink.c:625
 netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2433
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:636
 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline]
 netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1313
 netlink_sendmsg+0x62e/0xb80 net/netlink/af_netlink.c:1878
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg+0xb5/0x100 net/socket.c:656
 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
 __sys_sendmsg+0xa3/0x120 net/socket.c:2096
 SYSC_sendmsg net/socket.c:2107 [inline]
 SyS_sendmsg+0x27/0x40 net/socket.c:2103
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x466459
RSP: 002b:00007f0220d12188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459
RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000008
RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffd214e513f R14: 00007f0220d12300 R15: 0000000000022000
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
Modules linked in:
CPU: 1 PID: 15796 Comm: syz-executor.3 Not tainted 4.14.231-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff88809cc3c600 task.stack: ffff88801bee0000
RIP: 0010:llsec_find_seclevel net/mac802154/llsec.c:481 [inline]
RIP: 0010:mac802154_llsec_seclevel_add+0xae/0x480 net/mac802154/llsec.c:500
RSP: 0018:ffff88801bee7688 EFLAGS: 00010202
RAX: 0000000000000002 RBX: 0000000000000000 RCX: ffffc900090e8000
RDX: 0000000000040000 RSI: ffffffff86de3b33 RDI: ffff888097035750
RBP: ffff88801bee7728 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: ffff88809cc3c600 R12: dffffc0000000000
R13: 0000000000000010 R14: ffff8880970357c0 R15: 0000000000000000
FS:  00007f0220d12700(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd54c0380e8 CR3: 000000009f065000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ieee802154_add_seclevel+0x4e/0x70 net/mac802154/cfg.c:374
 rdev_add_seclevel net/ieee802154/rdev-ops.h:276 [inline]
 nl802154_add_llsec_seclevel+0x179/0x200 net/ieee802154/nl802154.c:2119
 genl_family_rcv_msg+0x572/0xb20 net/netlink/genetlink.c:600
 genl_rcv_msg+0xaf/0x140 net/netlink/genetlink.c:625
 netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2433
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:636
 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline]
 netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1313
 netlink_sendmsg+0x62e/0xb80 net/netlink/af_netlink.c:1878
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg+0xb5/0x100 net/socket.c:656
 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
 __sys_sendmsg+0xa3/0x120 net/socket.c:2096
 SYSC_sendmsg net/socket.c:2107 [inline]
 SyS_sendmsg+0x27/0x40 net/socket.c:2103
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x466459
RSP: 002b:00007f0220d12188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459
RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000008
RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffd214e513f R14: 00007f0220d12300 R15: 0000000000022000
Code: 49 bc 00 00 00 00 00 fc ff df 48 89 44 24 10 48 c1 e8 03 4c 01 e0 48 89 44 24 18 e8 3d ea 76 fa 4c 8d 6b 10 4c 89 e8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 74 06 0f 8e f7 02 00 00 44 38 7b 10 0f 85 
RIP: llsec_find_seclevel net/mac802154/llsec.c:481 [inline] RSP: ffff88801bee7688
RIP: mac802154_llsec_seclevel_add+0xae/0x480 net/mac802154/llsec.c:500 RSP: ffff88801bee7688
---[ end trace 66224e48a5b46495 ]---

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/20 10:01 linux-4.14.y cf256fbcbe34 c0ced557 .config console log report info ci2-linux-4-14 INFO: trying to register non-static key in ieee802154_add_seclevel
2021/03/05 16:38 linux-4.14.y 397a88b2cc86 9d751681 .config console log report info ci2-linux-4-14 INFO: trying to register non-static key in ieee802154_add_seclevel
* Struck through repros no longer work on HEAD.