INFO: trying to register non-static key in net_passive_dec

Status: upstream: reported C repro on 2026/10/20 19:51
Reported-by: syzbot+d214378994a877e9934c@syzkaller.appspotmail.com
First crash: 23d, last: 7h33m
▶ ▼ Bug presence (1)
Date Name Commit Repro Result
2026/11/11 upstream (ToT) [unknown] C Failed due to an error; will retry later

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: 0 PID: 5981 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106
 assign_lock_key+0x205/0x240 kernel/locking/lockdep.c:1004
 register_lock_class+0x221/0x8a0 kernel/locking/lockdep.c:1317
 __lock_acquire+0x27b/0x7eb0 kernel/locking/lockdep.c:5048
 lock_acquire+0x19e/0x420 kernel/locking/lockdep.c:5790
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0xb4/0x100 kernel/locking/spinlock.c:162
 ref_tracker_dir_exit+0x5a/0x510 lib/ref_tracker.c:164
 net_passive_dec+0xc6/0x120 net/core/net_namespace.c:479
 copy_net_ns+0x427/0x530 net/core/net_namespace.c:534
 create_new_namespaces+0x3ce/0x700 kernel/nsproxy.c:110
 unshare_nsproxy_namespaces+0x11a/0x160 kernel/nsproxy.c:228
 ksys_unshare+0x4fa/0x8f0 kernel/fork.c:3444
 __do_sys_unshare kernel/fork.c:3518 [inline]
 __se_sys_unshare kernel/fork.c:3516 [inline]
 __x64_sys_unshare+0x38/0x40 kernel/fork.c:3516
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fa6b799f559
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa6b88a7028 EFLAGS: 00000246 ORIG_RAX: 0000000000000110
RAX: ffffffffffffffda RBX: 00007fa6b7c26090 RCX: 00007fa6b799f559
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000064000400
RBP: 00007fa6b7a36b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fa6b7c26128 R14: 00007fa6b7c26090 R15: 00007fff37ac89c8
 </TASK>
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 5981 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
RIP: 0010:ref_tracker_dir_exit+0xbf/0x510 lib/ref_tracker.c:165
Code: 01 00 00 48 83 c1 40 48 8d 43 22 48 89 44 24 10 48 89 4c 24 08 48 c1 e9 03 48 89 4c 24 28 48 89 6c 24 20 4d 89 ec 49 c1 ec 03 <43> 80 3c 34 00 74 08 4c 89 ef e8 12 10 7f fd 4d 8b 7d 00 4c 89 ef
RSP: 0018:ffffc9000338fc10 EFLAGS: 00010046
RAX: dead000000000122 RBX: dead000000000100 RCX: 1ffff1100f8797b3
RDX: ffff88807c3cbd60 RSI: 0000000000000004 RDI: ffffc9000338fb00
RBP: ffff88807c3cbdb8 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000671f60 R12: 0000000000000000
R13: 0000000000000000 R14: dffffc0000000000 R15: dffffc0000000000
FS:  00007fa6b88a76c0(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa6b88a6ff8 CR3: 00000000249f8000 CR4: 00000000003506f0
Call Trace:
 <TASK>
 net_passive_dec+0xc6/0x120 net/core/net_namespace.c:479
 copy_net_ns+0x427/0x530 net/core/net_namespace.c:534
 create_new_namespaces+0x3ce/0x700 kernel/nsproxy.c:110
 unshare_nsproxy_namespaces+0x11a/0x160 kernel/nsproxy.c:228
 ksys_unshare+0x4fa/0x8f0 kernel/fork.c:3444
 __do_sys_unshare kernel/fork.c:3518 [inline]
 __se_sys_unshare kernel/fork.c:3516 [inline]
 __x64_sys_unshare+0x38/0x40 kernel/fork.c:3516
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fa6b799f559
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa6b88a7028 EFLAGS: 00000246 ORIG_RAX: 0000000000000110
RAX: ffffffffffffffda RBX: 00007fa6b7c26090 RCX: 00007fa6b799f559
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000064000400
RBP: 00007fa6b7a36b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fa6b7c26128 R14: 00007fa6b7c26090 R15: 00007fff37ac89c8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ref_tracker_dir_exit+0xbf/0x510 lib/ref_tracker.c:165
Code: 01 00 00 48 83 c1 40 48 8d 43 22 48 89 44 24 10 48 89 4c 24 08 48 c1 e9 03 48 89 4c 24 28 48 89 6c 24 20 4d 89 ec 49 c1 ec 03 <43> 80 3c 34 00 74 08 4c 89 ef e8 12 10 7f fd 4d 8b 7d 00 4c 89 ef
RSP: 0018:ffffc9000338fc10 EFLAGS: 00010046
RAX: dead000000000122 RBX: dead000000000100 RCX: 1ffff1100f8797b3
RDX: ffff88807c3cbd60 RSI: 0000000000000004 RDI: ffffc9000338fb00
RBP: ffff88807c3cbdb8 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000671f60 R12: 0000000000000000
R13: 0000000000000000 R14: dffffc0000000000 R15: dffffc0000000000
FS:  00007fa6b88a76c0(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa6b88a6ff8 CR3: 00000000249f8000 CR4: 00000000003506f0
----------------
Code disassembly (best guess):
   0:	01 00                	add    %eax,(%rax)
   2:	00 48 83             	add    %cl,-0x7d(%rax)
   5:	c1 40 48 8d          	roll   $0x8d,0x48(%rax)
   9:	43 22 48 89          	rex.XB and -0x77(%r8),%cl
   d:	44 24 10             	rex.R and $0x10,%al
  10:	48 89 4c 24 08       	mov    %rcx,0x8(%rsp)
  15:	48 c1 e9 03          	shr    $0x3,%rcx
  19:	48 89 4c 24 28       	mov    %rcx,0x28(%rsp)
  1e:	48 89 6c 24 20       	mov    %rbp,0x20(%rsp)
  23:	4d 89 ec             	mov    %r13,%r12
  26:	49 c1 ec 03          	shr    $0x3,%r12
* 2a:	43 80 3c 34 00       	cmpb   $0x0,(%r12,%r14,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 ef             	mov    %r13,%rdi
  34:	e8 12 10 7f fd       	call   0xfd7f104b
  39:	4d 8b 7d 00          	mov    0x0(%r13),%r15
  3d:	4c 89 ef             	mov    %r13,%rdi

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/24 19:34 linux-6.6.y 0aebf2870d53 1d9ca40b .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: trying to register non-static key in net_passive_dec
2026/10/24 16:47 linux-6.6.y 0aebf2870d53 1d9ca40b .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: trying to register non-static key in net_passive_dec
2026/10/24 14:04 linux-6.6.y 0aebf2870d53 1d9ca40b .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: trying to register non-static key in net_passive_dec
2026/11/13 09:58 linux-6.6.y 5139929c698c 26b2fee0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: trying to register non-static key in net_passive_dec
2026/10/26 15:32 linux-6.6.y 0aebf2870d53 168cb7a2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: trying to register non-static key in net_passive_dec
2026/10/20 19:50 linux-6.6.y cecd39af8a1a df8746fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: trying to register non-static key in net_passive_dec
* Struck through repros no longer work on HEAD.