syzbot


INFO: trying to register non-static key in proc_entry_rundown

Status: auto-obsoleted due to no activity on 2023/04/13 05:19
Subsystems: fs
[Documentation on labels]
First crash: 829d, last: 826d

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 PID: 7613 Comm: syz-executor.0 Not tainted 6.2.0-rc6-next-20230203-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Call Trace:
 <TASK>
 __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_subtree+0x260/0x500 fs/proc/generic.c:770
 proc_remove fs/proc/generic.c:793 [inline]
 proc_remove+0x6a/0x90 fs/proc/generic.c:790
 afs_proc_cleanup+0x38/0x80 fs/afs/proc.c:703
 afs_net_init+0xa11/0xc90 fs/afs/main.c:139
 ops_init+0xb9/0x6b0 net/core/net_namespace.c:135
 setup_net+0x793/0xe60 net/core/net_namespace.c:333
 copy_net_ns+0x320/0x6b0 net/core/net_namespace.c:483
 create_new_namespaces+0x3f6/0xb20 kernel/nsproxy.c:110
 copy_namespaces+0x410/0x500 kernel/nsproxy.c:179
 copy_process+0x311d/0x76b0 kernel/fork.c:2272
 kernel_clone+0xeb/0x9a0 kernel/fork.c:2684
 __do_sys_clone+0xba/0x100 kernel/fork.c:2825
 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:0x7fcf3c48c0c9
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:00007fcf3d242118 EFLAGS: 00000206 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007fcf3c5abf80 RCX: 00007fcf3c48c0c9
RDX: 0000000020000040 RSI: 0000000000000000 RDI: 0000000041004000
RBP: 00007fcf3c4e7ae9 R08: 00000000200000c0 R09: 00000000200000c0
R10: 0000000020000080 R11: 0000000000000206 R12: 0000000000000000
R13: 00007ffe93149f2f R14: 00007fcf3d242300 R15: 0000000000022000
 </TASK>
general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 1 PID: 7613 Comm: syz-executor.0 Not tainted 6.2.0-rc6-next-20230203-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
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 d2 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:ffffc9000b017698 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 1ffff92001602ed3 RCX: 0000000000000000
RDX: ffff88806f6f57c0 RSI: ffffffff8205a2ce RDI: 0000000000000018
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000003
R10: fffff52001602ee2 R11: 3e4b5341542f3c20 R12: ffff88801fecb000
R13: dffffc0000000000 R14: 1ffff92001602ef0 R15: ffff88807531ea00
FS:  00007fcf3d242700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2425583558 CR3: 0000000076cb7000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 proc_entry_rundown+0x134/0x1d0 fs/proc/inode.c:275
 remove_proc_subtree+0x260/0x500 fs/proc/generic.c:770
 proc_remove fs/proc/generic.c:793 [inline]
 proc_remove+0x6a/0x90 fs/proc/generic.c:790
 afs_proc_cleanup+0x38/0x80 fs/afs/proc.c:703
 afs_net_init+0xa11/0xc90 fs/afs/main.c:139
 ops_init+0xb9/0x6b0 net/core/net_namespace.c:135
 setup_net+0x793/0xe60 net/core/net_namespace.c:333
 copy_net_ns+0x320/0x6b0 net/core/net_namespace.c:483
 create_new_namespaces+0x3f6/0xb20 kernel/nsproxy.c:110
 copy_namespaces+0x410/0x500 kernel/nsproxy.c:179
 copy_process+0x311d/0x76b0 kernel/fork.c:2272
 kernel_clone+0xeb/0x9a0 kernel/fork.c:2684
 __do_sys_clone+0xba/0x100 kernel/fork.c:2825
 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:0x7fcf3c48c0c9
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:00007fcf3d242118 EFLAGS: 00000206 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007fcf3c5abf80 RCX: 00007fcf3c48c0c9
RDX: 0000000020000040 RSI: 0000000000000000 RDI: 0000000041004000
RBP: 00007fcf3c4e7ae9 R08: 00000000200000c0 R09: 00000000200000c0
R10: 0000000020000080 R11: 0000000000000206 R12: 0000000000000000
R13: 00007ffe93149f2f R14: 00007fcf3d242300 R15: 0000000000022000
 </TASK>
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 d2 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:ffffc9000b017698 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 1ffff92001602ed3 RCX: 0000000000000000
RDX: ffff88806f6f57c0 RSI: ffffffff8205a2ce RDI: 0000000000000018
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000003
R10: fffff52001602ee2 R11: 3e4b5341542f3c20 R12: ffff88801fecb000
R13: dffffc0000000000 R14: 1ffff92001602ef0 R15: ffff88807531ea00
FS:  00007fcf3d242700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2425583558 CR3: 0000000076cb7000 CR4: 00000000003506e0
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 d2 c7 7e ff       	callq  0xff7ec7f1
  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

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/06 01:13 linux-next 4fafd96910ad be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: trying to register non-static key in proc_entry_rundown
2023/02/02 04:44 linux-next ea4dabbb4ad7 9dfcf09c .config console log report info ci-upstream-linux-next-kasan-gce-root INFO: trying to register non-static key in proc_entry_rundown
* Struck through repros no longer work on HEAD.