]> www.infradead.org Git - users/willy/pagecache.git/commit
uprobes: Don't use %pK through printk
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Mon, 17 Feb 2025 07:43:35 +0000 (08:43 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 18 Feb 2025 08:48:02 +0000 (09:48 +0100)
commitec5fd50aeff9c9156304853c6d75eda852d4a2c8
tree0472f3ff7f36b8a65eacb566650aef89f8583a84
parent2408a807bfc3f738850ef5ad5e3fd59d66168996
uprobes: 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.

For more background, see:

  https://lore.kernel.org/lkml/20250113171731-dc10e3c1-da64-4af0-b767-7c7070468023@linutronix.de/

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250217-restricted-pointers-uprobes-v1-1-e8cbe5bb22a7@linutronix.de
kernel/events/uprobes.c