From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 4 Oct 2017 10:55:42 +0200 From: Greg KH Message-ID: <20171004085542.GA28247@kroah.com> References: <1506816410-10230-1-git-send-email-me@tobin.cc> <1506816410-10230-2-git-send-email-me@tobin.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1506816410-10230-2-git-send-email-me@tobin.cc> Subject: Re: [kernel-hardening] [RFC V2 1/6] lib: vsprintf: additional kernel pointer filtering options To: "Tobin C. Harding" Cc: Petr Mladek , Joe Perches , Ian Campbell , Sergey Senozhatsky , kernel-hardening@lists.openwall.com, linux-kernel@vger.kernel.org, Catalin Marinas , Will Deacon , Steven Rostedt , William Roberts , Chris Fries , Dave Weinstein List-ID: 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/checkpatch.pl to handle %pP. > > This patch is based on work by William Roberts > > > Signed-off-by: Tobin C. Harding Signed-off-by: Greg Kroah-Hartman