BPF List
 help / color / mirror / Atom feed
From: Quentin Monnet <qmo@kernel.org>
To: "Thiébaud Weksteen" <tweek@google.com>,
	"Alexei Starovoitov" <ast@kernel.org>,
	"Daniel Borkmann" <daniel@iogearbox.net>,
	"Andrii Nakryiko" <andrii@kernel.org>,
	"Eduard Zingerman" <eddyz87@gmail.com>,
	"Kumar Kartikeya Dwivedi" <memxor@gmail.com>,
	"Shuah Khan" <shuah@kernel.org>,
	"Leon Hwang" <leon.hwang@linux.dev>
Cc: bpf@vger.kernel.org, linux-kselftest@vger.kernel.org,
	Martin KaFai Lau <martin.lau@linux.dev>,
	Song Liu <song@kernel.org>,
	Yonghong Song <yonghong.song@linux.dev>,
	Jiri Olsa <jolsa@kernel.org>,
	Emil Tsalapatis <emil@etsalapatis.com>,
	Ihor Solodrai <ihor.solodrai@linux.dev>,
	Sid Nayyar <sidnayyar@google.com>
Subject: Re: [PATCH bpf 1/3] selftests/bpf: Move verifier failure tests out of test_global_percpu_data
Date: Thu, 26 Nov 2026 15:33:49 +0000	[thread overview]
Message-ID: <59f72367-d65a-48a1-ae77-c95f7f805ccb@kernel.org> (raw)
In-Reply-To: <20261125004911.3937193-2-tweek@google.com>

2026-11-25 11:49 UTC+1100 ~ Thiébaud Weksteen <tweek@google.com>
> Commit 4c9241bd731a ("selftests/bpf: Add tests to verify global percpu
> data") added test_global_percpu_data.c to LSKELS_EXTRA. Later, commit
> 1ed2294b31fc ("selftests/bpf: Test verifier log for global percpu data")
> added two verifier failure tests (verifier_strncmp and
> verifier_snprintf), both marked as non-autoload (SEC("?kprobe")).
> 
> When bpftool generates light skeletons, non-autoload programs are
> skipped during loading, causing the loader program to store subsequent
> program FDs into incorrect skeleton struct fields (for example,
> dump_percpu_data's FD was stored into verifier_strncmp's descriptor,
> leaving dump_percpu_data.prog_fd unpopulated).
> 
> Move the two verifier failure tests to a dedicated test file,
> test_global_percpu_data_failure.c, and run them via RUN_TESTS in
> global_data_init.c. This leaves test_global_percpu_data.c with only
> autoloaded programs, allowing its light skeleton to be generated cleanly
> and preparing selftests for rejecting non-autoload programs in light
> skeletons.
> 
> Fixes: 1ed2294b31fc ("selftests/bpf: Test verifier log for global percpu data")
> Signed-off-by: Thiébaud Weksteen <tweek@google.com>

Acked-by: Quentin Monnet <qmo@kernel.org>

  reply	other threads:[~2026-11-26 15:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25  0:49 [PATCH bpf 0/3] bpftool: Reject non-autoload programs for light skeletons Thiébaud Weksteen
2026-11-25  0:49 ` [PATCH bpf 1/3] selftests/bpf: Move verifier failure tests out of test_global_percpu_data Thiébaud Weksteen
2026-11-26 15:33   ` Quentin Monnet [this message]
2026-11-25  0:49 ` [PATCH bpf 2/3] bpftool: Reject non-autoload programs for light skeletons Thiébaud Weksteen
2026-11-25  0:59   ` sashiko-bot
2026-11-26 15:34   ` Quentin Monnet
2026-11-25  0:49 ` [PATCH bpf 3/3] selftests/bpf: Test non-autoload rejection in " Thiébaud Weksteen
2026-11-26 15:33   ` Quentin Monnet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=59f72367-d65a-48a1-ae77-c95f7f805ccb@kernel.org \
    --to=qmo@kernel.org \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=eddyz87@gmail.com \
    --cc=emil@etsalapatis.com \
    --cc=ihor.solodrai@linux.dev \
    --cc=jolsa@kernel.org \
    --cc=leon.hwang@linux.dev \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=martin.lau@linux.dev \
    --cc=memxor@gmail.com \
    --cc=shuah@kernel.org \
    --cc=sidnayyar@google.com \
    --cc=song@kernel.org \
    --cc=tweek@google.com \
    --cc=yonghong.song@linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox