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: 8729 Comm: kworker/u4:24 Not tainted 6.2.0-rc6-next-20230202-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Workqueue: netns cleanup_net
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106
assign_lock_key kernel/locking/lockdep.c:982 [inline]
register_lock_class+0xdb6/0x1120 kernel/locking/lockdep.c:1295
__lock_acquire+0x10a/0x5df0 kernel/locking/lockdep.c:4951
lock_acquire.part.0+0x11c/0x370 kernel/locking/lockdep.c:5691
__raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
_raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
spin_lock include/linux/spinlock.h:350 [inline]
proc_entry_rundown+0xeb/0x1d0 fs/proc/inode.c:271
remove_proc_entry+0x1b3/0x460 fs/proc/generic.c:716
ip6mr_net_exit+0x43/0xf0 net/ipv6/ip6mr.c:1350
ops_exit_list+0xb0/0x170 net/core/net_namespace.c:169
cleanup_net+0x4ee/0xb10 net/core/net_namespace.c:606
process_one_work+0x9bf/0x1820 kernel/workqueue.c:2390
worker_thread+0x669/0x1090 kernel/workqueue.c:2537
kthread+0x2e8/0x3a0 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 0 PID: 8729 Comm: kworker/u4:24 Not tainted 6.2.0-rc6-next-20230202-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Workqueue: netns cleanup_net
RIP: 0010:close_pdeo+0x79/0x170 fs/proc/inode.c:234
Code: c7 40 10 f3 f3 f3 f3 65 48 8b 04 25 28 00 00 00 48 89 84 24 b8 00 00 00 31 c0 e8 c2 c7 7e ff 48 8d 7d 18 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 74 06 0f 8e c6 00 00 00 44 0f b6 6d 18 31 ff
RSP: 0018:ffffc90015e47980 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 1ffff92002bc8f30 RCX: 0000000000000000
RDX: ffff8880274f9d40 RSI: ffffffff8206030e RDI: 0000000000000018
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000003
R10: fffff52002bc8f3f R11: 3e4b5341542f3c20 R12: ffff88802b6863c0
R13: dffffc0000000000 R14: 1ffff92002bc8f4d R15: fffffbfff1c52e4c
FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020404030 CR3: 000000000c571000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
proc_entry_rundown+0x134/0x1d0 fs/proc/inode.c:275
remove_proc_entry+0x1b3/0x460 fs/proc/generic.c:716
ip6mr_net_exit+0x43/0xf0 net/ipv6/ip6mr.c:1350
ops_exit_list+0xb0/0x170 net/core/net_namespace.c:169
cleanup_net+0x4ee/0xb10 net/core/net_namespace.c:606
process_one_work+0x9bf/0x1820 kernel/workqueue.c:2390
worker_thread+0x669/0x1090 kernel/workqueue.c:2537
kthread+0x2e8/0x3a0 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:close_pdeo+0x79/0x170 fs/proc/inode.c:234
Code: c7 40 10 f3 f3 f3 f3 65 48 8b 04 25 28 00 00 00 48 89 84 24 b8 00 00 00 31 c0 e8 c2 c7 7e ff 48 8d 7d 18 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 74 06 0f 8e c6 00 00 00 44 0f b6 6d 18 31 ff
RSP: 0018:ffffc90015e47980 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 1ffff92002bc8f30 RCX: 0000000000000000
RDX: ffff8880274f9d40 RSI: ffffffff8206030e RDI: 0000000000000018
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000003
R10: fffff52002bc8f3f R11: 3e4b5341542f3c20 R12: ffff88802b6863c0
R13: dffffc0000000000 R14: 1ffff92002bc8f4d R15: fffffbfff1c52e4c
FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020404030 CR3: 000000000c571000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: c7 40 10 f3 f3 f3 f3 movl $0xf3f3f3f3,0x10(%rax)
7: 65 48 8b 04 25 28 00 mov %gs:0x28,%rax
e: 00 00
10: 48 89 84 24 b8 00 00 mov %rax,0xb8(%rsp)
17: 00
18: 31 c0 xor %eax,%eax
1a: e8 c2 c7 7e ff callq 0xff7ec7e1
1f: 48 8d 7d 18 lea 0x18(%rbp),%rdi
23: 48 89 f8 mov %rdi,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 74 06 je 0x39
33: 0f 8e c6 00 00 00 jle 0xff
39: 44 0f b6 6d 18 movzbl 0x18(%rbp),%r13d
3e: 31 ff xor %edi,%edi