From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796098312; b=cQre6XnKQN1W0C9ja10Z7vGY8QMwVXlONSU+FelGAbtAX8AoyNZga4ssC8BCvZycOsgY 3L/FAPU7xShtba4px4/ikPQsDUg69U90JJgG7jpNzbqQMb9baNJDFEaitehZ2SP/dqBIi BjvYV5DgfZGCBnabD74LdyoePx18PSPSujcMNYAoQD2XTKW2IjhpPZbst/d2IYo3VG+Kk qNzAibJ4oruW5IuB5znAjgONbQPSnLuxaDiLrAm9ixQCImA6zbOJ/uK1qtZ9T1PK07/sU Fn0+cTaq48Vi9s21sjvOZBwtJYPf48mv3BfKkRB/+pK+xnuzKq0QaHXPsiAouVDL4Kg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796098312; h=Received:DKIM-Signature:Content-Type:MIME-Version:Message-Id: In-Reply-To:References:Subject:From:To:Cc:Date; bh=SN5cccPHL6GcYIMiC4ZsLXxhlpKg2tLPlVP3ykS7rlU=; b=wD+03tQSirRQBSFzkpDvZARLWO/dZKEgdtx3U1Ucj7q85XrH2PscZY2tuG+Ds2etiH9p i4Sn6co8BVcqzVd2+bJEyG50I32irnwjw6fO9k/1OqnnN7OMCjfwUTJynwHi+K12LuNz6 6uHvYHN3O2ScolBZvg8X3T90UnabowK493szPznU+BXrsNO6DcUkiAwuspqZG3a+Wzt1q OVYIowak5l6NwGZurhOZflV7XFl+ijusvnKX2/Fgzs/ggGiyYHVBVM4FYVWbXeN6Xdywq Vyqzo9TOJIXQlC7H+uCW2aZBmyHZm8CBXgoYhLyk/Km1Zuq9Ww9iL2OP1LmuB8aShtg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Q9MgmzW6; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02B99606A31A; Tue, 1 Dec 2026 04:11:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Q9MgmzW6 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 080E01F000C1; Tue, 1 Dec 2026 04:11:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796098311; bh=SN5cccPHL6GcYIMiC4ZsLXxhlpKg2tLPlVP3ykS7rlU=; h=In-Reply-To:References:Subject:From:To:Cc:Date; b=Q9MgmzW6CchhCEYYQwcgo5OA6gWrNCmZ9gWH44UIPXWA41hLwSIEzcPzWO2NCFt8E U2j2zkNecnr6s0p1nkSQGCCzI6e8guSEWqXjQGhXVyQl4EwFfAt8UYDoTX2aOIkeTX PWE4+sRBeeGHQcoC8k3OjyK/Tkdv107D7mdeG4xOHd8chmHNJFTBvhVfT+/T80X/+T BmILDo2sg+nHJDFKeac7dLM5CkUMUfV0JxtGcVl3ojJVRL29sDyBtiM+BaPU8Wxk4T f5/bS/P5rxP7zTgahE+Pwf75m3yOHs88HLijIaF/h8bKrC6A/UoKrVCajIQ/v1JZ0u Osnzw8kCAD/OA== Content-Type: multipart/mixed; boundary="===============2931953496161544883==" X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <053427467b6f74062c643e53dbca0e873602c040fb0c718e4f72c10731e82edc@mail.kernel.org> In-Reply-To: <20261201034459.20785-1-dongtai.guo@linux.dev> References: <20261201034459.20785-1-dongtai.guo@linux.dev> Subject: Re: [PATCH bpf-next v2] selftests/bpf: Use unsigned loop counter in test_buddy_alloc_free 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 Date: Tue, 1 Dec 2026 04:11:49 +0000 (UTC) --===============2931953496161544883== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit > 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 --===============2931953496161544883==--