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=1796215831; b=dGIUwRr69IIHCgkKquCJMIDfKiRRDnVGXNTp0oUKETOEjmFsqyOf0WfTTvd5m0z/voam o5gpoqty5U95kKKRl4oQlaHItKN2CMVTgVXfbVLnxBDfQn4rmV5FNA/hdrKx9u59sA3Dg v41UqCRf/x0ipR+oza0orsbl0L/2THgli85WeamSrpprhsebc9R1u34fzCUrbf+XTMqcs oYZGPoCvy/EwEDHfYEl8rr+wUKKZFp5ZgiRJrAa98Cv17d9qlv3SfYLnZQNgSGoJrjKbi Fk8ywostWQXlyPpjknjJ1MdYFfeg+GWB1iGQE4EaU6r7b1LL9Jah7IXEYzQnDw9abdw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796215831; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=SOk5UfpFi8+D0W6asgTg4KIavx8ZAYMxSAszJlYpPmg=; b=OXF2tpaQer3JvjoHbhDrcIAK4dXk88h60iZFje985QhVs7DbdjRgjexBtN0xGFWd3nL/ aRfaa5Vfxat+7MWBBB/V+yO35L8tsktbcW3fslHRHpM9sAu6t0XnDJ1yS9iBPgwsnIjDy XgYgt/SWpv5/NiSiGJSFE7yXfCcDFid+Ghf81oZPL/PJKYTlx73C5j/6QpXP7vMoTjE7d g3OOo81fVzA3Mbklnf8E+F7EKjTN2h532Sybql9dH3r5lJ2vF15iHDcxBkN9p0xVg5GYC B+RySEwpdFssiUXMkXFDduYqlKRihQO+twM/IH+0QVr1mWlNYmjbULrtMVbKkwzSk+w== 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=fPsr4XbC; 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 7D283606A322; Wed, 2 Dec 2026 12:50:31 +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=fPsr4XbC Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09FEF1F0089B; Wed, 2 Dec 2026 12:50:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796215831; bh=SOk5UfpFi8+D0W6asgTg4KIavx8ZAYMxSAszJlYpPmg=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=fPsr4XbCJGyAW94M/MW89t9KnQdR91FcgUY9gS5B67xPExc+iLpNqm6LqXxkEqta8 4ZiAgABxa5UTi7fVVO7H8zYia9vLuy8h0df9BL7DVP6tYusSvpCjeJy06N9ePM1oHY C2gntcSr0V1rg1M2qLzQRYGyBIQuDcyqBQjS+xp5u55g/LheDhxIAA1apvD5m3mWoJ hkOZ+Lze+OaEED9TjWg1merEyEOz8nHT0nxX6kUpuWp/mgl8p7cZhVhBuuh+M3pSG7 R49/6bm/vnC9fxN2CevDV5ocl5gl0XfUT2JJRSPY9l7V2mjRuvaLwexawnRX0E6vqc GxxKWA1LS4Rxg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH RFC bpf-next 23/31] selftests/bpf: Add kprobe multi inline attach test Reply-To: sashiko-reviews@lists.linux.dev To: "Jiri Olsa" Cc: bpf@vger.kernel.org, linux-trace-kernel@vger.kernel.org In-Reply-To: <20261202123035.10335-24-jolsa@kernel.org> References: <20261202123035.10335-1-jolsa@kernel.org> <20261202123035.10335-24-jolsa@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 12:50:30 +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: premature test__skip() in test_inline_subtests() -- commit 3b66f425ce4402b3110a2ac73ffbb4d519bd10dd Author: Jiri Olsa selftests/bpf: Add kprobe multi inline attach test This commit adds the inline_attach subtest to kprobe_multi_test to verify attaching to inlined functions with BPF_F_KPROBE_MULTI_INLINE, checking hit counts and function cookies before and after detach. > diff --git a/tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c b= /tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c > index 651123cd8602d..e54db60427c33 100644 > --- a/tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c > +++ b/tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c [ ... ] > @@ -703,6 +714,207 @@ static void test_attach_probe_dup_sym(void) [ ... ] > +/* Run all the tests for attaching to inlined functions. */ > +static void test_inline_subtests(void) > +{ > + if (!inline_attach_supported()) { > + test__skip(); > + return; > + } > + > + if (test__start_subtest("inline_attach")) > + test_inline_attach(); > + > + free_inline_btf(); > +} [ ... ] > @@ -748,5 +960,6 @@ void test_kprobe_multi_test(void) > test_attach_write_ctx(); > if (test__start_subtest("dup_sym")) > test_attach_probe_dup_sym(); > + test_inline_subtests(); > RUN_TESTS(kprobe_multi_verifier); > } [Severity: Low] Does calling test__skip() before test__start_subtest("inline_attach") on non-x86_64 architectures mark the preceding dup_sym subtest as skipped? test__start_subtest() only finalizes the previous subtest when the next subtest starts, so env.subtest_state still points to dup_sym when test_inline_subtests() runs, causing test__skip() to set dup_sym's skipped flag while never registering inline_attach. Checking inline_attach_supported() inside test_inline_attach() (after test__start_subtest("inline_attach")) would skip the intended subtest. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202123035.1033= 5-1-jolsa@kernel.org?part=3D23