Re: [PATCH RESEND] MIPS: Don't use %pK through printk

From: Thomas Bogendoerfer
Date: Mon Jul 28 2025 - 04:05:53 EST


On Fri, Jul 18, 2025 at 03:18:24PM +0200, Thomas Weißschuh wrote:
> 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@xxxxxxxxxxxxx/
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
> ---
> arch/mips/kernel/relocate.c | 10 +++++-----
> arch/mips/kvm/mips.c | 2 +-
> arch/mips/mm/physaddr.c | 2 +-
> 3 files changed, 7 insertions(+), 7 deletions(-)

applied to mips-next.

Thomas.

--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]