From: bot+bpf-ci@kernel.org
To: dongtai.guo@linux.dev,ast@kernel.org,daniel@iogearbox.net,andrii@kernel.org,eddyz87@gmail.com,memxor@gmail.com
Cc: emil@etsalapatis.com,bpf@vger.kernel.org,linux-kselftest@vger.kernel.org,linux-kernel@vger.kernel.org,guodongtai@kylinos.cn,ast@kernel.org,andrii@kernel.org,daniel@iogearbox.net,martin.lau@kernel.org,eddyz87@gmail.com,yonghong.song@linux.dev,mason@kernel.org,ihor.solodrai@linux.dev
Subject: Re: [PATCH bpf-next v2] selftests/bpf: Use unsigned loop counter in test_buddy_alloc_free
Date: Tue, 1 Dec 2026 04:11:49 +0000 (UTC) [thread overview]
Message-ID: <053427467b6f74062c643e53dbca0e873602c040fb0c718e4f72c10731e82edc@mail.kernel.org> (raw)
In-Reply-To: <20261201034459.20785-1-dongtai.guo@linux.dev>
[-- Attachment #1: Type: text/plain, Size: 1531 bytes --]
> selftests/bpf: Use unsigned loop counter in test_buddy_alloc_free
TL;DR: Possible justification problem: the unsigned counter may not make
libarena build with clang 19, since the arena_spin_lock_slowpath() 32-bit
cmpxchg appears to still fail; Alexei's v2 concern looks unaddressed.
> diff --git a/tools/testing/selftests/bpf/libarena/selftests/test_buddy.bpf.c b/tools/testing/selftests/bpf/libarena/selftests/test_buddy.bpf.c
> --- a/tools/testing/selftests/bpf/libarena/selftests/test_buddy.bpf.c
> +++ b/tools/testing/selftests/bpf/libarena/selftests/test_buddy.bpf.c
> @@ -99,7 +99,8 @@ __weak int test_buddy_alloc_free(void)
> {
> const int iters = 800;
> void __arena *mem;
> - int ret, i;
> + int ret;
> + u32 i;
>
> ret = buddy_init(&buddy);
> if (ret)
Alexei Starovoitov raised a concern about the justification for this change
in v2:
> By that report the build with clang 19 fails with and without this patch.
> The answer is the same as in June. Pls upgrade clang.
Does this change actually make libarena build with clang 19?
arena_spin_lock_slowpath() still has a 32-bit cmpxchg that fails with
"Cannot select: AtomicCmpSwap", and libarena/Makefile passes no -mcpu, so
the build appears to fail with and without this patch.
Has this concern been addressed?
---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md
CI run summary: https://github.com/kernel-patches/bpf/actions/runs/46572595446
prev parent reply other threads:[~2026-12-01 4:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 3:44 George Guo
2026-12-01 4:06 ` Alexei Starovoitov
2026-12-01 6:35 ` George Guo
2026-12-01 4:11 ` bot+bpf-ci [this message]
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=053427467b6f74062c643e53dbca0e873602c040fb0c718e4f72c10731e82edc@mail.kernel.org \
--to=bot+bpf-ci@kernel.org \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=dongtai.guo@linux.dev \
--cc=eddyz87@gmail.com \
--cc=emil@etsalapatis.com \
--cc=guodongtai@kylinos.cn \
--cc=ihor.solodrai@linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®