INFO: trying to register non-static key.
The code is fine but needs lockdep annotation, or maybe
you didn't initialize this object before use?
turning off the locking correctness validator.
CPU: 1 PID: 18248 Comm: syz-executor.5 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
assign_lock_key kernel/locking/lockdep.c:728 [inline]
register_lock_class+0xe82/0x11c0 kernel/locking/lockdep.c:754
__lock_acquire+0x17d/0x3ff0 kernel/locking/lockdep.c:3304
lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908
__mutex_lock_common kernel/locking/mutex.c:937 [inline]
__mutex_lock+0xd7/0x1190 kernel/locking/mutex.c:1078
ieee802154_del_llsec_key+0x3f/0x70 net/mac802154/cfg.c:358
rdev_del_llsec_key net/ieee802154/rdev-ops.h:268 [inline]
nl802154_del_llsec_key+0x24f/0x330 net/ieee802154/nl802154.c:1639
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:2463
genl_rcv+0x24/0x40 net/netlink/genetlink.c:638
netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline]
netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351
netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917
sock_sendmsg_nosec net/socket.c:651 [inline]
sock_sendmsg+0xc3/0x120 net/socket.c:661
___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227
__sys_sendmsg net/socket.c:2265 [inline]
__do_sys_sendmsg net/socket.c:2274 [inline]
__se_sys_sendmsg net/socket.c:2272 [inline]
__x64_sys_sendmsg+0x132/0x220 net/socket.c:2272
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fcd3c20c0c9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcd3a75d168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fcd3c32c050 RCX: 00007fcd3c20c0c9
RDX: 0000000000000000 RSI: 0000000020000500 RDI: 0000000000000007
RBP: 00007fcd3c267ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd4bcdbbcf R14: 00007fcd3a75d300 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
CPU: 0 PID: 18248 Comm: syz-executor.5 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
RIP: 0010:llsec_key_id_equal+0x24/0x430 net/mac802154/llsec.c:199
Code: 5c c3 0f 1f 40 00 41 56 41 55 41 54 55 48 89 f5 53 48 89 fb e8 9d 0c 97 f9 48 89 da 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 04 02 84 c0 74 06 0f 8e aa 02 00 00 48 89 ea 44 0f b6 23 48
RSP: 0018:ffff8880a10b7560 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000010 RCX: ffffc90006006000
RDX: 0000000000000002 RSI: ffffffff87cb78d3 RDI: 0000000000000010
RBP: ffff8880a10b7618 R08: 0000000000000000 R09: ffffed10142e353a
R10: ffff8880a171a9d7 R11: ffffffff8c66505b R12: ffff8880a10b7618
R13: ffff8880a171aaa0 R14: dffffc0000000000 R15: ffff8880a10b7618
FS: 00007fcd3a75d700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd9262bf718 CR3: 000000009f6cb000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
mac802154_llsec_key_del+0x7f/0x210 net/mac802154/llsec.c:286
ieee802154_del_llsec_key+0x4e/0x70 net/mac802154/cfg.c:359
rdev_del_llsec_key net/ieee802154/rdev-ops.h:268 [inline]
nl802154_del_llsec_key+0x24f/0x330 net/ieee802154/nl802154.c:1639
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:2463
genl_rcv+0x24/0x40 net/netlink/genetlink.c:638
netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline]
netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351
netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917
sock_sendmsg_nosec net/socket.c:651 [inline]
sock_sendmsg+0xc3/0x120 net/socket.c:661
___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227
print_req_error: I/O error, dev loop0, sector 4194304
print_req_error: I/O error, dev loop0, sector 4194304
Buffer I/O error on dev loop0p16, logical block 0, async page read
__sys_sendmsg net/socket.c:2265 [inline]
__do_sys_sendmsg net/socket.c:2274 [inline]
__se_sys_sendmsg net/socket.c:2272 [inline]
__x64_sys_sendmsg+0x132/0x220 net/socket.c:2272
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fcd3c20c0c9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcd3a75d168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fcd3c32c050 RCX: 00007fcd3c20c0c9
RDX: 0000000000000000 RSI: 0000000020000500 RDI: 0000000000000007
RBP: 00007fcd3c267ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd4bcdbbcf R14: 00007fcd3a75d300 R15: 0000000000022000
Modules linked in:
---[ end trace 9dea41745530a4aa ]---
RIP: 0010:llsec_key_id_equal+0x24/0x430 net/mac802154/llsec.c:199
Code: 5c c3 0f 1f 40 00 41 56 41 55 41 54 55 48 89 f5 53 48 89 fb e8 9d 0c 97 f9 48 89 da 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 04 02 84 c0 74 06 0f 8e aa 02 00 00 48 89 ea 44 0f b6 23 48
RSP: 0018:ffff8880a10b7560 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000010 RCX: ffffc90006006000
RDX: 0000000000000002 RSI: ffffffff87cb78d3 RDI: 0000000000000010
RBP: ffff8880a10b7618 R08: 0000000000000000 R09: ffffed10142e353a
R10: ffff8880a171a9d7 R11: ffffffff8c66505b R12: ffff8880a10b7618
R13: ffff8880a171aaa0 R14: dffffc0000000000 R15: ffff8880a10b7618
FS: 00007fcd3a75d700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
print_req_error: I/O error, dev loop0, sector 4194304
print_req_error: I/O error, dev loop0, sector 4194304
Buffer I/O error on dev loop0p16, logical block 0, async page read
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5eada86000 CR3: 000000009f6cb000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 5c pop %rsp
1: c3 retq
2: 0f 1f 40 00 nopl 0x0(%rax)
6: 41 56 push %r14
8: 41 55 push %r13
a: 41 54 push %r12
c: 55 push %rbp
d: 48 89 f5 mov %rsi,%rbp
10: 53 push %rbx
11: 48 89 fb mov %rdi,%rbx
14: e8 9d 0c 97 f9 callq 0xf9970cb6
19: 48 89 da mov %rbx,%rdx
1c: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
23: fc ff df
26: 48 c1 ea 03 shr $0x3,%rdx
* 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction
2e: 84 c0 test %al,%al
30: 74 06 je 0x38
32: 0f 8e aa 02 00 00 jle 0x2e2
38: 48 89 ea mov %rbp,%rdx
3b: 44 0f b6 23 movzbl (%rbx),%r12d
3f: 48 rex.W