From patchwork Mon Dec 18 22:29:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobin Harding X-Patchwork-Id: 10121993 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2E451603FA for ; Mon, 18 Dec 2017 22:29:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FEC828757 for ; Mon, 18 Dec 2017 22:29:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1437628794; Mon, 18 Dec 2017 22:29:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.wl.linuxfoundation.org (Postfix) with SMTP id 4B98A28757 for ; Mon, 18 Dec 2017 22:29:50 +0000 (UTC) Received: (qmail 18012 invoked by uid 550); 18 Dec 2017 22:29:37 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Delivered-To: mailing list kernel-hardening@lists.openwall.com Received: (qmail 17846 invoked from network); 18 Dec 2017 22:29:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobin.cc; h=cc :date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=hvu5gAre578Wi1pI1 mxjI1PxhnIiulgbwM6DyvlPddY=; b=BQDFj+Y7g1k/vw3Xdu/8tLpQICbg9Teus iS2Xjytr++rfMDOMV+KNv9rmJpo1U1cGId92/skaEy9Pw7MiZNfSWI5eEsot1kAr jf+f7o+g8UjObsdKQyK7Kx/a/bsq+/hyjRMDMfLzSMXHhplRo4qxhaAFJUwofEQT 65J/ppkvWuR1oKLYLGXEgHapCwi2tiMWK4AmgtlZw3zxk62kwMbQBIEjKeKMgUln 3wBcsOvMOuaAtvAUpsI5vcwKSLhx8uSjOz9yee6ZANA89OhPL3Rfy7BhYZ9va3wZ GXMJB6IqMDDEHsUm4j09XmdqX1iYbEEcpCT3rDFuMOW+Jr0OJiHiw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=hvu5gAre578Wi1pI1mxjI1PxhnIiulgbwM6DyvlPddY=; b=FYKIOtvY RJal3W08TWbNH5ODxl3jxagUvGKyx+0YupKoUggUBBKCzL28kqOtlckZBRURAQZt D0z7gLKsGlx4EjUEIzvsBQPfa09r6DY5SlAvTvjZyji4ijsrnTzV8MEdXHIM/RYp c0YgMZA9aFQV9HNeQVPOtWGb74SmOfc2kaUa0RNrpd1czKszsEcLeY5Q/WdVIzJm gN0rWoqEww8rWzEM/GY4gygmM2eyytLzTwB8cbhwtQnnGC0JIclWX3+GlsRxUvJD x38DwH2uien5LwN6zxgMbHxMhE8d5Bexq8Gfg2rpAW1z/R94Q8zWbwjTyVLV0B0l RC7u4iq2wtv/Og== X-ME-Sender: From: "Tobin C. Harding" To: Jonathan Corbet Cc: "Tobin C. Harding" , Randy Dunlap , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Kees Cook , Alexander Popov , Joe Perches , kernel-hardening@lists.openwall.com Date: Tue, 19 Dec 2017 09:29:04 +1100 Message-Id: <1513636145-30033-3-git-send-email-me@tobin.cc> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513636145-30033-1-git-send-email-me@tobin.cc> References: <1513636145-30033-1-git-send-email-me@tobin.cc> Subject: [kernel-hardening] [PATCH v3 2/3] doc: update kpt_restrict documentation X-Virus-Scanned: ClamAV using ClamSMTP Recently the behaviour of printk specifier %pK was changed. The documentation does not currently mirror this. Update documentation for sysctl kpt_restrict. 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