------------[ cut here ]------------ WARNING: CPU: 0 PID: 6408 at kernel/events/core.c:5572 __free_event+0x50f/0x620 kernel/events/core.c:5572 Modules linked in: CPU: 0 UID: 0 PID: 6408 Comm: syz.1.139 Not tainted 6.14.0-syzkaller-gaa918db707fb #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:__free_event+0x50f/0x620 kernel/events/core.c:5572 Code: ff 48 c7 c7 20 da de 8e e8 4e 9e a6 ff 43 0f b6 44 25 00 84 c0 0f 85 f5 00 00 00 41 80 26 ef e9 ea fc ff ff e8 62 5c cb ff 90 <0f> 0b 90 42 80 3c 3b 00 0f 85 2d fe ff ff e9 30 fe ff ff e8 49 5c RSP: 0018:ffffc900107df7d8 EFLAGS: 00010293 RAX: ffffffff81f8198e RBX: 1ffff1100bd13ca6 RCX: ffff888031a70000 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000001 RBP: 0000000000000004 R08: ffffffff81f8175b R09: 1ffff11003bfe785 R10: dffffc0000000000 R11: ffffed1003bfe786 R12: ffff88805e89e528 R13: ffff88805e89e530 R14: 1ffff1100bd13ca5 R15: dffffc0000000000 FS: 0000555573283500(0000) GS:ffff888124fb1000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0fdcf7d560 CR3: 000000007f820000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: inherit_event+0x190/0x9d0 kernel/events/core.c:14036 inherit_group kernel/events/core.c:14110 [inline] inherit_task_group+0x18d/0x4f0 kernel/events/core.c:14177 perf_event_init_context kernel/events/core.c:14226 [inline] perf_event_init_task+0x244/0x650 kernel/events/core.c:14295 copy_process+0x151e/0x3d10 kernel/fork.c:2369 kernel_clone+0x242/0x930 kernel/fork.c:2810 __do_sys_clone3 kernel/fork.c:3114 [inline] __se_sys_clone3+0x348/0x380 kernel/fork.c:3093 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0fdcdc19c9 Code: ab 08 00 48 8d 3d 5c ab 08 00 e8 02 29 f6 ff 66 90 b8 ea ff ff ff 48 85 ff 74 2c 48 85 d2 74 27 49 89 c8 b8 b3 01 00 00 0f 05 <48> 85 c0 7c 18 74 01 c3 31 ed 48 83 e4 f0 4c 89 c7 ff d2 48 89 c7 RSP: 002b:00007ffd51df4b78 EFLAGS: 00000202 ORIG_RAX: 00000000000001b3 RAX: ffffffffffffffda RBX: 00007f0fdcd43dd0 RCX: 00007f0fdcdc19c9 RDX: 00007f0fdcd43dd0 RSI: 0000000000000058 RDI: 00007ffd51df4bc0 RBP: 00007f0fdab936c0 R08: 00007f0fdab936c0 R09: 00007ffd51df4ca7 R10: 0000000000000008 R11: 0000000000000202 R12: ffffffffffffffa8 R13: 000000000000006e R14: 00007ffd51df4bc0 R15: 00007ffd51df4ca8