From: "Emil Tsalapatis" <emil@etsalapatis.com>
To: "Yonghong Song" <yonghong.song@linux.dev>, <bpf@vger.kernel.org>
Cc: "Alexei Starovoitov" <ast@kernel.org>,
"Andrii Nakryiko" <andrii@kernel.org>,
"Daniel Borkmann" <daniel@iogearbox.net>, <kernel-team@fb.com>,
"Martin KaFai Lau" <martin.lau@kernel.org>
Subject: Re: [PATCH bpf-next 3/3] selftests/bpf: Fix verifier_arena_globals1 failure with 64K page
Date: Tue, 13 Jan 2026 12:04:06 -0500 [thread overview]
Message-ID: <DFNMHKDB1A40.3D0RBKLJVJ5HW@etsalapatis.com> (raw)
In-Reply-To: <20260113061033.3798549-1-yonghong.song@linux.dev>
On Tue Jan 13, 2026 at 1:10 AM EST, Yonghong Song wrote:
> With 64K page on arm64, verifier_arena_globals1 failed like below:
> ...
> libbpf: map 'arena': failed to create: -E2BIG
> ...
> #509/1 verifier_arena_globals1/check_reserve1:FAIL
> ...
>
> For 64K page, if the number of arena pages is (1UL << 20), the total
> memory will exceed 4G and this will cause map creation failure.
> Adjusting ARENA_PAGES based on the actual page size fixed the problem.
>
> Cc: Emil Tsalapatis <emil@etsalapatis.com>
> Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
> ---
Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
> tools/testing/selftests/bpf/progs/verifier_arena_globals1.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/bpf/progs/verifier_arena_globals1.c b/tools/testing/selftests/bpf/progs/verifier_arena_globals1.c
> index 14afef3d6442..83182ddbfb95 100644
> --- a/tools/testing/selftests/bpf/progs/verifier_arena_globals1.c
> +++ b/tools/testing/selftests/bpf/progs/verifier_arena_globals1.c
> @@ -9,7 +9,7 @@
> #include "bpf_arena_common.h"
> #include "bpf_misc.h"
>
> -#define ARENA_PAGES (1UL<< (32 - 12))
> +#define ARENA_PAGES (1UL<< (32 - __builtin_ffs(__PAGE_SIZE) + 1))
> #define GLOBAL_PAGES (16)
>
> struct {
next prev parent reply other threads:[~2026-01-13 17:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-13 6:10 [PATCH bpf-next 0/3] Fix a few selftest failure due to 64K page Yonghong Song
2026-01-13 6:10 ` [PATCH bpf-next 1/3] selftests/bpf: Fix dmabuf_iter/lots_of_buffers failure with " Yonghong Song
2026-01-13 6:10 ` [PATCH bpf-next 2/3] selftests/bpf: Fix sk_bypass_prot_mem " Yonghong Song
2026-01-13 6:10 ` [PATCH bpf-next 3/3] selftests/bpf: Fix verifier_arena_globals1 " Yonghong Song
2026-01-13 17:04 ` Emil Tsalapatis [this message]
2026-01-13 10:32 ` [PATCH bpf-next 0/3] Fix a few selftest failure due to " Alan Maguire
2026-01-13 18:17 ` 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=DFNMHKDB1A40.3D0RBKLJVJ5HW@etsalapatis.com \
--to=emil@etsalapatis.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=kernel-team@fb.com \
--cc=martin.lau@kernel.org \
--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