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=1796221601; b=KgRXU0dZ5AfR2WvYx2KDWM6MxIPifneDkvjzomjvIaMTxDDjE0nJyqfpx5APdzqWoRIC 9g3ymBE+GsEo0MRA5yb++iApUJeZq+3+rojHHQST9qT0ZPEVa6771ag5+YGgDh2etk8KT o/b5tZXzEh8th/fKGo4WGlVYJ3zUg/RD+J6G4yzwAqVh0f4MVGCh1OTEwcijV4CuT2AqL 4ls002yPvAgqca3r4DOKSXiSLXFm+lyD9/DoRQEBbDyPDx4UmflonLhy9sRCXBOYkikoy clDjuN3BYj1g0tIgIn0DhkVFYiPe5wJvmX34G6WBNfmuB8s0rOozqkkvqYes41apnUg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796221601; h=Received:DKIM-Signature:Subject:To:Cc:From:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=FFNSCNfKrZqxpoV51wuIG0K3wbhZcN7PjQ8lms1bqgw=; b=WY4Pzi0iMyqOarbR0d9Hbb9jzhL4tfTwyidHaBp7TGK5E67J/DtNtw4c2QqsNYCHj7oo a17vfaLLEatY1dc72W+vcWuAfXoIuIvxZ8qoAo5iM2qwskbyCO0U1VaVFhsAKLFQxWqo0 uOiy1dzndQlmR9vUZkh4dV1/THU5e6z5CpnE4k6fmCxwYUv8jPX5m6s4Noukozy56ofwu VofSeWrXOyQxh30ZeM9OsClp/zuP+fc01i9Kl9KQZFGSopjeUqa0HcE/y9wDFfdquAWs5 vdHU+afHRUA3EAesQW9fWXwfpONX35Im9Q9PFC7l04beQIBApwJN49vPixdGNoRO5jQ== 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=YpBKcLdJ; 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 A5013606A31A for ; Wed, 2 Dec 2026 14:26:41 +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=YpBKcLdJ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44C361F0089A; Wed, 2 Dec 2026 14:26:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796221600; bh=FFNSCNfKrZqxpoV51wuIG0K3wbhZcN7PjQ8lms1bqgw=; h=Subject:To:Cc:From:Date; b=YpBKcLdJQL56lvQawPfnQT7dOLabR5u24MZrTgpJ6S3hgk6KWsyesXmLkyS43iESX vfGTh7FeRspi9insTp7z73YBdW8yS66NH1HKm/6k70sKA1ta+f2I4/EEX7u48cDl97 4rI5hOCymzuZouSQWmtRlybSAGMvO5nlhySYvxsY= Subject: FAILED: patch "[PATCH] tracing: Do not allow user events to add a system name" failed to apply to 6.1-stable tree To: rostedt@goodmis.org,beaub@linux.microsoft.com Cc: From: Date: Wed, 02 Dec 2026 14:57:51 +0100 Message-ID: <2026120251-derby-ogle-0d28@gregkh> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.1-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y git checkout FETCH_HEAD git cherry-pick -x 761a77e09577bc7e5fdaff1d11bbff3486a87bf9 # git commit -s git send-email --to '' --in-reply-to '2026120251-derby-ogle-0d28@gregkh' --subject-prefix 'PATCH 6.1.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 761a77e09577bc7e5fdaff1d11bbff3486a87bf9 Mon Sep 17 00:00:00 2001 From: Steven Rostedt Date: Wed, 18 Nov 2026 12:25:20 -0500 Subject: [PATCH] tracing: Do not allow user events to add a system name User events currently do not support the addition of a system name, but the parsing does not check to see if one is specified. A kprobe can add its own system name with the following command: ~# echo 'p:mysystem/kprobe_event schedule a=%ax' >> dynamic_events ~# ls events/mysystem enable filter kprobe_event But if one tries to do the same with user events: ~# echo 'u:user_events/test u32 a' >> dynamic_events ~# ls events/user_events ls: reading directory 'events/user_events/': Invalid argument enable filter It corrupts the file system as the event added had a '/' in the name. Until user events support specifying system names, just return -EINVAL to prevent the corrupted file system from happening: ~# echo 'u:user_events/test u32 a' >> dynamic_events -bash: echo: write error: Invalid argument Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20261118122520.4a689710@gandalf.local.home Acked-by: Beau Belgrave Fixes: 7f5a08c79df35 ("user_events: Add minimal support for trace_event into ftrace") Signed-off-by: Steven Rostedt diff --git a/kernel/trace/trace_events_user.c b/kernel/trace/trace_events_user.c index ea6a20a30cf5..e29e1c772aa7 100644 --- a/kernel/trace/trace_events_user.c +++ b/kernel/trace/trace_events_user.c @@ -1040,6 +1040,9 @@ static int user_event_parse_cmd(struct user_event_group *group, if (flags) *flags++ = '\0'; + if (strstr(name, "/") != NULL) + return -EINVAL; + return user_event_parse(group, name, args, flags, newuser, reg_flags); }