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: 6102 Comm: syz-executor.0 Not tainted 6.2.0-rc7-syzkaller-01624-g168de0233586 #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 copy_namespaces+0x3b3/0x4a0 kernel/nsproxy.c:179 copy_process+0x30df/0x7530 kernel/fork.c:2269 kernel_clone+0xeb/0x9f0 kernel/fork.c:2681 __do_sys_clone+0xba/0x100 kernel/fork.c:2822 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fb90a88c0f9 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:00007fb90b67b118 EFLAGS: 00000206 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007fb90a9abf80 RCX: 00007fb90a88c0f9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000042087000 RBP: 00007fb90a8e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007fffbb25ad4f R14: 00007fb90b67b300 R15: 0000000000022000 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: 6102 Comm: syz-executor.0 Not tainted 6.2.0-rc7-syzkaller-01624-g168de0233586 #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:ffffc9000383fa28 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffffff81640144 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc9000383f998 RBP: ffff88804e1e3980 R08: 0000000000000001 R09: 0000000000000003 R10: fffff52000707f33 R11: 3e4b5341542f3c20 R12: ffff88804e1e3b40 R13: ffffffff8c65f3c0 R14: 0000000000000000 R15: 0000000000000000 FS: 00007fb90b67b700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1816384998 CR3: 000000005832b000 CR4: 00000000003506f0 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 copy_namespaces+0x3b3/0x4a0 kernel/nsproxy.c:179 copy_process+0x30df/0x7530 kernel/fork.c:2269 kernel_clone+0xeb/0x9f0 kernel/fork.c:2681 __do_sys_clone+0xba/0x100 kernel/fork.c:2822 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fb90a88c0f9 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:00007fb90b67b118 EFLAGS: 00000206 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007fb90a9abf80 RCX: 00007fb90a88c0f9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000042087000 RBP: 00007fb90a8e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007fffbb25ad4f R14: 00007fb90b67b300 R15: 0000000000022000 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:ffffc9000383fa28 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffffff81640144 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc9000383f998 RBP: ffff88804e1e3980 R08: 0000000000000001 R09: 0000000000000003 R10: fffff52000707f33 R11: 3e4b5341542f3c20 R12: ffff88804e1e3b40 R13: ffffffff8c65f3c0 R14: 0000000000000000 R15: 0000000000000000 FS: 00007fb90b67b700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1816384998 CR3: 000000005832b000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 3 bytes skipped: 0: 48 c1 ea 03 shr $0x3,%rdx 4: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 8: 0f 85 4f 03 00 00 jne 0x35d e: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 15: fc ff df 18: 4d 8b 74 24 60 mov 0x60(%r12),%r14 1d: 4c 89 f2 mov %r14,%rdx 20: 4d 89 f7 mov %r14,%r15 23: 48 c1 ea 03 shr $0x3,%rdx * 27: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2b: 0f 85 1f 03 00 00 jne 0x350 31: 4c 39 34 24 cmp %r14,(%rsp) 35: 49 8b 2e mov (%r14),%rbp 38: 0f .byte 0xf 39: 84 34 01 test %dh,(%rcx,%rax,1)