Re: [PATCH] ath10k: hide kernel addresses from logs using %pK format specifier
From: Joe Perches
Date: Fri Aug 05 2016 - 13:58:00 EST
On Thu, 2016-08-04 at 19:21 +0530, c_mkenna@xxxxxxxxxxxxxxxx wrote:
> From: Maharaja Kennadyrajan <c_mkenna@xxxxxxxxxxxxxxxx>
>
> With the %pK format specifier we hide the kernel addresses
> with the help of kptr_restrict sysctl.
> In this patch, %p is changed to %pK in the driver code.
>
> The sysctl is documented in Documentation/sysctl/kernel.txt.
Maybe %p should follow %pK and only show kernel .text addresses
by default and any other address as 0 unless the sysctl is set.