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=1796384179; b=gVwRGh2GrHfUGKndenmhHs8guHNtdeND90NqTIL/xLbigbB8lERUJFhvHIlAZyPok7M2 UKGVVl3qYHMzHVwGg7Ce6ZTNHGJcg1jEIxyJ+tu6xA0YTnKm8lt/NVQjX9HZhpWGDhCu0 ORhNsQ5U3rTZu5hN6+zRLfSBfNdywYbegc2CoECb4woNaul/C2CRqm6o1PIwfka+tA//4 v7Typp6jH2InLc/vM07tjtJdV6Openuzm2CiGevRJIApnuJuA27O2q0WJWXW8Odp+Wyo8 FmJuZ83ORCeVilNWVeliNOiBfuOQDznlr5SMF+Zwz1l5IgG5dnTdH8l80PR5x0C4Dcw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796384179; 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=STwAaTON34G2ucDIEhnkaXNElWIIsAHwcynmr64zca0=; b=q3DyZDHpWSzxPt1cDBBCEsOsvbuniAYn1jy9s/N3lFXshQUbRdjpo9AP7OV6k4ALk+od E/hSvDtSA+mZhlfK11YAjdDLD+wmgE7PAjnXBP3qOVHgz3qNbn6T0lX3evjnPXNJPIEeQ PaIGMstL5QvE9ZC/J+AdkyquWi+7/Os2/neRZ2e6yD4wyW8EgCcLpwXMY/Q8KmSlq/f1t OlpeGXJXq4UM5bkqRgE6ndjXFKjXFtYdgWC0Uw11JqiafWA1mE/gNitg/ZjHxODYMn6Ly q9E0H6XUMcJd7WAIlIb36Rf1DKZlTJ7tcQQCMkH666ipn7K8sS1Ar3ymaRmM5vZ70rA== 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=2I3azPsj; 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 96685606A322; Fri, 4 Dec 2026 11:36:19 +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=2I3azPsj Received: by smtp.kernel.org (Postfix) with ESMTPSA id D73501F000CE; Fri, 4 Dec 2026 11:36:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796384179; bh=STwAaTON34G2ucDIEhnkaXNElWIIsAHwcynmr64zca0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=2I3azPsj1h+7N6OBb7faxfTiyNPmwZWfv9ixC2aD+nRgwesPkHJWARAIn6hiepk5g RJNU+Qk94QHnPOLGhIato0AE2LfekassgGl9UnlIQiQCfEDiQTSTPuHkP8OyTMl62x YJ6ISz49TLEt6uQKnSs8aGP8widOgHITDXsGM8Xc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Steven Rostedt , David Carlier Subject: [PATCH 6.12 503/555] tracing: Ignore .function on the function trace event Date: Fri, 4 Dec 2026 19:09:06 +0900 Message-ID: <20261204100628.084959892@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100603.988357525@linuxfoundation.org> References: <20261204100603.988357525@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.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: David Carlier commit 56ce4ed6316cae9536ea891d6686b92f1d930c00 upstream. For the function event, parse_pred() handles the .function suffix before the ftrace_event_is_function() case, so "ip.function == schedule" builds a predicate with no regex. Setting it through perf then dereferences the NULL pred->regex in ftrace_function_set_filter_pred(). The "ip" field of that event already takes a function name, so ignore the suffix there and let the function event case handle it. Cc: stable@vger.kernel.org Fixes: cfb58e278c6a ("tracing/filters: Dynamically allocate filter_pred.regex") Link: https://patch.msgid.link/20261119080139.131834-1-devnexen@gmail.com Suggested-by: Steven Rostedt Signed-off-by: David Carlier Signed-off-by: Steven Rostedt Signed-off-by: Greg Kroah-Hartman --- kernel/trace/trace_events_filter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/kernel/trace/trace_events_filter.c +++ b/kernel/trace/trace_events_filter.c @@ -1593,7 +1593,9 @@ static int parse_pred(const char *str, v /* See if the field is a kernel function name */ if ((len = str_has_prefix(str + i, ".function"))) { - function = true; + /* Ignore if event is already a function */ + if (!ftrace_event_is_function(call)) + function = true; i += len; }