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=1796385484; b=ZeHW1wH5ACyjk04RdgfMnraC8Ou2MfgEGgrcl/QcnkEA5QUNbBRTwQbzOwPM+IpUsWct dDmuRZwdv+3daL8UMpG4lX71D/vhWGmuV05gLpxPgbnc3OQFeaWU9WEPs2SJ6OWCuFcDy ZA6+m+feccm3bCSWUbV8QnLVb9vpneEQDgh9c7nZnEj+rQ5AN3L8HfDkRm5S9Z48/hNa+ hd+ZNx1F4Lqd4Z9920wxIBV6I0lnRZAdTjaoa2ofyK4uDG8oI0pSpqzRkzGec2624QjKa rUJuVyC56JZRXW++WE6mLx801NaizKG1qJYBFdoodzPmu0v6MRhjtKhrJp8c5gM0w0A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796385484; 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=1qCTGPuRv6KeheZOrhZezC09xh9DslM9KSjYr9gY+sQ=; b=HJfDNH8Y1PmOo1tqYTej3/HoK9mly2OUpf+rEs70/Kju61lojBy0pr2WbhTOFxAySrZr q78symDMkygpxYMEDuwWQgBDpJGXaONA5OGJOJZc4heBKnw7G4H3cWjJdiTmr7tLGgZEG gaXTBksfn3VfhPgsLE4Eb+xWdk9Zb+cnR9BISqsomJnQCJPhGCDmcrSKBfO77nLdwKfxR ExoGint7QRuz9LKyGCXbHnjchqw19WSDBTy2NO3GcXj3zRFzC5Ku+7j9gM3w1K7TS+9h4 zEPxcGEFzlR8zfVJT9S4sU85JAlZMKEJWp9K7cdKZhC8srXahr9ApaA9X9/tu8DjaFQ== 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=Jy3psQDJ; 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 261FD606A32D; Fri, 4 Dec 2026 11:58:04 +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=Jy3psQDJ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 368391F00897; Fri, 4 Dec 2026 11:58:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796385483; bh=1qCTGPuRv6KeheZOrhZezC09xh9DslM9KSjYr9gY+sQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Jy3psQDJ5nfc4qzCIHoMG0ftl3Y0JNjGAYw3D4FlnWwyhIdycLczvF6sXcyZhM1Xp J4fIixryY/M9eYM/pQnjwn1Wsl4GdADARDZ3CAjRQ2zKeb42lLqaGzgpGFTtBTD6ch T2ZrI2irpiSkPKXvAS5yBnKOM45UwwswgqFLCl2o= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, "Masami Hiramatsu (Google)" Subject: [PATCH 6.6 0572/1167] tracing/eprobe: Disallow attaching eprobes to fprobe events Date: Fri, 4 Dec 2026 18:59:59 +0900 Message-ID: <20261204100716.952209328@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@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 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Masami Hiramatsu (Google) commit 92d9fa0ed69e1f724feed908bd0a462a42df4b88 upstream. Event probes (eprobes) are not allowed to attach to other dynamic probe events (kprobes, uprobes, and eprobes) to avoid recursive probe chains and lifecycle dependencies. However, when fprobe events were introduced, TRACE_EVENT_FL_FPROBE was omitted from the exclusion mask in find_and_get_event(), allowing eprobes to attach to fprobe and tprobe events. Exclude TRACE_EVENT_FL_FPROBE events in find_and_get_event(). Link: https://lore.kernel.org/all/179455853457.403392.14549390017750529531.stgit@devnote2/ Fixes: 334e5519c375 ("tracing/probes: Add fprobe events for tracing function entry and exit.") Cc: stable@vger.kernel.org Signed-off-by: Masami Hiramatsu (Google) Signed-off-by: Greg Kroah-Hartman --- kernel/trace/trace_eprobe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/kernel/trace/trace_eprobe.c +++ b/kernel/trace/trace_eprobe.c @@ -761,7 +761,8 @@ find_and_get_event(const char *system, c (TRACE_EVENT_FL_IGNORE_ENABLE | TRACE_EVENT_FL_KPROBE | TRACE_EVENT_FL_UPROBE | - TRACE_EVENT_FL_EPROBE)) + TRACE_EVENT_FL_EPROBE | + TRACE_EVENT_FL_FPROBE)) continue; if (!tp_event->class->system || strcmp(system, tp_event->class->system))