From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965337AbdLRXuW (ORCPT ); Mon, 18 Dec 2017 18:50:22 -0500 Received: from merlin.infradead.org ([205.233.59.134]:45802 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934965AbdLRXuT (ORCPT ); Mon, 18 Dec 2017 18:50:19 -0500 Subject: Re: [PATCH v3 2/3] doc: update kpt_restrict documentation To: "Tobin C. Harding" , Jonathan Corbet Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Kees Cook , Alexander Popov , Joe Perches , kernel-hardening@lists.openwall.com References: <1513636145-30033-1-git-send-email-me@tobin.cc> <1513636145-30033-3-git-send-email-me@tobin.cc> From: Randy Dunlap Message-ID: <064efc24-fff2-0a3b-b7af-b64d53400fc0@infradead.org> Date: Mon, 18 Dec 2017 15:50:06 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <1513636145-30033-3-git-send-email-me@tobin.cc> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/18/2017 02:29 PM, Tobin C. Harding wrote: > Recently the behaviour of printk specifier %pK was changed. The > documentation does not currently mirror this. > > Update documentation for sysctl kpt_restrict. Fix subject and here ............ ^^^^^^^^^^^^. > > Signed-off-by: Tobin C. Harding > --- > Documentation/sysctl/kernel.txt | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/Documentation/sysctl/kernel.txt b/Documentation/sysctl/kernel.txt > index 63663039acb7..412314eebda6 100644 > --- a/Documentation/sysctl/kernel.txt > +++ b/Documentation/sysctl/kernel.txt > @@ -391,7 +391,8 @@ kptr_restrict: > This toggle indicates whether restrictions are placed on > exposing kernel addresses via /proc and other interfaces. > > -When kptr_restrict is set to (0), the default, there are no restrictions. > +When kptr_restrict is set to 0 (the default) the address is hashed before > +printing. (This is the equivalent to %p.) > > When kptr_restrict is set to (1), kernel pointers printed using the %pK > format specifier will be replaced with 0's unless the user has CAP_SYSLOG > -- ~Randy