Skip to content

Commit 892d20a

Browse files
t-8chctmarinas
authored andcommitted
arm64: mm: 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. Link: https://lore.kernel.org/lkml/20250113171731-dc10e3c1-da64-4af0-b767-7c7070468023@linutronix.de/ Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Link: https://lore.kernel.org/r/20250217-restricted-pointers-arm64-v1-1-14bb1f516b01@linutronix.de Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent 31208ba commit 892d20a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/mm/physaddr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
phys_addr_t __virt_to_phys(unsigned long x)
1111
{
1212
WARN(!__is_lm_address(__tag_reset(x)),
13-
"virt_to_phys used for non-linear address: %pK (%pS)\n",
13+
"virt_to_phys used for non-linear address: %p (%pS)\n",
1414
(void *)x,
1515
(void *)x);
1616

0 commit comments

Comments
 (0)