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=1796100426; b=e0QdfSy6TAvQc2ErZCV0Iqt1yqDdrumVcMO4FqJ5AtCYqr76h5Aoeq6ndjpiZvKk0VLR BbFZSjd07G9DG1RLTz3/Ph1tlzL81TLn3XE2zyToCL6fLe+zBpxieBvmNFq+geL2Ci8h4 s4YknfLs/WUeNJjjdvtkgfO9AKK9J9mbNnyFpC+j40+JjeOg1r7cqBmucb24R0UE1WE9I r06UO3NqlCagdqNdxYPOyYGv0NTANyH39kZy6M+V/NIfuYvQRyMe3FUhc2yGhqbNuRq29 XRVla6UF0e+QtALB16A0ZGjNTqVserw5n5lYjtDLF7jb729I1VaRCseCa3RINsJPi7g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796100426; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=6uWes0sO6Kf7RJvL5YzAsY+/zScQ8tZhBmRduRlhnqA=; b=2AjSSbiOiFk7k6C39KCJL1pYh7sSKWRraAorFua4jeAfRTlFijP2Rf2IJZXd4jm09aVb 0gFeqKqOakpiGVbMO4qFOuWGJp3LgZ4+lwv8ARxfyiYD0d889Rp0b8khvQfXKPEZ8NLet CmJQkjD5EcVo5oJyIccHkUZZWhaSN6dQ1rKaDbQUD71vJaD2t0W92/VxE0DZGAnoTGLa+ IiE7MDXwEDODMiKuN0FooVE2RTJBPb+WaQIbyMj2563sYmlVxa/6kZLpe6P8qF3o+mGF2 5voj8YNcbOgXBrKX//j8C7wd57cMvQ4s8cKSx6WyPTTNOAdxEIO2/47cIy2GmdE3VNA== 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=QvgUF97R; 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 1294F606A31A; Tue, 1 Dec 2026 04:47:05 +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=QvgUF97R Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CE6C1F00893; Tue, 1 Dec 2026 04:47:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796100425; bh=6uWes0sO6Kf7RJvL5YzAsY+/zScQ8tZhBmRduRlhnqA=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=QvgUF97Rb/Jv2HsP92RMA2ZwNyyXP2MdFe4RHjDAPidtO+ltTh58JUvLjCPCcXEUn h5Njn4WdqzLc1jjeW2xOueB1pV0+IBOCw6mjXHxFAXUTDOz9v+f+AcpnLlKn68/wrV Y6kOqgyNEBKyYY6Kb+xHk8q2xsUcBllM9KRKgSfk06z1c7z5MVvYO7NOT8AakJqfta PBX7zD4l5Of5BYlArHmsXpbeaE78gv0dxMnrfps/G9UX5qq2kcxLyG3Vn2p9uW6v+/ w3IRXNP+AJMXK1c0qdxOgIEUdCEDYx4057QC/xzrgyFiVLTx0DiBlQo8jyzu5mE0Fv u4rqxE0Pp3oiw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v3 19/22] arm64: Mark the stack unwinder helpers notrace Reply-To: sashiko-reviews@lists.linux.dev To: "Song Liu" , linux-trace-kernel@vger.kernel.org, live-patching@vger.kernel.org, bpf@vger.kernel.org Cc: rostedt@goodmis.org, mhiramat@kernel.org, mark.rutland@arm.com, peterz@infradead.org, tglx@kernel.org, frederic@kernel.org, paulmck@kernel.org, catalin.marinas@arm.com, will@kernel.org, maddy@linux.ibm.com, mpe@ellerman.id.au, npiggin@gmail.com, chleroy@kernel.org, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, ojeda@kernel.org, kernel-team@meta.com In-Reply-To: <20261201042201.3199928-20-song@kernel.org> References: <20261201042201.3199928-1-song@kernel.org> <20261201042201.3199928-20-song@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 04:47:04 +0000 X-Mailing-List: live-patching@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] arm64: missing notrace or __always_inline on unwind_find_stack() -- commit b836a86f5820d0a3b22ab6c11f3d581e0f3097d0 Author: Song Liu arm64: Mark the stack unwinder helpers notrace This commit marks the stack unwinder inline helpers in and as notrace so that out-of-line copies cannot be instrumented. > diff --git a/arch/arm64/include/asm/stacktrace/common.h b/arch/arm64/incl= ude/asm/stacktrace/common.h > index 821a8fdd31af4..d592e65db321c 100644 > --- a/arch/arm64/include/asm/stacktrace/common.h > +++ b/arch/arm64/include/asm/stacktrace/common.h [ ... ] > @@ -99,7 +99,7 @@ static struct stack_info *unwind_find_stack(struct unwi= nd_state *state, > * > * Return: 0 upon success, an error code otherwise. > */ > -static inline void unwind_consume_stack(struct unwind_state *state, > +static inline void notrace unwind_consume_stack(struct unwind_state *sta= te, > struct stack_info *info, > unsigned long sp, > unsigned long size) > @@ -142,7 +142,7 @@ static inline void unwind_consume_stack(struct unwind= _state *state, > * > * Return: 0 upon success, an error code otherwise. > */ > -static inline int > +static inline int notrace > unwind_next_frame_record(struct unwind_state *state) > { > struct stack_info *info; [Severity: Medium] Should unwind_find_stack() in this header also be marked inline notrace? It is defined as a plain static function without inline or notrace, and is called on every frame by unwind_next_frame_record() and by the __always_inline helpers in arch/arm64/kernel/stacktrace.c inside noinstr arch_stack_walk(). An out-of-line copy of unwind_find_stack() remains instrumented by ftrace and kprobeable, which can trigger recursive tracing or a fatal kprobe recursion BUG() when lockdep unwinds via return_address() -> arch_stack_walk(). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201042201.3199= 928-1-song@kernel.org?part=3D19