Re: [PATCH] perf/x86: Reject pair-counter groups with no GP budget
From: Hang Zhengyang
Date: Wed Nov 11 2026 - 21:47:06 EST
On Mon, 09 Nov 2026 19:03:56 +0800, Zhao Gongyi wrote:
> AMD large-increment events reserve an extra GP counter. A syzkaller
> reproducer opens a perf event group until the adjusted GP budget is
> exhausted. x86_schedule_events() then WARNs on the unschedulable group.
Tested on AMD Zen 3 (KVM guest, tip perf/urgent): a group of six
fp_ret_sse_avx_ops.all events hits the WARN without this patch and not
with it; smaller groups still schedule. Without your n_pair fix the WARN
fires only once per CPU.
Tested-by: Hang Zhengyang <hang.zhengyang1010@xxxxxxxxx>