------------[ cut here ]------------ !atomic_long_inc_not_zero(&event->refcount) WARNING: kernel/events/core.c:10739 at __perf_event_overflow+0xb9e/0xec0 kernel/events/core.c:10739, CPU#0: syz.3.65/6542 Modules linked in: CPU: 0 UID: 0 PID: 6542 Comm: syz.3.65 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 RIP: 0010:__perf_event_overflow+0xb9e/0xec0 kernel/events/core.c:10739 Code: 0b 37 00 4d 89 3e 4c 8b 7c 24 10 e9 c2 fc ff ff e8 e7 e1 cc ff 49 bd 00 00 00 00 00 fc ff df e9 08 fe ff ff e8 d3 e1 cc ff 90 <0f> 0b 90 e9 21 ff ff ff e8 c5 e1 cc ff 48 c7 c7 00 1b d7 8b e8 e9 RSP: 0018:ffffc90003af74c0 EFLAGS: 00010293 RAX: ffffffff81f8aabd RBX: ffff8880353ba6b0 RCX: ffff88805a2a1e40 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90003af75d0 R08: ffff8880353ba807 R09: 1ffff11006a77500 R10: dffffc0000000000 R11: ffffed1006a77501 R12: ffff8880353ba5b0 R13: dffffc0000000000 R14: ffff8880353ba800 R15: 0000000000000000 FS: 00007fd3302726c0(0000) GS:ffff888125466000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000011c38000 CR4: 00000000003526f0 Call Trace: perf_swevent_overflow kernel/events/core.c:10837 [inline] perf_swevent_event+0x323/0x650 kernel/events/core.c:-1 do_perf_sw_event kernel/events/core.c:10977 [inline] ___perf_sw_event+0x4a6/0x730 kernel/events/core.c:11004 __perf_sw_event+0xf9/0x1a0 kernel/events/core.c:11016 perf_sw_event include/linux/perf_event.h:1604 [inline] do_user_addr_fault+0x12a8/0x1340 arch/x86/mm/fault.c:1281 handle_page_fault arch/x86/mm/fault.c:1474 [inline] exc_page_fault+0x6a/0xc0 arch/x86/mm/fault.c:1527 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:618 RIP: 0010:rep_movs_alternative+0x4a/0x90 arch/x86/lib/copy_user_64.S:74 Code: cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 8b 06 48 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 db 83 f9 08 73 e8 eb c5 a4 c3 cc cc cc cc 48 8b 06 48 89 07 48 8d 47 08 48 83 e0 f8 48 RSP: 0018:ffffc90003af7ad0 EFLAGS: 00050202 RAX: 00007ffffffff001 RBX: 0000000000000060 RCX: 0000000000000060 RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffffc90003c7f060 RBP: 0000000000000000 R08: ffffc90003c7f0bf R09: 1ffff9200078fe17 R10: dffffc0000000000 R11: fffff5200078fe18 R12: 0000000000000000 R13: dffffc0000000000 R14: ffffc90003c7f060 R15: 0000000000000000 copy_user_generic arch/x86/include/asm/uaccess_64.h:126 [inline] raw_copy_from_user arch/x86/include/asm/uaccess_64.h:141 [inline] _inline_copy_from_user include/linux/uaccess.h:185 [inline] _copy_from_user+0x7a/0xb0 lib/usercopy.c:18 copy_from_user include/linux/uaccess.h:223 [inline] copy_from_bpfptr_offset include/linux/bpfptr.h:53 [inline] copy_from_bpfptr+0x5c/0x90 include/linux/bpfptr.h:59 bpf_prog_load+0xb24/0x1ae0 kernel/bpf/syscall.c:3019 __sys_bpf+0x618/0x950 kernel/bpf/syscall.c:6229 __do_sys_bpf kernel/bpf/syscall.c:6342 [inline] __se_sys_bpf kernel/bpf/syscall.c:6340 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:6340 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd32f39a539 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd330272028 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007fd32f605fa0 RCX: 00007fd32f39a539 RDX: 0000000000000094 RSI: 00002000000000c0 RDI: 0000000000000005 RBP: 00007fd32f42dee0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd32f606038 R14: 00007fd32f605fa0 R15: 00007ffede8656e8 ---------------- Code disassembly (best guess): 0: cc int3 1: cc int3 2: cc int3 3: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1) a: 00 00 00 d: 0f 1f 00 nopl (%rax) 10: 48 8b 06 mov (%rsi),%rax 13: 48 89 07 mov %rax,(%rdi) 16: 48 83 c6 08 add $0x8,%rsi 1a: 48 83 c7 08 add $0x8,%rdi 1e: 83 e9 08 sub $0x8,%ecx 21: 74 db je 0xfffffffe 23: 83 f9 08 cmp $0x8,%ecx 26: 73 e8 jae 0x10 28: eb c5 jmp 0xffffffef * 2a: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction 2c: c3 ret 2d: cc int3 2e: cc int3 2f: cc int3 30: cc int3 31: 48 8b 06 mov (%rsi),%rax 34: 48 89 07 mov %rax,(%rdi) 37: 48 8d 47 08 lea 0x8(%rdi),%rax 3b: 48 83 e0 f8 and $0xfffffffffffffff8,%rax 3f: 48 rex.W