FAILED: Patch "tracing: Fix to set write permission to per-cpu buffer_size_kb" failed to apply to 6.12-stable tree
Subsystems (2)
Sasha Levin
maintainerThe patch below does not apply to the 6.12-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 <[email protected]>.
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From f844282deed7481cf2f813933229261e27306551 Mon Sep 17 00:00:00 2001
From: "Masami Hiramatsu (Google)" <[email protected]>
Date: Tue, 10 Feb 2026 17:43:36 +0900
Subject: [PATCH] tracing: Fix to set write permission to per-cpu
buffer_size_kb
Since the per-cpu buffer_size_kb file is writable for changing per-cpu ring buffer size, the file should have the write access permission.
Cc Mathieu Desnoyers <[email protected]>
Link https://patch.msgid.link/177071301597.2293046.11683339475076917920.stgit@mhiramat.tok.corp.google.com open here
Fixes 21ccc9cd7211 ("tracing: Disable "other" permission bits in the tracefs files")
Signed-off-by Masami Hiramatsu (Google) <[email protected]>
Signed-off-by Steven Rostedt (Google) <[email protected]>
--- kernel/trace/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/trace/trace.c +1 -1
@@ -8613,7 +8613,7 @@ tracing_init_tracefs_percpu(struct trace_array *tr, long cpu)trace_create_cpu_file ("stats" ,TRACE_MODE_READ , d_cpu, tr, cpu, &tracing_stats_fops); -trace_create_cpu_file ("buffer_size_kb" ,TRACE_MODE_READ , d_cpu, +trace_create_cpu_file ("buffer_size_kb" ,TRACE_MODE_WRITE , d_cpu, tr, cpu, &tracing_entries_fops);if (tr->range_addr_start)
Signature · 1 line
2.51.0