BUG: kernel NULL pointer dereference, address: 000000000000008c #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 11a242067 P4D 11a242067 PUD 119793067 PMD 0 Oops: 0002 [#1] PREEMPT SMP CPU: 0 PID: 7828 Comm: syz-executor.4 Not tainted 6.6.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 RIP: 0010:inherit_group kernel/events/core.c:13375 [inline] RIP: 0010:inherit_task_group.isra.0+0x107/0x280 kernel/events/core.c:13422 Code: f0 ff ff 0f 87 7d 01 00 00 e8 35 d4 f8 ff 48 3b 9b 90 00 00 00 0f 84 8a 00 00 00 e8 23 d4 f8 ff 8b 83 8c 00 00 00 48 8b 14 24 <89> 82 8c 00 00 00 31 ed e8 0c d4 f8 ff 89 e8 48 83 c4 08 5b 5d 41 RSP: 0018:ffffc900034c7c90 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88810df57230 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff81341a4d RDI: 0000000000000007 RBP: 0000000000000000 R08: 0000000000000007 R09: fffffffffffff000 R10: 0000000000000000 R11: 0000000000000001 R12: ffff88810df57230 R13: ffff88811a600000 R14: ffffc900034c7cdc R15: ffff88810cf24200 FS: 00007fec0f4ac6c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000000008c CR3: 000000011a13f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: perf_event_init_context kernel/events/core.c:13487 [inline] perf_event_init_task+0x1ce/0x3b0 kernel/events/core.c:13538 copy_process+0xc2a/0x26d0 kernel/fork.c:2475 kernel_clone+0x109/0x750 kernel/fork.c:2909 __do_sys_clone+0x7c/0xb0 kernel/fork.c:3052 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fec0f929ae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fec0f4ac078 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007fec0fa48f80 RCX: 00007fec0f929ae9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007fec0f97547a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007fec0fa48f80 R15: 00007fff441827a8 Modules linked in: CR2: 000000000000008c ---[ end trace 0000000000000000 ]--- RIP: 0010:inherit_group kernel/events/core.c:13375 [inline] RIP: 0010:inherit_task_group.isra.0+0x107/0x280 kernel/events/core.c:13422 Code: f0 ff ff 0f 87 7d 01 00 00 e8 35 d4 f8 ff 48 3b 9b 90 00 00 00 0f 84 8a 00 00 00 e8 23 d4 f8 ff 8b 83 8c 00 00 00 48 8b 14 24 <89> 82 8c 00 00 00 31 ed e8 0c d4 f8 ff 89 e8 48 83 c4 08 5b 5d 41 RSP: 0018:ffffc900034c7c90 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88810df57230 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff81341a4d RDI: 0000000000000007 RBP: 0000000000000000 R08: 0000000000000007 R09: fffffffffffff000 R10: 0000000000000000 R11: 0000000000000001 R12: ffff88810df57230 R13: ffff88811a600000 R14: ffffc900034c7cdc R15: ffff88810cf24200 FS: 00007fec0f4ac6c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000000008c CR3: 000000011a13f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: f0 ff lock (bad) 2: ff 0f decl (%rdi) 4: 87 7d 01 xchg %edi,0x1(%rbp) 7: 00 00 add %al,(%rax) 9: e8 35 d4 f8 ff call 0xfff8d443 e: 48 3b 9b 90 00 00 00 cmp 0x90(%rbx),%rbx 15: 0f 84 8a 00 00 00 je 0xa5 1b: e8 23 d4 f8 ff call 0xfff8d443 20: 8b 83 8c 00 00 00 mov 0x8c(%rbx),%eax 26: 48 8b 14 24 mov (%rsp),%rdx * 2a: 89 82 8c 00 00 00 mov %eax,0x8c(%rdx) <-- trapping instruction 30: 31 ed xor %ebp,%ebp 32: e8 0c d4 f8 ff call 0xfff8d443 37: 89 e8 mov %ebp,%eax 39: 48 83 c4 08 add $0x8,%rsp 3d: 5b pop %rbx 3e: 5d pop %rbp 3f: 41 rex.B