From: "Alexei Starovoitov" <alexei.starovoitov@gmail.com>
To: "Mykyta Yatsenko" <mykyta.yatsenko5@gmail.com>,
"bpf" <bpf@vger.kernel.org>,
"Alexei Starovoitov" <ast@kernel.org>,
"Andrii Nakryiko" <andrii@kernel.org>,
"Daniel Borkmann" <daniel@iogearbox.net>,
"Martin Lau" <kafai@meta.com>,
"Kernel Team" <kernel-team@meta.com>,
"Eduard" <eddyz87@gmail.com>,
"Kumar Kartikeya Dwivedi" <memxor@gmail.com>,
"Peter Zijlstra" <peterz@infradead.org>,
"Steven Rostedt" <rostedt@goodmis.org>
Cc: "Mykyta Yatsenko" <yatsenko@meta.com>
Subject: Re: [PATCH bpf-next v10 2/6] bpf: Add bpf_prog_run_array_sleepable()
Date: Mon, 20 Apr 2026 08:46:49 -0700 [thread overview]
Message-ID: <DHY3L8BVS4E4.2GLGKFH7NORVW@gmail.com> (raw)
In-Reply-To: <337f2570-acb2-4b31-8c4f-86ba4cbdfe65@gmail.com>
On Fri Apr 17, 2026 at 10:22 AM PDT, Mykyta Yatsenko wrote:
>
>
> On 4/16/26 3:40 PM, Alexei Starovoitov wrote:
>> On Wed, Apr 15, 2026 at 6:41 PM Alexei Starovoitov
>> <alexei.starovoitov@gmail.com> wrote:
>> One more thing..
>> Please go back to my 'do your homework' request from v9
>> and answer the question why it's not safe to do bpf_prog_run
>> on dummy prog like this patch does.
>> I missed it yesterday and only complained about the waste of cpu cycles.
>> It's more than that.
>>
>> Do not send v11.
>
> I see that very similar bug was fixed in 7dc211c1159d ("bpf: Fix invalid
> prog->stats access when update_effective_progs fails"), the problem is
> the same - NULL field access on the dummy prog. So the approach to just
> allow dummy to run further is fragile, because other NULL fields may be
> accessed.
exactly. so far we've hit 'active == NULL' and 'stats == NULL',
and 'stats == NULL' had to be workaround-ed like that in that commit.
There is also 'aux'. I hope it's not used at run-time, but let's not take chances.
Filter dummy prog as immediate skip.
next prev parent reply other threads:[~2026-04-20 15:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-15 14:49 [PATCH bpf-next v10 0/6] bpf: Add support for sleepable tracepoint programs Mykyta Yatsenko
2026-04-15 14:49 ` [PATCH bpf-next v10 1/6] bpf: Add sleepable support for raw " Mykyta Yatsenko
2026-04-15 14:49 ` [PATCH bpf-next v10 2/6] bpf: Add bpf_prog_run_array_sleepable() Mykyta Yatsenko
2026-04-16 1:41 ` Alexei Starovoitov
2026-04-16 14:40 ` Alexei Starovoitov
2026-04-17 17:22 ` Mykyta Yatsenko
2026-04-20 15:46 ` Alexei Starovoitov [this message]
2026-04-15 14:49 ` [PATCH bpf-next v10 3/6] bpf: Add sleepable support for classic tracepoint programs Mykyta Yatsenko
2026-04-15 14:49 ` [PATCH bpf-next v10 4/6] bpf: Verifier support for sleepable " Mykyta Yatsenko
2026-04-15 14:49 ` [PATCH bpf-next v10 5/6] libbpf: Add section handlers for sleepable tracepoints Mykyta Yatsenko
2026-04-15 14:49 ` [PATCH bpf-next v10 6/6] selftests/bpf: Add tests for sleepable tracepoint programs Mykyta Yatsenko
2026-04-15 20:32 ` sashiko-bot
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=DHY3L8BVS4E4.2GLGKFH7NORVW@gmail.com \
--to=alexei.starovoitov@gmail.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=eddyz87@gmail.com \
--cc=kafai@meta.com \
--cc=kernel-team@meta.com \
--cc=memxor@gmail.com \
--cc=mykyta.yatsenko5@gmail.com \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=yatsenko@meta.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox