From: "Kumar Kartikeya Dwivedi" <memxor@gmail.com>
To: "Alexei Starovoitov" <alexei.starovoitov@gmail.com>,
<bpf@vger.kernel.org>
Cc: "Andrii Nakryiko" <andrii@kernel.org>,
"Daniel Borkmann" <daniel@iogearbox.net>,
"Eduard Zingerman" <eddyz87@gmail.com>,
"Emil Tsalapatis" <emil@etsalapatis.com>,
"Nicholas Carlini" <npc@anthropic.com>, <kkd@meta.com>,
<kernel-team@meta.com>
Subject: Re: [PATCH bpf-next v5 09/10] selftests/bpf: Check callback map value lock identity
Date: Thu, 17 Sep 2026 03:06:05 +0200 [thread overview]
Message-ID: <DLH6SM4M6XL2.1OB88H6MWSRR0@gmail.com> (raw)
In-Reply-To: <DLH6GI0M7GQH.3MTAVNEGD97AV@gmail.com>
On Thu Sep 17, 2026 at 2:50 AM CEST, Alexei Starovoitov wrote:
> On Wed, Sep 16, 2026 at 11:20 PM Kumar Kartikeya Dwivedi <memxor@gmail.com> wrote:
>> diff --git a/tools/testing/selftests/bpf/prog_tests/cb_refs.c b/tools/testing/selftests/bpf/prog_tests/cb_refs.c
>> index 78566b817fd7..490e15e7126d 100644
>> --- a/tools/testing/selftests/bpf/prog_tests/cb_refs.c
>> +++ b/tools/testing/selftests/bpf/prog_tests/cb_refs.c
>> @@ -13,7 +13,7 @@ struct {
>> } cb_refs_tests[] = {
>> { "underflow_prog", "release kfunc bpf_kfunc_call_test_release expects referenced PTR_TO_BTF_ID passed to R1" },
>> { "leak_prog", "Possibly NULL pointer passed to helper R2" },
>> - { "nested_cb", "Unreleased reference id=4 alloc_insn=2" }, /* alloc_insn=2{4,5} */
>> + { "nested_cb", "Unreleased reference id=5 alloc_insn=2" }, /* alloc_insn=2{4,5} */
>> { "non_cb_transfer_ref", "Unreleased reference id=4 alloc_insn=1" }, /* alloc_insn=1{1,2} */
>> };
>
> \robot voice
>
> This is the hunk that doesn't apply. The two context lines above are
> not what bpf-next has, and on b
> pf-next leak_prog still expects
> "Unreleased reference id=4 alloc_insn=3" for an acquire done inside a
> for_each callback, so it will need the same +1 after patch 8 hands out
> an id to R3 at callback push time.
>
> Chasing verifier-internal id numbers in expected strings is fragile.
> While rebasing, either drop the id from these patterns (match on
> "Unreleased reference" and alloc_insn) or at least fold the expectation
> update into patch 8, so test_progs is green at every step of the
> series.
>
> pw-bot: cr
It got mistagged by me, should have been targeting bpf tree. I did a CI run in
https://github.com/kernel-patches/bpf/pull/13872, which is green for bpf tree,
so if there are no other objections it can be applied there. Otherwise, I will
respin tomorrow.
next prev parent reply other threads:[~2026-09-17 1:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-16 21:20 [PATCH bpf-next v5 00/10] Misc bug fixes - part 5 Kumar Kartikeya Dwivedi
2026-09-16 21:20 ` [PATCH bpf-next v5 01/10] bpf: Make post-verification instruction rewrites killable Kumar Kartikeya Dwivedi
2026-09-16 21:20 ` [PATCH bpf-next v5 02/10] bpf: Preserve packet pointer class displacement in regsafe() Kumar Kartikeya Dwivedi
2026-09-16 21:20 ` [PATCH bpf-next v5 03/10] selftests/bpf: Test packet pointer class displacement pruning Kumar Kartikeya Dwivedi
2026-09-16 21:20 ` [PATCH bpf-next v5 04/10] bpf: Apply CO-RE relocations before subprogram validation Kumar Kartikeya Dwivedi
2026-09-16 21:20 ` [PATCH bpf-next v5 05/10] selftests/bpf: Test early in-kernel CO-RE relocation Kumar Kartikeya Dwivedi
2026-09-16 21:20 ` [PATCH bpf-next v5 06/10] bpf: Restrict CO-RE poisoning to relocatable instructions Kumar Kartikeya Dwivedi
2026-09-16 21:20 ` [PATCH bpf-next v5 07/10] selftests/bpf: Test CO-RE instruction poisoning restrictions Kumar Kartikeya Dwivedi
2026-09-16 21:20 ` [PATCH bpf-next v5 08/10] bpf: Assign lock identity to callback map values Kumar Kartikeya Dwivedi
2026-09-16 21:20 ` [PATCH bpf-next v5 09/10] selftests/bpf: Check callback map value lock identity Kumar Kartikeya Dwivedi
2026-09-17 0:50 ` Alexei Starovoitov
2026-09-17 1:06 ` Kumar Kartikeya Dwivedi [this message]
2026-09-17 1:08 ` Alexei Starovoitov
2026-09-16 21:20 ` [PATCH bpf-next v5 10/10] libbpf: Reject truncated ldimm64 CO-RE relocations Kumar Kartikeya Dwivedi
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=DLH6SM4M6XL2.1OB88H6MWSRR0@gmail.com \
--to=memxor@gmail.com \
--cc=alexei.starovoitov@gmail.com \
--cc=andrii@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=eddyz87@gmail.com \
--cc=emil@etsalapatis.com \
--cc=kernel-team@meta.com \
--cc=kkd@meta.com \
--cc=npc@anthropic.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.