Re: [PATCH bpf-next v1 1/2] selftests/bpf: Include bpf_misc.h in uprobe_autoattach.c
From: Alexei Starovoitov
Date: Thu Nov 26 2026 - 15:47:48 EST
On Wed, Nov 25, 2026 at 09:13 PM Tiezhu Yang <yangtiezhu@xxxxxxxxxxx> wrote:
> Commit 8c2b5e90505e ("selftests/bpf: add bpf_for_each(), bpf_for(),
> and bpf_repeat() macros") accidentally removed this include, causing
> FUNC_REG_ARG_CNT to evaluate to 0 in the preprocessor and silently
> skipping all assertions beyond arg3 on every architecture.
It wasn't an accident. The log of that commit says:
Also clean up a few tests that either included bpf_misc.h header
unnecessarily from the user-space, which is unsupported
Nothing in prog_tests/ includes bpf_misc.h today.
pw-bot: cr