Re: [kernel-hardening] [RFC V2 1/6] lib: vsprintf: additional kernel pointer filtering options

From: Greg KH
Date: Wed Oct 04 2017 - 04:55:43 EST

On Sun, Oct 01, 2017 at 11:06:45AM +1100, Tobin C. Harding wrote:
> Add the kptr_restrict setting of 3 which results in both
> %p and %pK values being replaced by zeros.
> Add an additional %pP value inspired by the Grsecurity
> option which explicitly whitelists pointers for output.
> Amend scripts/ to handle %pP.
> This patch is based on work by William Roberts
> <william.c.roberts@xxxxxxxxx>
> Signed-off-by: Tobin C. Harding <me@xxxxxxxx>

Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>