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=1796215887; b=Os0PTgnPgya+jyqDUzSGOr4rCf27RscijNwA+/G2e1crMDC/YwBhXJMaiUOCZ830IMKB nRrf6EgXovPjw7dP9nxLE5rLobtqPQ2lzJeBhf9yTJR3wGNz+oPcKYRcSxuZugNrphCkV xQnQ/XDxQ5l7wztDBgo5xQWk/w4I5b3TT3q9CHpJakxBE4fVVG1Nba/cXUESt/dBj2EO4 N43mnt/3JS75wkdtJ+sD1UX/DQEutOfWDjDn5yDj3fDhN1YpjWdqhLMUBEQEvoFRqKQ7M 3hdehxNNLJ0pyTSrfK1PMNyqOKSIMqFg7/EfgzQzQbcxLRgp3DIBL4KFhtcJ8FXhwEA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796215887; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=Uv9TsD9cR8yxaqKQeYT5tlzcC5OtfB87KjXC8CW2uqk=; b=4P2BRoKUmi/iQPb0ROftdjyg0U9oeuaP51tyXBavMTq5SBw3ts+UigPsudI/+3kRS3kL 4OZjQCVCbWcAa7mdbTW/ldb00OJTOPeRQEUTeOiFE+dtcVOpXo+AFzwPJbznBxv5x2jgE r5hh+I0x3gEQnEOhS4r+XR5l10MQyaYe4w1OqjOr6Zh8zu6NqYZbGk9L1nINoIBFuipCA 6ao4SeJ0VP1NAhcM68rSuWKNzvr8rKGtKrPqV4sjMQspC5mmgbrjXKE0xNPWRVWkXIYa7 dVmGd+QYAlxaQd0RN25ifeCQsx3PY/shJUh5Mi0T15etBoR5cH3c4ZDUsSFDa2aEIHw== 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=YcdPGwJh; 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 7ACE6606A31A; Wed, 2 Dec 2026 12:51:27 +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=YcdPGwJh Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB6F61F00899; Wed, 2 Dec 2026 12:51:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796215887; bh=Uv9TsD9cR8yxaqKQeYT5tlzcC5OtfB87KjXC8CW2uqk=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=YcdPGwJhYE72ND93S0gGrDw7zA/OylPFjIcG4tdGb83m49ANLWGEcEeb6Lk441hUb Cw1t9wQUMYxGVTIAFIuCU/33pmPFItjH+SVQHjFL6zO0YoB016KEv68pkMpeglS02d MVibluBHMN0PsuV/UyRqk4LdOFoKmd4jaffXqibZ+o3aVGp6roMddj4UWJPwhOhy5C HL/EjumoSHqeLNSwe7+AHDf6n7wlqFRO9jM497liJdbBRE/L+ZVhl+pI+wtRa5NP/d uVQwMD7RmPpC0eJYLvRUvAVPkz721ng7YXa2qTL0r6upuBWzElvOeDYprArIp0xj1t ml97FkVCCciog== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH RFC bpf-next 18/31] bpf: Add inlined functions for kprobe multi inline tests 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-19-jolsa@kernel.org> References: <20261202123035.10335-1-jolsa@kernel.org> <20261202123035.10335-19-jolsa@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 12:51:26 +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] bpf: raw asm nop in test_run.c breaks build on archs without nop mnemonic -- commit 5d987286743a14e6df613a09586a18d8317f8a98 Author: Jiri Olsa bpf: Add inlined functions for kprobe multi inline tests This commit adds always-inlined helper functions and their callers in net/bpf/test_run.c for kprobe multi inline testing via BPF tracing test_run. > diff --git a/net/bpf/test_run.c b/net/bpf/test_run.c > index cc3236e3c0c45..4a50775904123 100644 > --- a/net/bpf/test_run.c > +++ b/net/bpf/test_run.c [ ... ] > @@ -558,6 +559,81 @@ noinline int bpf_fentry_test10(const void *a) > return (long)a; > } > =20 > +/* > + * Inlined functions for kprobe multi inline tests, the outer function > + * starts with the inner one, so their inlined instances in > + * bpf_kprobe_multi_inline_test1 share the address. > + */ > +static __always_inline int bpf_kprobe_multi_inline_inner(int a) > +{ > + /* > + * Keep an instruction in the inline site, there's no argument > + * setup, so it's the first instruction of the outer function > + * inline site as well. > + */ > + asm volatile("nop"); > + return a + 1; > +} [ ... ] > +static __always_inline int bpf_kprobe_multi_inline_partial(int a) > +{ > + asm volatile("nop"); > + return a + 1; > +} > + > +static __always_inline int bpf_kprobe_multi_inline_nokprobe(int a) > +{ > + asm volatile("nop"); > + return a + 2; > +} [ ... ] > +/* Inlined function with arguments for kprobe multi inline args test. */ > +static __always_inline long bpf_kprobe_multi_inline_args(int a, long b, = void *c) > +{ > + asm volatile("nop"); > + return a + b + (long)c; > +} [Severity: Medium] Will raw asm volatile("nop") break the build on architectures whose assembler does not have a bare "nop" mnemonic? net/bpf/test_run.c is compiled on all architectures when CONFIG_BPF_SYSCALL=3Dy, and OpenRISC uses "l.nop" and rejects bare "nop" as an unrecognized instruction. Using the nop() macro from keeps this portable across architectures. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202123035.1033= 5-1-jolsa@kernel.org?part=3D18