Skip to contentSkip to conversation

tracing: Updates for v6.15

PATCH New Steven Rostedt 1 participant 4 messages Mar 7, 2025 Tracing

lore
Share & tools
lore

Steven Rostedt

author maintainer
#0 lore raw

cover tracing: Updates for v6.15

git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
trace/for-next

Head SHA1: d4ae5070733b114b9431a49c9640437f5e8b2ec5

Christophe JAILLET (1):
tracing/user_events: Slightly simplify user_seq_show()

Steven Rostedt (1):
tracing: Update MAINTAINERS file to include tracepoint.c

Thomas Weißschuh (1):
tracing/user_events: Don't use %pK through printk

----

 MAINTAINERS                      | 1 +
 kernel/trace/trace_events_user.c | 7 ++-----
 2 files changed, 3 insertions(+), 5 deletions(-)
author maintainer
#1 lore raw

PATCH 1/3 tracing/user_events: Dont use %pK through printk

From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= <[email protected]>

Restricted pointers ("%pK") are not meant to be used through printk(). It can unintentionally expose security sensitive, raw pointer values.

Use regular pointer formatting instead.

---
 kernel/trace/trace_events_user.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/trace/trace_events_user.c +1 -1
index 97325fbd6283..3effc6fce20e 100644
@@ -455,7 +455,7 @@ static void user_event_enabler_fault_fixup(struct work_struct *work)
 	if (ret && ret != -ENOENT) {
 		struct user_event *user = enabler->event;
 
-		pr_warn("user_events: Fault for mm: 0x%pK @ 0x%llx event: %s\n",
+		pr_warn("user_events: Fault for mm: 0x%p @ 0x%llx event: %s\n",
 			mm->mm, (unsigned long long)uaddr, EVENT_NAME(user));
 	}
 
Signature · 1 line
2.47.2
author maintainer
#2 lore raw

PATCH 2/3 tracing/user_events: Slightly simplify user_seq_show()

In reply to Steven Rostedt

From: Christophe JAILLET <[email protected]>

2 seq_puts() calls can be merged.

It saves a few lines of code and a few cycles, should it matter.

---
 kernel/trace/trace_events_user.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
kernel/trace/trace_events_user.c +1 -4
index 3effc6fce20e..af42aaa3d172 100644
@@ -2793,11 +2793,8 @@ static int user_seq_show(struct seq_file *m, void *p)
 
 		seq_printf(m, "%s", EVENT_TP_NAME(user));
 
-		if (status != 0)
-			seq_puts(m, " #");
-
 		if (status != 0) {
-			seq_puts(m, " Used by");
+			seq_puts(m, " # Used by");
 			if (status & EVENT_STATUS_FTRACE)
 				seq_puts(m, " ftrace");
 			if (status & EVENT_STATUS_PERF)
Signature · 1 line
2.47.2
author maintainer
#3 lore raw

PATCH 3/3 tracing: Update MAINTAINERS file to include tracepoint.c

In reply to Steven Rostedt

From: Steven Rostedt <[email protected]>

Updates to the tracepoint.c file should not only be Cc'd to LKML, but also to [email protected]. But because it is not listed in the MAINTAINERS file, it does not get added.

---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
index 4ff26fa94895..c203aa4225b0 100644
@@ -24063,6 +24063,7 @@ F:	fs/tracefs/
 F:	include/linux/trace*.h
 F:	include/trace/
 F:	kernel/trace/
+F:	kernel/tracepoint.c
 F:	scripts/tracing/
 F:	tools/testing/selftests/ftrace/
 
Signature · 1 line
2.47.2