syzbot


INFO: trying to register non-static key in nl802154_dump_llsec_seclevel

Status: auto-closed as invalid on 2021/06/24 00:01
Reported-by: syzbot+cfcaa661520d47e67884@syzkaller.appspotmail.com
First crash: 498d, last: 498d

Sample crash report:
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
CPU: 0 PID: 21662 Comm: syz-executor.5 Not tainted 4.14.222-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
 rdev_lock_llsec_table net/ieee802154/rdev-ops.h:226 [inline]
 nl802154_dump_llsec_seclevel+0x137/0x990 net/ieee802154/nl802154.c:2023
 genl_lock_dumpit+0x60/0x90 net/netlink/genetlink.c:481
 netlink_dump+0x39c/0xad0 net/netlink/af_netlink.c:2203
 __netlink_dump_start+0x4e2/0x740 net/netlink/af_netlink.c:2300
 genl_family_rcv_msg+0x95c/0xb20 net/netlink/genetlink.c:549
 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:0x465ef9
RSP: 002b:00007f4fb90a1188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465ef9
RDX: 0000000000000000 RSI: 00000000200003c0 RDI: 0000000000000005
RBP: 00000000004bcd1c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffe8cf2265f R14: 00007f4fb90a1300 R15: 0000000000022000
CPU: 1 PID: 21664 Comm: syz-executor.4 Not tainted 4.14.222-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
 fail_dump lib/fault-inject.c:51 [inline]
 should_fail.cold+0x10a/0x149 lib/fault-inject.c:149
 should_failslab+0xd6/0x130 mm/failslab.c:32
 slab_pre_alloc_hook mm/slab.h:421 [inline]
 slab_alloc_node mm/slab.c:3297 [inline]
 kmem_cache_alloc_node+0x263/0x410 mm/slab.c:3640
 __alloc_skb+0x5c/0x510 net/core/skbuff.c:193
 alloc_skb include/linux/skbuff.h:980 [inline]
 netlink_dump+0x21b/0xad0 net/netlink/af_netlink.c:2184
 __netlink_dump_start+0x4e2/0x740 net/netlink/af_netlink.c:2300
 genl_family_rcv_msg+0x95c/0xb20 net/netlink/genetlink.c:549
 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:0x465ef9
RSP: 002b:00007faa5e6ac188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465ef9
RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000004
RBP: 00007faa5e6ac1d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffcee78f1ef R14: 00007faa5e6ac300 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: 0 PID: 21662 Comm: syz-executor.5 Not tainted 4.14.222-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff88809a65e480 task.stack: ffff88805f218000
RIP: 0010:nl802154_send_seclevel net/ieee802154/nl802154.c:1983 [inline]
RIP: 0010:nl802154_dump_llsec_seclevel+0x3e7/0x990 net/ieee802154/nl802154.c:2031
RSP: 0018:ffff88805f21f5b8 EFLAGS: 00010202
RAX: 0000000000000002 RBX: ffff888050c44c1c RCX: ffffc900062cd000
RDX: 0000000000040000 RSI: ffffffff86da6dda RDI: ffff888050c44c20
RBP: ffff888098e07ac0 R08: 0000000000000000 R09: ffff888050c44c20
R10: ffff888050c44c1b R11: ffff88809a65e480 R12: ffff88805f21f628
R13: ffff888050c44c14 R14: dffffc0000000000 R15: 0000000000000000
FS:  00007f4fb90a1700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000050f970 CR3: 0000000098f0d000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 genl_lock_dumpit+0x60/0x90 net/netlink/genetlink.c:481
 netlink_dump+0x39c/0xad0 net/netlink/af_netlink.c:2203
 __netlink_dump_start+0x4e2/0x740 net/netlink/af_netlink.c:2300
 genl_family_rcv_msg+0x95c/0xb20 net/netlink/genetlink.c:549
 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:0x465ef9
RSP: 002b:00007f4fb90a1188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465ef9
RDX: 0000000000000000 RSI: 00000000200003c0 RDI: 0000000000000005
RBP: 00000000004bcd1c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffe8cf2265f R14: 00007f4fb90a1300 R15: 0000000000022000
Code: 74 4d fc 85 c0 0f 88 29 03 00 00 e8 34 b2 7a fa 48 85 db 0f 84 1b 03 00 00 e8 26 b2 7a fa 49 8d 47 10 48 89 44 24 30 48 c1 e8 03 <42> 0f b6 04 30 84 c0 74 06 0f 8e ca 04 00 00 41 0f b6 47 10 4c 
RIP: nl802154_send_seclevel net/ieee802154/nl802154.c:1983 [inline] RSP: ffff88805f21f5b8
RIP: nl802154_dump_llsec_seclevel+0x3e7/0x990 net/ieee802154/nl802154.c:2031 RSP: ffff88805f21f5b8
---[ end trace fc63372c021edf7e ]---

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-14 2021/02/24 00:00 linux-4.14.y 3242aa3a635c fcc6d71b .config log report info INFO: trying to register non-static key in nl802154_dump_llsec_seclevel