From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752487AbdEPOlJ (ORCPT ); Tue, 16 May 2017 10:41:09 -0400 Received: from mx2.suse.de ([195.135.220.15]:57365 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751035AbdEPOlH (ORCPT ); Tue, 16 May 2017 10:41:07 -0400 Date: Tue, 16 May 2017 16:41:04 +0200 From: Petr Mladek To: Greg KH 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: <20170516144104.GA8621@pathway.suse.cz> References: <20170506040641.GA32707@kroah.com> <20170506040747.GF32707@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170506040747.GF32707@kroah.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Best Regards, Petr