Re: [RFC 5/6] lib: vsprintf: Add "%paP", "%padP" options

From: Petr Mladek
Date: Tue May 16 2017 - 10:41:13 EST


On Fri 2017-05-05 21:07:47, Greg KH wrote:
> From: Chris Fries <cfries@xxxxxxxxxx>
>
> Add %paP and %padP for physical address that need to always be shown
> regardless of kptr restrictions.
>
> Cc: William Roberts <william.c.roberts@xxxxxxxxx>
> Cc: Dave Weinstein <olorin@xxxxxxxxxx>
> Signed-off-by: Chris Fries <cfries@xxxxxxxxxx>
> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> ---
> Documentation/printk-formats.txt | 10 ++++++----
> lib/vsprintf.c | 12 +++++++++---
> 2 files changed, 15 insertions(+), 7 deletions(-)

This patch should update also the section about
kptr_restrict in Documentation/sysctl/kernel.txt.
It should mention that the trailing P allows to see
pointers also for %pa, and %p[rR] formats when
the level is 4.

Best Regards,
Petr