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=1796250120; b=EDbBqfUD2nutz9wGf9h9r4ufILwbCsfryGWPQQrDFr+rt+V0vHQLZRZix6zQ/Prukr1B 4uRkQYe7L3KTStDhu6cSeUytpLOC74pKYtgnGoe5bp7YpIX+YMFb5zBn35mtxvybdlHbE etd2BfAsTJ6HzXRtb+Xwb6GIOAmKTRm/tuSYDFZBixzDBFdpwCSMzzp/Mo4qx1FRAOnR7 fVGZ9dSkgD+t2+eEOrk/7VvU5C/dFZbWPgmjLvAuypC9XyVqDh24Up6qes4R7nT7M260O O2FaVb35R4Id4Q4uM1drZhbrxysIwbY6kolNuTFZEGjzxGAOkiiiQ+NViC9HQqq4bAg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796250120; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=Bjk7230f6wv9KlxuJ515Kzn6FCfBOC40V4bM/gJOwvg=; b=PvXwopw3TrhTWBMnFOG79GTqmpK6wq812uqkZeCca0eI5UfkMqicYrIHGQRBakE9OEu9 du1zLRHy65v2K/kw8s+e6Q93UxBTm11u9cFxdGx/bkR07c9gqN8l3ZlHZ/IBobp1RBu0Y 3ZU0jWh32Tw3E2+WC+NgtXWbU0nTMvScCgSOCqQ+abjuw9IAksKIDGNuc3YO2h3CeNUqc pw5FD2szzsv2JMktwYyG4oe9LyqKngHVX+VAF9OBzlL2+p93nRToGjprAMjc/HApocSOy cu+ArLf+JGPXSYBfp5Hbo+Cmcr6E4ykbHT/264OX1bWN96UhoHJokse3Ytekrl6fwZQ== 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=nHU4fpnO; 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 0F1CE606A322 for ; Wed, 2 Dec 2026 22:21:59 +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=nHU4fpnO Received: by smtp.kernel.org (Postfix) with ESMTPSA id 935D91F000C1; Wed, 2 Dec 2026 22:21:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796250119; bh=Bjk7230f6wv9KlxuJ515Kzn6FCfBOC40V4bM/gJOwvg=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=nHU4fpnOZVDcrw4Y8s0q2qbxmIClW/FdauCCdc3pZcY4E2wlvtlmrKUnaxieQMlXp bHWIDf9z4hmODQN4bdmH+qD4zxN3R2pRG7OU1c2kX4zfkKkwFq3E1uoJl3M4P1nHIm o6xFEkW0wpwZcDWPi8jJYmu0LIWvu6yq6CDtQO9DRPdDCk4LirEoz3WajILQsK1UY0 duN+DYOHJ1fXOX428QBuL9hDxEHa5KSZCaH1aYW35bEZfS/WJ710uiZOFBBPBFN/ca 1HSsxEC/wqgRlkXKMHoZzYk4y63C0HvtNuNkaEFe6w8Sn2fsbjw+ydLKly9e3v0sir HFdA0VZShFcUA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH bpf-next 1/1] selftests/bpf: Check shift counts across operand register pairs Reply-To: sashiko-reviews@lists.linux.dev To: "Ramin Moussavi" , bpf@vger.kernel.org In-Reply-To: <20261202221801.3863568-2-ramin.moussavi@yacoub.de> References: <20261202221801.3863568-1-ramin.moussavi@yacoub.de> <20261202221801.3863568-2-ramin.moussavi@yacoub.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 22:21:59 +0000 X-Mailing-List: bpf@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] selftests/bpf: non-standard multi-line comment style above batch_note() -- commit f23b98c932cf4075dd7ccf4be0a85595080b26b9 Author: Ramin Moussavi selftests/bpf: Check shift counts across operand register pairs This commit extends the shift_counts test in jit_insns to test out-of-range and negative shift counts across all operand register pairs and adds a per-case note field to distinguish register pairs in failure messages. > diff --git a/tools/testing/selftests/bpf/prog_tests/jit_insns.c b/tools/t= esting/selftests/bpf/prog_tests/jit_insns.c > index 0aaab23a2eef8..4d67e7db38a1b 100644 > --- a/tools/testing/selftests/bpf/prog_tests/jit_insns.c > +++ b/tools/testing/selftests/bpf/prog_tests/jit_insns.c [ ... ] > @@ -124,10 +127,23 @@ static int batch_case(struct batch *b, int rc, __u6= 4 in0, __u64 in1) > b->ctx.in[k][0] =3D in0; > b->ctx.in[k][1] =3D in1; > b->nr_out[k] =3D 0; > + b->note[k][0] =3D 0; > EMIT(b, BPF_LDX_MEM(BPF_DW, rc, BPF_REG_10, CTX_SPILL)); > return k; > } > =20 > +/* Name the case in its failure message, where the operands alone do not= say > + * which one it was > + */ > +__printf(3, 4) static void batch_note(struct batch *b, int k, const char= *fmt, ...) [Severity: Low] This isn't a bug, but BPF multi-line comment style puts the opening /* on its own line with the comment text starting on the next line, matching the comment above shift_count_pairs(). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202221801.3863= 568-1-ramin.moussavi@yacoub.de?part=3D1