Skip to content

Commit effd105

Browse files
t-8chrostedt
authored andcommitted
tracing/user_events: Don't use %pK through printk
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. Cc: Mathieu Desnoyers <[email protected]> Link: https://lore.kernel.org/20250217-restricted-pointers-trace-v1-1-bbe9ea279848@linutronix.de Link: https://lore.kernel.org/lkml/20250113171731-dc10e3c1-da64-4af0-b767-7c7070468023@linutronix.de/ Signed-off-by: Thomas Weißschuh <[email protected]> Acked-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent ca29a0b commit effd105

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/trace_events_user.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ static void user_event_enabler_fault_fixup(struct work_struct *work)
455455
if (ret && ret != -ENOENT) {
456456
struct user_event *user = enabler->event;
457457

458-
pr_warn("user_events: Fault for mm: 0x%pK @ 0x%llx event: %s\n",
458+
pr_warn("user_events: Fault for mm: 0x%p @ 0x%llx event: %s\n",
459459
mm->mm, (unsigned long long)uaddr, EVENT_NAME(user));
460460
}
461461

0 commit comments

Comments
 (0)