From: "Alexei Starovoitov" <alexei.starovoitov@gmail.com>
To: <bot+bpf-ci@kernel.org>, <bpf@vger.kernel.org>
Cc: <daniel@iogearbox.net>, <andrii@kernel.org>, <eddyz87@gmail.com>,
<memxor@gmail.com>, <martin.lau@kernel.org>,
<yonghong.song@linux.dev>, <mason@kernel.org>,
<ihor.solodrai@linux.dev>
Subject: Re: [PATCH bpf-next 6/8] selftests/bpf: Add tests for may_goto with far target
Date: Fri, 25 Sep 2026 00:11:48 +0000 [thread overview]
Message-ID: <DLNYNF0A4YCX.2QY0EHNSJZMGA@gmail.com> (raw)
In-Reply-To: <33bcc2451681d52494c3e01a9b968271d55664d3d14bd1c99e7944090c9038cf@mail.kernel.org>
On Fri, Sep 25, 2026 at 12:01 AM bot+bpf-ci@kernel.org <bot+bpf-ci@kernel.org> wrote:
>> +static void test_far(int off)
>> +{
>> + LIBBPF_OPTS(bpf_prog_load_opts, opts, .prog_flags = BPF_F_SLEEPABLE);
>> + LIBBPF_OPTS(bpf_test_run_opts, topts);
>> + int front = off < 0 ? 1 : FILL_CNT;
>> + int mid = off < 0 ? -off - 5 : 1;
>> + int back = off < 0 ? FILL_CNT : off - 1;
[...]
> Could the four offsets (32762, 32767, -32767, -32768) be __naked
> __retval(0) cases in verifier_may_goto_1.c instead of a new file?
No. That's four progs of 66k insns each. 2 Mbyte of .rept in
verifier_may_goto_1.bpf.o and test_loader opens the whole object
again for every test in the file.
Here the fill counts are computed from 'off' at run time, like
bpf_fill_*() do in test_verifier.c.
next prev parent reply other threads:[~2026-09-25 0:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-24 23:31 [PATCH bpf-next 0/8] bpf: Fixes for may_goto, insn patching and iterator loops Alexei Starovoitov
2026-09-24 23:31 ` [PATCH bpf-next 1/8] bpf, x86: Fix timed may_goto with private stack Alexei Starovoitov
2026-09-24 23:31 ` [PATCH bpf-next 2/8] selftests/bpf: Add test for " Alexei Starovoitov
2026-09-24 23:31 ` [PATCH bpf-next 3/8] bpf: Adjust pc-relative insn copied into its own patch Alexei Starovoitov
2026-09-24 23:31 ` [PATCH bpf-next 4/8] selftests/bpf: Add tests for " Alexei Starovoitov
2026-09-24 23:31 ` [PATCH bpf-next 5/8] bpf: Fix overflow of jump offset in may_goto expansion Alexei Starovoitov
2026-09-24 23:31 ` [PATCH bpf-next 6/8] selftests/bpf: Add tests for may_goto with far target Alexei Starovoitov
2026-09-25 0:01 ` bot+bpf-ci
2026-09-25 0:11 ` Alexei Starovoitov [this message]
2026-09-24 23:31 ` [PATCH bpf-next 7/8] bpf: Don't converge a loop on an iterator that was created anew Alexei Starovoitov
2026-09-24 23:31 ` [PATCH bpf-next 8/8] selftests/bpf: Add tests for iterator created anew in its loop Alexei Starovoitov
2026-09-25 1:23 ` [PATCH bpf-next 0/8] bpf: Fixes for may_goto, insn patching and iterator loops Kumar Kartikeya Dwivedi
2026-09-25 1:30 ` patchwork-bot+netdevbpf
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=DLNYNF0A4YCX.2QY0EHNSJZMGA@gmail.com \
--to=alexei.starovoitov@gmail.com \
--cc=andrii@kernel.org \
--cc=bot+bpf-ci@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=eddyz87@gmail.com \
--cc=ihor.solodrai@linux.dev \
--cc=martin.lau@kernel.org \
--cc=mason@kernel.org \
--cc=memxor@gmail.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 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.