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

2017-05-18 Thread Greg KH
On Tue, May 16, 2017 at 01:58:11PM +0200, Petr Mladek wrote: > On Fri 2017-05-05 21:06:56, Greg KH wrote: > > From: Dave Weinstein > > > > 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 G

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

2017-05-16 Thread Petr Mladek
On Fri 2017-05-05 21:06:56, Greg KH wrote: > From: Dave Weinstein > > 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. > > Th

[RFC 1/6] lib: vsprintf: additional kernel pointer filtering options

2017-05-05 Thread Greg KH
From: Dave Weinstein 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. This patch is based on work by William Roberts Cc: William Ro