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: 5229 Comm: syz-executor.0 Not tainted 6.2.0-rc8-syzkaller-00015-gf6feea56f66d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106 assign_lock_key kernel/locking/lockdep.c:981 [inline] register_lock_class+0xf1b/0x1120 kernel/locking/lockdep.c:1294 __lock_acquire+0x109/0x56d0 kernel/locking/lockdep.c:4934 lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3d/0x60 kernel/locking/spinlock.c:162 ref_tracker_dir_exit+0x54/0x3e0 lib/ref_tracker.c:24 net_free net/core/net_namespace.c:442 [inline] net_free+0x98/0xd0 net/core/net_namespace.c:436 copy_net_ns+0x4ee/0x6b0 net/core/net_namespace.c:493 create_new_namespaces+0x3f6/0xb20 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0xc5/0x1f0 kernel/nsproxy.c:228 ksys_unshare+0x449/0x920 kernel/fork.c:3202 __do_sys_unshare kernel/fork.c:3273 [inline] __se_sys_unshare kernel/fork.c:3271 [inline] __ia32_sys_unshare+0x30/0x40 kernel/fork.c:3271 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7f47549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000ff9f359c EFLAGS: 00000296 ORIG_RAX: 0000000000000136 RAX: ffffffffffffffda RBX: 0000000040000000 RCX: 0000000000000000 RDX: 00000000f734d000 RSI: 00000000ff9f3660 RDI: 00000000ff9f3680 RBP: 00000000ff9f3a78 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 PID: 5229 Comm: syz-executor.0 Not tainted 6.2.0-rc8-syzkaller-00015-gf6feea56f66d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 RIP: 0010:ref_tracker_dir_exit+0x96/0x3e0 lib/ref_tracker.c:25 Code: fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 4f 03 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 74 24 60 4c 89 f2 4d 89 f7 48 c1 ea 03 <80> 3c 02 00 0f 85 1f 03 00 00 4c 39 34 24 49 8b 2e 0f 84 34 01 00 RSP: 0018:ffffc9000414fce0 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffffff8163f7b4 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc9000414fc50 RBP: ffff88801dd81cc0 R08: 0000000000000001 R09: 0000000000000003 R10: fffff52000829f8a R11: 3e4b5341542f3c20 R12: ffff88801dd81e80 R13: ffffffff8c660d60 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0063) knlGS:000000005679e380 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000055cd5d1ca680 CR3: 0000000027dfb000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: net_free net/core/net_namespace.c:442 [inline] net_free+0x98/0xd0 net/core/net_namespace.c:436 copy_net_ns+0x4ee/0x6b0 net/core/net_namespace.c:493 create_new_namespaces+0x3f6/0xb20 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0xc5/0x1f0 kernel/nsproxy.c:228 ksys_unshare+0x449/0x920 kernel/fork.c:3202 __do_sys_unshare kernel/fork.c:3273 [inline] __se_sys_unshare kernel/fork.c:3271 [inline] __ia32_sys_unshare+0x30/0x40 kernel/fork.c:3271 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7f47549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000ff9f359c EFLAGS: 00000296 ORIG_RAX: 0000000000000136 RAX: ffffffffffffffda RBX: 0000000040000000 RCX: 0000000000000000 RDX: 00000000f734d000 RSI: 00000000ff9f3660 RDI: 00000000ff9f3680 RBP: 00000000ff9f3a78 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ref_tracker_dir_exit+0x96/0x3e0 lib/ref_tracker.c:25 Code: fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 4f 03 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 74 24 60 4c 89 f2 4d 89 f7 48 c1 ea 03 <80> 3c 02 00 0f 85 1f 03 00 00 4c 39 34 24 49 8b 2e 0f 84 34 01 00 RSP: 0018:ffffc9000414fce0 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffffff8163f7b4 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc9000414fc50 RBP: ffff88801dd81cc0 R08: 0000000000000001 R09: 0000000000000003 R10: fffff52000829f8a R11: 3e4b5341542f3c20 R12: ffff88801dd81e80 R13: ffffffff8c660d60 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0063) knlGS:000000005679e380 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000055cd5d1ca680 CR3: 0000000027dfb000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 03 74 c0 01 add 0x1(%rax,%rax,8),%esi 4: 10 05 03 74 b8 01 adc %al,0x1b87403(%rip) # 0x1b8740d a: 10 06 adc %al,(%rsi) c: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 10: 10 07 adc %al,(%rdi) 12: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi 16: 10 08 adc %cl,(%rax) 18: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1c: 00 00 add %al,(%rax) 1e: 00 00 add %al,(%rax) 20: 00 51 52 add %dl,0x52(%rcx) 23: 55 push %rbp 24: 89 e5 mov %esp,%ebp 26: 0f 34 sysenter 28: cd 80 int $0x80 * 2a: 5d pop %rbp <-- trapping instruction 2b: 5a pop %rdx 2c: 59 pop %rcx 2d: c3 retq 2e: 90 nop 2f: 90 nop 30: 90 nop 31: 90 nop 32: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 39: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi