syzbot


INFO: trying to register non-static key in skb_queue_tail (2)

Status: closed as invalid on 2025/10/07 21:19
Subsystems: hams
[Documentation on labels]
First crash: 240d, last: 228d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: trying to register non-static key in skb_queue_tail wireless -1 C unreliable done 171 951d 2054d 23/29 fixed on 2023/09/28 17:51

Sample crash report:
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 UID: 0 PID: 13730 Comm: syz.1.1888 Not tainted 6.16.0-rc2-syzkaller-00161-g714db279942b #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
 assign_lock_key+0x133/0x150 kernel/locking/lockdep.c:987
 register_lock_class+0x105/0x320 kernel/locking/lockdep.c:1302
 __lock_acquire+0x99/0xd20 kernel/locking/lockdep.c:5115
 lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5871
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0xa7/0xf0 kernel/locking/spinlock.c:162
 skb_queue_tail+0x30/0xf0 net/core/skbuff.c:4033
 rose_transmit_link+0x2ea/0x740 net/rose/rose_link.c:281
 rose_write_internal+0x11dc/0x1ac0 net/rose/rose_subr.c:198
 rose_connect+0x8ee/0x10a0 net/rose/af_rose.c:879
 __sys_connect_file net/socket.c:2038 [inline]
 __sys_connect+0x313/0x440 net/socket.c:2057
 __do_sys_connect net/socket.c:2063 [inline]
 __se_sys_connect net/socket.c:2060 [inline]
 __x64_sys_connect+0x7a/0x90 net/socket.c:2060
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6f2d78e929
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f6f2e632038 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007f6f2d9b5fa0 RCX: 00007f6f2d78e929
RDX: 0000000000000040 RSI: 00002000000000c0 RDI: 0000000000000006
RBP: 00007f6f2d810b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f6f2d9b5fa0 R15: 00007ffc9347a448
 </TASK>
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 UID: 0 PID: 13730 Comm: syz.1.1888 Not tainted 6.16.0-rc2-syzkaller-00161-g714db279942b #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:__skb_insert include/linux/skbuff.h:2284 [inline]
RIP: 0010:__skb_queue_before include/linux/skbuff.h:2390 [inline]
RIP: 0010:__skb_queue_tail include/linux/skbuff.h:2423 [inline]
RIP: 0010:skb_queue_tail+0x94/0xf0 net/core/skbuff.c:4034
Code: 1c 24 49 8d 7c 24 08 48 89 f8 48 c1 e8 03 42 80 3c 38 00 74 05 e8 0c 3d dc f8 4d 89 6c 24 08 4c 89 65 00 4c 89 e8 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 ef e8 ed 3c dc f8 4d 89 65 00 48 83 c3
RSP: 0018:ffffc90003057a30 EFLAGS: 00010046
RAX: 0000000000000000 RBX: ffff88805995e438 RCX: dffffc0000000000
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffff888045bf7008
RBP: ffff88805995e440 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff5200060af24 R12: ffff888045bf7000
R13: 0000000000000000 R14: ffff88805995e450 R15: dffffc0000000000
FS:  00007f6f2e6326c0(0000) GS:ffff888125d51000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000007c69c000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 rose_transmit_link+0x2ea/0x740 net/rose/rose_link.c:281
 rose_write_internal+0x11dc/0x1ac0 net/rose/rose_subr.c:198
 rose_connect+0x8ee/0x10a0 net/rose/af_rose.c:879
 __sys_connect_file net/socket.c:2038 [inline]
 __sys_connect+0x313/0x440 net/socket.c:2057
 __do_sys_connect net/socket.c:2063 [inline]
 __se_sys_connect net/socket.c:2060 [inline]
 __x64_sys_connect+0x7a/0x90 net/socket.c:2060
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6f2d78e929
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f6f2e632038 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007f6f2d9b5fa0 RCX: 00007f6f2d78e929
RDX: 0000000000000040 RSI: 00002000000000c0 RDI: 0000000000000006
RBP: 00007f6f2d810b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f6f2d9b5fa0 R15: 00007ffc9347a448
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__skb_insert include/linux/skbuff.h:2284 [inline]
RIP: 0010:__skb_queue_before include/linux/skbuff.h:2390 [inline]
RIP: 0010:__skb_queue_tail include/linux/skbuff.h:2423 [inline]
RIP: 0010:skb_queue_tail+0x94/0xf0 net/core/skbuff.c:4034
Code: 1c 24 49 8d 7c 24 08 48 89 f8 48 c1 e8 03 42 80 3c 38 00 74 05 e8 0c 3d dc f8 4d 89 6c 24 08 4c 89 65 00 4c 89 e8 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 ef e8 ed 3c dc f8 4d 89 65 00 48 83 c3
RSP: 0018:ffffc90003057a30 EFLAGS: 00010046
RAX: 0000000000000000 RBX: ffff88805995e438 RCX: dffffc0000000000
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffff888045bf7008
RBP: ffff88805995e440 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff5200060af24 R12: ffff888045bf7000
R13: 0000000000000000 R14: ffff88805995e450 R15: dffffc0000000000
FS:  00007f6f2e6326c0(0000) GS:ffff888125d51000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000007c69c000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	1c 24                	sbb    $0x24,%al
   2:	49 8d 7c 24 08       	lea    0x8(%r12),%rdi
   7:	48 89 f8             	mov    %rdi,%rax
   a:	48 c1 e8 03          	shr    $0x3,%rax
   e:	42 80 3c 38 00       	cmpb   $0x0,(%rax,%r15,1)
  13:	74 05                	je     0x1a
  15:	e8 0c 3d dc f8       	call   0xf8dc3d26
  1a:	4d 89 6c 24 08       	mov    %r13,0x8(%r12)
  1f:	4c 89 65 00          	mov    %r12,0x0(%rbp)
  23:	4c 89 e8             	mov    %r13,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 38 00       	cmpb   $0x0,(%rax,%r15,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 ef             	mov    %r13,%rdi
  34:	e8 ed 3c dc f8       	call   0xf8dc3d26
  39:	4d 89 65 00          	mov    %r12,0x0(%r13)
  3d:	48                   	rex.W
  3e:	83                   	.byte 0x83
  3f:	c3                   	ret

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/22 09:47 net 714db279942b d6cdfb8a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: trying to register non-static key in skb_queue_tail
2025/06/10 14:16 net-next 2c7e4a2663a1 5d7e17ca .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: trying to register non-static key in skb_queue_tail
* Struck through repros no longer work on HEAD.