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=1796099963; b=eQKXhfP4ri2QavoRVn7jIiDPUIdxtuOs9sxUhfzmi5H6OnwyATUzQVi/UCfWfK7wTPBn r0PLv3ZMw57ESMF4062f3VbqRj0cTzY18rX59EFHLZsqTTdjYX2BMHES3bDBc+7RbulIC rzT2OKr4MhTdunT+BnvK2L05wbg+idU5lT0BE5VluufTTerMZiC6WipaII4NBKHPwlDpb /3IepaOzvKzwI6nGpEKwxV1SGZWT4K1FWHvdZ+0GFlBz6In1SfmIkq0onze6KjmT/DvxN Wo6KkkTaLWm8LCqHZEU2IW+sdOBc2rNRLRu5/HfdDyxkuqUB06Ly5D6icUCqgyGlfcA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796099963; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=papEizXueKSljNwe0aqGNfs7ntDxA2s/qTt4Uf62mIU=; b=GbZHe9itX1JBlCq6IASEcKnqx6J6CyCFdBLLddTzuv0lnSg7YAmgdVl3+r7qo5lbWIHH i5ZbmeBLKoSOCC4wGpcIdjT0L0ecTIWWqq9GvPki+KU7kVq0//7ucuCi9+auw9Cm3zPaB SO/kgdtaqQnG1+PNgQmk+oYTFzrEjuQmxxR9p4vziGh/Iu2qmC5hJYtDH07yfTTnqrsU9 u6jwJt7MCGCLQekiTb3TV4aTSBHW6DAkOlCuI8eW2nC4BVZN4aTPYO7oSngblnGXsUD5u HSCzXZ8sA48NEG8u4CDYPk3e2cv/mDF8/IodVaH6qMyzOx+oRW5JdxbH+G+zmHWdFrQ== 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=j9xLuyQH; 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 B0809606A31A; Tue, 1 Dec 2026 04:39:23 +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=j9xLuyQH Received: by smtp.kernel.org (Postfix) with ESMTPSA id 170491F000C1; Tue, 1 Dec 2026 04:39:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796099963; bh=papEizXueKSljNwe0aqGNfs7ntDxA2s/qTt4Uf62mIU=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=j9xLuyQHIYBgeEZCQqLKKIcgxXa4nuIwy7lt0D9NCdlWZvDGmiDcXTA59SyefpU1I cywqmDrxkyFa351ZAzDsdYpnhuNxYcsnB+n1hJhzElXVlSCHogBYdqrGHSUKBf6An3 etU9PKe7tVpDOdd8EUul6XLNdceeGQg9jOBMmeImmS7TlV87U8UotPoCqDZJvEG3sf 4XDlIoF9MGZJFqaaKz87CI/qyb5KpZNytkSgLlX8fz/ON5cDTlvJTOv+weNgmpfOip 8yLDt6aq8khGlIgME+O7xrveyZkahbRCe7rnJjRu+Iwcws9LS9rWS8xf1HChLYPVfc jzEGOkv2yGTow== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v3 08/22] srcu: Mark the fast notrace read-side 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-9-song@kernel.org> References: <20261201042201.3199928-1-song@kernel.org> <20261201042201.3199928-9-song@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 04:39:21 +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] srcu: missing notrace on Tiny SRCU inline helpers called by fast lock/unlock -- commit 58446ad08cebec81369ae61a32f8e4673fca1dc1 Author: Song Liu srcu: Mark the fast notrace read-side helpers notrace This commit adds explicit notrace annotations to srcu_read_lock_fast_notrace(), srcu_read_unlock_fast_notrace(), srcu_check_read_flavor(), and the Tiny SRCU implementations of __srcu_read_lock_fast() and __srcu_read_unlock_fast(). > diff --git a/include/linux/srcutiny.h b/include/linux/srcutiny.h > index 47a368f945e34..c6f9ff9e15579 100644 > --- a/include/linux/srcutiny.h > +++ b/include/linux/srcutiny.h > @@ -114,13 +114,14 @@ static inline struct srcu_ctr __percpu *__srcu_ctr_= to_ptr(struct srcu_struct *ss > return (struct srcu_ctr __percpu *)(intptr_t)idx; > } > =20 > -static inline struct srcu_ctr __percpu *__srcu_read_lock_fast(struct src= u_struct *ssp) > +static inline struct srcu_ctr __percpu notrace *__srcu_read_lock_fast(st= ruct srcu_struct *ssp) > __acquires_shared(ssp) > { > return __srcu_ctr_to_ptr(ssp, __srcu_read_lock(ssp)); > } > =20 > -static inline void __srcu_read_unlock_fast(struct srcu_struct *ssp, stru= ct srcu_ctr __percpu *scp) > +static inline void notrace > +__srcu_read_unlock_fast(struct srcu_struct *ssp, struct srcu_ctr __percp= u *scp) > __releases_shared(ssp) > { > __srcu_read_unlock(ssp, __srcu_ptr_to_ctr(ssp, scp)); [Severity: Low] Should __srcu_read_lock(), __srcu_ctr_to_ptr(), and __srcu_ptr_to_ctr() in include/linux/srcutiny.h also be marked notrace? __srcu_read_lock_fast() and __srcu_read_unlock_fast() call those plain static inline helpers directly (and srcu_read_lock_notrace() also calls __srcu_read_lock()). Once commit "compiler_types: Move notrace from inline to __always_inline" drops notrace from inline, any out-of-line copy of those helpers under CONFIG_TINY_SRCU will be traceable when called from tracepoints. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201042201.3199= 928-1-song@kernel.org?part=3D8