[PATCH] ARM: mm: Don't use %pK through printk

Russell King (Oracle) linux at armlinux.org.uk
Tue Feb 18 02:27:49 PST 2025


On Mon, Feb 17, 2025 at 08:38:37AM +0100, 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.

... which means that the warning is pointless because no one can debug
it when someone reports that this has fired.

While I get the security issue, changing this is severely harmful to
fixing problems should this warning fire.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!



More information about the linux-arm-kernel mailing list