Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 UID: 0 PID: 6342 Comm: syz.3.100 Not tainted 6.16.0-rc3-next-20250623-syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:pidfs_free_pid+0xaf/0x140 fs/pidfs.c:162
Code: f0 ff ff 73 e4 43 80 3c 3c 00 74 08 4c 89 f7 e8 a7 1b de ff 49 83 3e 00 0f 85 84 00 00 00 e8 08 f2 79 ff 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 82 1b de ff 4c 8b 33 4d 85 f6 74
RSP: 0018:ffffc90000a08b90 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8880207b3c00
RDX: 0000000000000100 RSI: 0000000000000001 RDI: ffff88802f7f4970
RBP: 0000000000000001 R08: ffff88802f7f4903 R09: 1ffff11005efe920
R10: dffffc0000000000 R11: ffffed1005efe921 R12: 1ffff11005efe92d
R13: ffffffff81a83684 R14: ffff88802f7f4968 R15: dffffc0000000000
FS: 00007fbea39ab6c0(0000) GS:ffff888125d25000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000010000 CR3: 0000000032b18000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
put_pid+0x9c/0x130 kernel/pid.c:103
rcu_do_batch kernel/rcu/tree.c:2582 [inline]
rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2838
handle_softirqs+0x283/0x870 kernel/softirq.c:579
__do_softirq kernel/softirq.c:613 [inline]
invoke_softirq kernel/softirq.c:453 [inline]
__irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:680
irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline]
sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1050
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:finish_task_switch+0x26b/0x950 kernel/sched/core.c:5181
Code: 0f 84 3c 01 00 00 48 85 db 0f 85 63 01 00 00 e9 27 05 00 00 4c 8b 75 d0 4c 89 e7 e8 0f 9f de 09 e8 6a fa 35 00 fb 4c 8b 65 c0 <49> 8d bc 24 18 16 00 00 48 89 f8 48 c1 e8 03 42 0f b6 04 28 84 c0
RSP: 0018:ffffc9000b56f538 EFLAGS: 00000282
RAX: 26ca75c717ead100 RBX: 0000000000000000 RCX: 26ca75c717ead100
RDX: 0000000000000000 RSI: ffffffff8d991910 RDI: ffffffff8be322c0
RBP: ffffc9000b56f590 R08: ffffffff8fa18cf7 R09: 1ffffffff1f4319e
R10: dffffc0000000000 R11: fffffbfff1f4319f R12: ffff8880207b3c00
R13: dffffc0000000000 R14: ffff888032798000 R15: ffff8880b873ab18
context_switch kernel/sched/core.c:5316 [inline]
__schedule+0x16fd/0x4d00 kernel/sched/core.c:6696
__schedule_loop kernel/sched/core.c:6774 [inline]
schedule+0x165/0x360 kernel/sched/core.c:6789
schedule_timeout+0x9a/0x270 kernel/time/sleep_timeout.c:75
do_wait_for_common kernel/sched/completion.c:100 [inline]
__wait_for_common kernel/sched/completion.c:121 [inline]
wait_for_common kernel/sched/completion.c:132 [inline]
wait_for_completion+0x2bf/0x5d0 kernel/sched/completion.c:153
rdmsr_safe_on_cpu+0x150/0x230 arch/x86/lib/msr-smp.c:181
msr_read+0x14d/0x250 arch/x86/kernel/msr.c:66
vfs_read+0x1fd/0x980 fs/read_write.c:570
ksys_read+0x145/0x250 fs/read_write.c:715
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fbea2b8e929
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fbea39ab038 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007fbea2db5fa0 RCX: 00007fbea2b8e929
RDX: 0000000000019000 RSI: 0000200000002000 RDI: 0000000000000004
RBP: 00007fbea2c10b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fbea2db5fa0 R15: 00007fff2fd66228
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:pidfs_free_pid+0xaf/0x140 fs/pidfs.c:162
Code: f0 ff ff 73 e4 43 80 3c 3c 00 74 08 4c 89 f7 e8 a7 1b de ff 49 83 3e 00 0f 85 84 00 00 00 e8 08 f2 79 ff 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 82 1b de ff 4c 8b 33 4d 85 f6 74
RSP: 0018:ffffc90000a08b90 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8880207b3c00
RDX: 0000000000000100 RSI: 0000000000000001 RDI: ffff88802f7f4970
RBP: 0000000000000001 R08: ffff88802f7f4903 R09: 1ffff11005efe920
R10: dffffc0000000000 R11: ffffed1005efe921 R12: 1ffff11005efe92d
R13: ffffffff81a83684 R14: ffff88802f7f4968 R15: dffffc0000000000
FS: 00007fbea39ab6c0(0000) GS:ffff888125d25000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000010000 CR3: 0000000032b18000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: f0 ff lock (bad)
2: ff 73 e4 push -0x1c(%rbx)
5: 43 80 3c 3c 00 cmpb $0x0,(%r12,%r15,1)
a: 74 08 je 0x14
c: 4c 89 f7 mov %r14,%rdi
f: e8 a7 1b de ff call 0xffde1bbb
14: 49 83 3e 00 cmpq $0x0,(%r14)
18: 0f 85 84 00 00 00 jne 0xa2
1e: e8 08 f2 79 ff call 0xff79f22b
23: 48 89 d8 mov %rbx,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction
2f: 74 08 je 0x39
31: 48 89 df mov %rbx,%rdi
34: e8 82 1b de ff call 0xffde1bbb
39: 4c 8b 33 mov (%rbx),%r14
3c: 4d 85 f6 test %r14,%r14
3f: 74 .byte 0x74