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=1796381369; b=WGSXVwiMnkYfwcLZVOAOlU2PLkAAygqCYMCjf+Vg2MT+CWn14DqyGl7iGH2XC2WqYXtp csGE5aE2vZ29LSXNoVXUpJ/rxhuKs7SBeVGdsV8UJ3V4aR3VAPZ/Tb5o15UXUrdueTOP3 Nazznbt6yizPi1X+r1tOSsVXHvmjXfbFb7kCUh1M138QkytwiPoID62Av7ifMPF5p/hDf BKWAI3jOEug0et4q8+hskOur3fpszjrFFsJlnAZ7vtmXSewDAddMPOS7bgQntcLLCOEI5 zIMtc5cDCnGoStdVYtBFvGe5GNBWbz6Qk1Y+95cucTBeZaN13ccgQeTi9bwmjCG7vWA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796381369; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=dek6+ZIb/dt13I+3tMZCwx1KZ/5elnNT9tfwht26RiE=; b=BFpjh5+7l0mits+bXskZaWqYRxzjM6mLK2KY9ASAug21UNfPxNidtlXmvwRKUYjYv38G Xt62WVTlj0LG6u2YqUDDF1ZHrdOiI9sW4Ka2dVt14iFAz5W9G4ZL9ISbdCwkEnOblsPrw ifo3AjknpSijryhG8783PrdGeAzh0J/G/ocY2PMLXvmyIfbo+YxqKvNTAHRl++H6cNXQm 3AyJPz/KvwotDF41mNuqadNCI4WUmZStzlaU29Vz95t3nouzu+tnSPRdON2LP1FYsorgb CCzMVotZVsCclmJAiQTKVNXseWYKW9vyqr2GLJM+Yit8uz6dj3hItO1uvO2LDc81agw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=2aEQioDH; 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 B4D1B606A32C; Fri, 4 Dec 2026 10:49:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=2aEQioDH Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2BD451F000CE; Fri, 4 Dec 2026 10:49:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796381369; bh=dek6+ZIb/dt13I+3tMZCwx1KZ/5elnNT9tfwht26RiE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=2aEQioDHQa/uAgImHIgojS8DqybRs/AiyzrbB2XS3cVv9hNilsPZfGnT2kNy0bzDS Lcbp7XziCk3cG1m6ODBbxl8O1MdQyY/53ljBaXOgrTuWJNchAyNhKMBoH4lcXpckMh IHfu9q63lR6+4KjWizk4pSxj7taF+dLrzjg+EPJA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Steven Rostedt Subject: [PATCH 7.3 675/742] tracing: Add notrace to event functions that hook to ftrace Date: Fri, 4 Dec 2026 19:08:59 +0900 Message-ID: <20261204100652.995497495@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Steven Rostedt commit 39bc1fdbce1e5f435f8d02d57a9415735690bb1f upstream. A few functions in trace_events.c are used to hook to the ftrace function hooks. Before CONFIG_FUNCTION_SELF_TRACING was added, these functions were not marked for tracing because the entire directory was set to "notrace". But now that certain files can be traced by ftrace when the CONFIG_FUNCTION_SELF_TRACING config is set, individual functions that use ftrace must be annotated with "notrace" otherwise they can trigger a triple fault when called. Annotate the trace_events.c functions that are attached to ftrace with "notrace. Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20261119124319.3a8bfe50@gandalf.local.home Fixes: f93a7d0caccd6 ("ftrace: Allow tracing of some of the tracing code") Signed-off-by: Steven Rostedt Signed-off-by: Greg Kroah-Hartman --- kernel/trace/trace_events.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c @@ -4279,7 +4279,7 @@ static void update_event_probe(struct ev set_bit(EVENT_FILE_FL_SOFT_DISABLED_BIT, &data->file->flags); } -static void +static void notrace event_enable_probe(unsigned long ip, unsigned long parent_ip, struct trace_array *tr, struct ftrace_probe_ops *ops, void *data) @@ -4296,7 +4296,7 @@ event_enable_probe(unsigned long ip, uns update_event_probe(edata); } -static void +static void notrace event_enable_count_probe(unsigned long ip, unsigned long parent_ip, struct trace_array *tr, struct ftrace_probe_ops *ops, void *data) @@ -5167,7 +5167,7 @@ static DEFINE_PER_CPU(atomic_t, ftrace_t static struct trace_event_file event_trace_file __initdata; -static void __init +static void notrace __init function_test_events_call(unsigned long ip, unsigned long parent_ip, struct ftrace_ops *op, struct ftrace_regs *regs) {