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=1796022953; b=SgXbAkDOb+1cGhBJGMzBWR//yc7SdO7wemzYITldMFOh4/clhjKSr0BcdNdF+d8P4h4Y Uv8muxvkmmVwNFpqb4XjVreWezMM8KeSfjhOk3DXP97MleMOMr8HoVWLthwIa+PBOajyJ 1LfcoyoOoXX+fLCaQOuaoa2FLZLz2TQ9Xle3aoijREga7x8NBdOHMHFOFsykP+8W2/jLv YreVxzNUWkVqrke4yRsLG8FZJUqQkE/jSf/sjPXjlPPR5MEQrhH4YK/x+VmM1Ue1IrMtb WxiD/qM2mzZttHfNcAQYwe37Zr3DxZLQDnKhxbE1G6vjjkEGMpKXiaulyL17jV04e6g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796022953; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=LKJc+YNbAgG2cP1uUgCByD0konc8yYFxy4s4cHTWg7Q=; b=n58n1MPqCQgypWpt4p8ZmvymZyO6C7hD/Qg6LKpM+uekEFuFVN8uP8sPhRFBfHXpCwOQ eSK2IhjfDUECriZytUmprvC8gP8gbcmOmaC6zDavR6tPAFldIpZc6Pk4DAOrEPdiug9If ryxkKLQJnPk53MbRQrdBhOoX2vTy+xJzpdZ4jsoO67XAKfzYarpp+iywoI0+7m2ybEcw0 3jted/B141BIuDDgfz4siFUi7tarTUqN/jV1nzrRCT9vptWD82+Mzx6CYWZoRtYy8A8wO scbzrMG7l1TocK9gSbv1TjhZvykU33+xsKuGikB8QEbUZ/yNd1BilsVrohQ6bD5ZeGg== 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=RNjDKgOg; 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 ACA22606A320 for ; Mon, 30 Nov 2026 07:15:53 +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=RNjDKgOg Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E88E1F000C1; Mon, 30 Nov 2026 07:15:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796022953; bh=LKJc+YNbAgG2cP1uUgCByD0konc8yYFxy4s4cHTWg7Q=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=RNjDKgOgndOdn7K/a7IVY7GpYRf1LSOesS9HtrM0Tpk3hFHVhtk8Ah2lVigMaxYeY B570IFFXstVUfP7LslOcQwHsgnkmpUvFw4HdUhBeReGNgIxucifTSW+CPMs9buZKQ8 wMrdrj1SdnJEIBWE3fIh8vg+S8KM8da2auCyztaMeDzXaWfxRtUmMWLD1e+ov6+ICn YxAVdRYxijoNFaSEGrfr6vQFQV2WYP98M9FMC0+oookNwN54czm06usKvVHqhgIgm4 XuLDf+cyVQ4eL4hACoKFZmlyGPSqAbISYDYNFNyuecAjcUzKZaDvIrrD2hg1vjR6tc O4+rSiLzdkeJQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 2/2] selftests/bpf: Add callx tests for PPC64 Reply-To: sashiko-reviews@lists.linux.dev To: "Shivani Nittor" Cc: bpf@vger.kernel.org In-Reply-To: <20261130070307.126765-2-shivani@linux.ibm.com> References: <20261130070307.126765-1-shivani@linux.ibm.com> <20261130070307.126765-2-shivani@linux.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 07:15:52 +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: - [Medium] selftests/bpf: verifier_callx tests enabled on unsupported PPC targets -- commit 8cd8cd78cbedee87168d3e2fcad4536e0affb300 Author: Shivani Nittor selftests/bpf: Add callx tests for PPC64 This commit enables the BPF callx selftests and verifier tests for PPC64. > diff --git a/tools/testing/selftests/bpf/progs/verifier_callx.c b/tools/t= esting/selftests/bpf/progs/verifier_callx.c > index a12bc421e75ce..b99eab7b3725f 100644 > --- a/tools/testing/selftests/bpf/progs/verifier_callx.c > +++ b/tools/testing/selftests/bpf/progs/verifier_callx.c > @@ -8,7 +8,8 @@ > =20 > /* gcc doesn't support indirect calls */ > #if defined(__clang__) && (defined(__TARGET_ARCH_x86) || defined(__TARGE= T_ARCH_arm64) || \ > - (defined(__TARGET_ARCH_riscv) && __riscv_xlen =3D=3D 64)) > + (defined(__TARGET_ARCH_riscv) && __riscv_xlen =3D=3D 64) || \ > + defined(__TARGET_ARCH_powerpc)) > =20 > #define CALLX_INSN(DST, SRC, OFF, IMM) \ > BPF_RAW_INSN(BPF_JMP | BPF_CALL | BPF_X, DST, SRC, OFF, IMM) > diff --git a/tools/testing/selftests/bpf/progs/verifier_callx_rodata.c b/= tools/testing/selftests/bpf/progs/verifier_callx_rodata.c > index 6cf58ca9ac5bb..56be21e7bbcd3 100644 > --- a/tools/testing/selftests/bpf/progs/verifier_callx_rodata.c > +++ b/tools/testing/selftests/bpf/progs/verifier_callx_rodata.c > @@ -8,7 +8,8 @@ > =20 > /* gcc doesn't support indirect calls */ > #if defined(__clang__) && (defined(__TARGET_ARCH_x86) || defined(__TARGE= T_ARCH_arm64) || \ > - (defined(__TARGET_ARCH_riscv) && __riscv_xlen =3D=3D 64)) > + (defined(__TARGET_ARCH_riscv) && __riscv_xlen =3D=3D 64) || \ > + defined(__TARGET_ARCH_powerpc)) > =20 > /* > * Read-only data with pointers to functions, where the compiler puts ta= bles [Severity: Medium] Will gating verifier_callx.c and verifier_callx_rodata.c on __TARGET_ARCH_powerpc alone cause test_verifier_callx() and test_verifier_callx_rodata() to fail on PPC64 ELF ABI v1 and PPC32? __TARGET_ARCH_powerpc is defined for all PowerPC builds, and RUN_JITED() in tools/testing/selftests/bpf/prog_tests/verifier.c only checks is_jit_enabled(). However, on PowerPC bpf_jit_supports_callx() only returns true when CONFIG_PPC64_ELF_ABI_V2 is enabled: arch/powerpc/net/bpf_jit_comp.c:bpf_jit_supports_callx() { return IS_ENABLED(CONFIG_PPC64_ELF_ABI_V2); } On PPC64 ELF ABI v1 or PPC32 kernels with BPF JIT enabled, the callx subtests are compiled in instead of the fallback dummy program and fail verification in require_callx_jit() with -EOPNOTSUPP instead of skipping. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130070307.1267= 65-1-shivani@linux.ibm.com?part=3D2