From: Yeoreum Yun <yeoreum.yun@arm.com>
To: Xu Kuohai <xukuohai@huaweicloud.com>
Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
"Alexei Starovoitov" <ast@kernel.org>,
"Daniel Borkmann" <daniel@iogearbox.net>,
"Andrii Nakryiko" <andrii@kernel.org>,
"Martin KaFai Lau" <martin.lau@linux.dev>,
"Eduard Zingerman" <eddyz87@gmail.com>,
"Yonghong Song" <yonghong.song@linux.dev>,
"Puranjay Mohan" <puranjay@kernel.org>,
"Anton Protopopov" <a.s.protopopov@gmail.com>,
"Shahab Vahedi" <list+bpf@vahedi.org>,
"Russell King" <linux@armlinux.org.uk>,
"Tiezhu Yang" <yangtiezhu@loongson.cn>,
"Hengqi Chen" <hengqi.chen@gmail.com>,
"Johan Almbladh" <johan.almbladh@anyfinetworks.com>,
"Paul Burton" <paulburton@kernel.org>,
"Hari Bathini" <hbathini@linux.ibm.com>,
"Christophe Leroy" <chleroy@kernel.org>,
"Naveen N Rao" <naveen@kernel.org>,
"Luke Nelson" <luke.r.nels@gmail.com>,
"Xi Wang" <xi.wang@gmail.com>, "Björn Töpel" <bjorn@kernel.org>,
"Pu Lehui" <pulehui@huawei.com>,
"Ilya Leoshkevich" <iii@linux.ibm.com>,
"Heiko Carstens" <hca@linux.ibm.com>,
"Vasily Gorbik" <gor@linux.ibm.com>,
"David S . Miller" <davem@davemloft.net>,
"Wang YanQing" <udknight@gmail.com>
Subject: Re: [bpf-next v6 2/5] bpf: Pass bpf_verifier_env to jit
Date: Sat, 7 Mar 2026 07:22:31 +0000 [thread overview]
Message-ID: <aavSNxiY3PlGNeWV@e129823.arm.com> (raw)
In-Reply-To: <1ca67134-011b-416e-b632-4ad061b76c28@huaweicloud.com>
Hi,
> On 3/7/2026 2:40 PM, Yeoreum Yun wrote:
> > Hi,
> >
> > [...]
> >
> > > -struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)
> > > +struct bpf_prog *bpf_int_jit_compile(struct bpf_verifier_env *env, struct bpf_prog *prog)
> >
> > Does this also work for bpf_prepare_filter()?
> > For example, ptp_classifier_init() calls it without invoking bpf_check(),
> > so there is no env available in that context.
> >
>
> It works. The original bpf_prog_select_runtime() is preserved for
> cbpf and test code, and passes NULL env to bpf_int_jit_compile().
Yes, I agree it work with the NULL when I see you patch but
I mean I couldn't find out modification in bpf_prepare_filter()
-- bpf_jit_compile(fp) -> bpf_jit_compile(NULL, fp)
>
> > [...]
> >
> > Thanks.
> >
> > --
> > Sincerely,
> > Yeoreum Yun
> >
> >
>
--
Sincerely,
Yeoreum Yun
next prev parent reply other threads:[~2026-03-07 7:24 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-06 10:23 [bpf-next v6 0/5] emit ENDBR/BTI instructions for indirect jump targets Xu Kuohai
2026-03-06 10:23 ` [bpf-next v6 1/5] bpf: Move constants blinding from JIT to verifier Xu Kuohai
2026-03-06 10:38 ` bot+bpf-ci
2026-03-06 18:30 ` Alexei Starovoitov
2026-03-07 3:10 ` Xu Kuohai
2026-03-06 10:23 ` [bpf-next v6 2/5] bpf: Pass bpf_verifier_env to jit Xu Kuohai
2026-03-07 6:40 ` Yeoreum Yun
2026-03-07 6:57 ` Xu Kuohai
2026-03-07 7:22 ` Yeoreum Yun [this message]
2026-03-07 7:35 ` Xu Kuohai
2026-03-07 8:00 ` Yeoreum Yun
2026-03-06 10:23 ` [bpf-next v6 3/5] bpf: Add helper to detect indirect jump targets Xu Kuohai
2026-03-06 10:23 ` [bpf-next v6 4/5] bpf, x86: Emit ENDBR for " Xu Kuohai
2026-03-07 1:36 ` Eduard Zingerman
2026-03-07 3:15 ` Xu Kuohai
2026-03-07 3:31 ` Alexei Starovoitov
2026-03-07 3:56 ` Xu Kuohai
2026-03-06 10:23 ` [bpf-next v6 5/5] bpf, arm64: Emit BTI for indirect jump target Xu Kuohai
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=aavSNxiY3PlGNeWV@e129823.arm.com \
--to=yeoreum.yun@arm.com \
--cc=a.s.protopopov@gmail.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bjorn@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=chleroy@kernel.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=eddyz87@gmail.com \
--cc=gor@linux.ibm.com \
--cc=hbathini@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=hengqi.chen@gmail.com \
--cc=iii@linux.ibm.com \
--cc=johan.almbladh@anyfinetworks.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=list+bpf@vahedi.org \
--cc=luke.r.nels@gmail.com \
--cc=martin.lau@linux.dev \
--cc=naveen@kernel.org \
--cc=paulburton@kernel.org \
--cc=pulehui@huawei.com \
--cc=puranjay@kernel.org \
--cc=udknight@gmail.com \
--cc=xi.wang@gmail.com \
--cc=xukuohai@huaweicloud.com \
--cc=yangtiezhu@loongson.cn \
--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