aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/task.c
diff options
context:
space:
mode:
authorThomas Weißschuh <[email protected]>2025-07-18 13:20:25 +0000
committerMadhavan Srinivasan <[email protected]>2025-07-22 08:51:18 +0000
commit4bb69d5270df0f78874c93efade580d9550b34a9 (patch)
tree6208cf6f54fa0f873d7021a835c3845c420074a5 /rust/helpers/task.c
parentarch: powerpc: defconfig: Drop obsolete CONFIG_NET_CLS_TCINDEX (diff)
downloadkernel-4bb69d5270df0f78874c93efade580d9550b34a9.tar.gz
kernel-4bb69d5270df0f78874c93efade580d9550b34a9.zip
powerpc: Don't use %pK through printk
In the past %pK was preferable to %p as it would not leak raw pointer values into the kernel log. Since commit ad67b74d2469 ("printk: hash addresses printed with %p") the regular %p has been improved to avoid this issue. Furthermore, restricted pointers ("%pK") were never meant to be used through printk(). They can still unintentionally leak raw pointers or acquire sleeping locks in atomic contexts. Switch to the regular pointer formatting which is safer and easier to reason about. Link: https://lore.kernel.org/lkml/20250113171731-dc10e3c1-da64-4af0-b767-7c7070468023@linutronix.de/ Signed-off-by: Thomas Weißschuh <[email protected]> Reviewed-by: Christophe Leroy <[email protected]> Signed-off-by: Madhavan Srinivasan <[email protected]> Link: https://patch.msgid.link/20250718-restricted-pointers-powerpc-v2-1-fd7bddd809f3@linutronix.de
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions