diff options
| author | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2026-09-04 10:43:15 +0200 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-09-04 07:58:35 -0700 |
| commit | 17487b31f479c85eda3685e8e44242358bd68f23 (patch) | |
| tree | 02b9ede8b091b38a37066570fb2e63a84adbb363 /scripts/Makefile.thinlto | |
| parent | 048029ba1c793f8cabc4ad5eea765da01903f8f1 (diff) | |
| download | linux-17487b31f479c85eda3685e8e44242358bd68f23.tar.gz linux-17487b31f479c85eda3685e8e44242358bd68f23.zip | |
selftests/bpf: Reject non-percpu values in percpu kptr fields
Add verifier coverage for the two ways a non-percpu pointer can be stored
in a __percpu_kptr field: a program-BTF local allocation returned by
bpf_obj_new(), and a referenced kernel-BTF task_struct pointer.
Without the verifier fix, both programs are unexpectedly accepted and the
negative tests fail. Requiring MEM_PERCPU makes both programs fail
verification with the expected invalid-kptr diagnostic.
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20260904084325.52250-3-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
