From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756153AbdEROM0 (ORCPT ); Thu, 18 May 2017 10:12:26 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45754 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754754AbdEROMZ (ORCPT ); Thu, 18 May 2017 10:12:25 -0400 Date: Thu, 18 May 2017 16:12:15 +0200 From: Greg KH To: Petr Mladek Cc: kernel-hardening@lists.openwall.com, Sergey Senozhatsky , linux-kernel@vger.kernel.org, Catalin Marinas , Will Deacon , Steven Rostedt , William Roberts , Chris Fries , Dave Weinstein Subject: Re: [RFC 5/6] lib: vsprintf: Add "%paP", "%padP" options Message-ID: <20170518141215.GC23654@kroah.com> References: <20170506040641.GA32707@kroah.com> <20170506040747.GF32707@kroah.com> <20170516144104.GA8621@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170516144104.GA8621@pathway.suse.cz> User-Agent: Mutt/1.8.2 (2017-04-18) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 16, 2017 at 04:41:04PM +0200, Petr Mladek wrote: > On Fri 2017-05-05 21:07:47, Greg KH wrote: > > From: Chris Fries > > > > Add %paP and %padP for physical address that need to always be shown > > regardless of kptr restrictions. > > > > Cc: William Roberts > > Cc: Dave Weinstein > > Signed-off-by: Chris Fries > > Signed-off-by: Greg Kroah-Hartman > > --- > > 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. Ah, good point, will do! greg k-h From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 18 May 2017 16:12:15 +0200 From: Greg KH Message-ID: <20170518141215.GC23654@kroah.com> References: <20170506040641.GA32707@kroah.com> <20170506040747.GF32707@kroah.com> <20170516144104.GA8621@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170516144104.GA8621@pathway.suse.cz> Subject: [kernel-hardening] Re: [RFC 5/6] lib: vsprintf: Add "%paP", "%padP" options To: Petr Mladek Cc: kernel-hardening@lists.openwall.com, Sergey Senozhatsky , linux-kernel@vger.kernel.org, Catalin Marinas , Will Deacon , Steven Rostedt , William Roberts , Chris Fries , Dave Weinstein List-ID: On Tue, May 16, 2017 at 04:41:04PM +0200, Petr Mladek wrote: > On Fri 2017-05-05 21:07:47, Greg KH wrote: > > From: Chris Fries > > > > Add %paP and %padP for physical address that need to always be shown > > regardless of kptr restrictions. > > > > Cc: William Roberts > > Cc: Dave Weinstein > > Signed-off-by: Chris Fries > > Signed-off-by: Greg Kroah-Hartman > > --- > > 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. Ah, good point, will do! greg k-h