From patchwork Tue Dec 19 21:17:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobin Harding X-Patchwork-Id: 10124413 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 E33D06019C for ; Tue, 19 Dec 2017 21:17:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D49A2294FB for ; Tue, 19 Dec 2017 21:17:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C801329570; Tue, 19 Dec 2017 21:17:59 +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 16FC1294FB for ; Tue, 19 Dec 2017 21:17:58 +0000 (UTC) Received: (qmail 32224 invoked by uid 550); 19 Dec 2017 21:17:47 -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 32110 invoked from network); 19 Dec 2017 21:17:47 -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=LkEoJc+C2tiKjbicL MNX+bT/lxrRVC2nfDFLUURC0eY=; b=cgkxfILTc4jZ7koGKMAPMsgS684Leb86g UehbLatLqYk4q8PY3bAVIXGSqCAm3DD6AW1QodesFNOHEqNSrMhdeQLGixYWdyLP ILoshZwIc/BnQY0vCGJyPXeM8bS9YgXXbGSadUZj9yaS2ozWuINu3jrZR4MuZjWJ yOziFPIyvPnWCxkNWjhk8CmDyLw1jN8szuBbuJhh2v34Tp7Q7DwQhlxeqiUGO+1U ubZutbb+P7gobnAiTaFZ+jHiLBxMj1sE623h19iqv9PgJt4qxq/UctGcyqsVb3R3 9QpVcwgGRbdhf6IFgaTZ3MbaM2Zcz8BL1liKdtcMufeKkO2Y17cdw== 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=LkEoJc+C2tiKjbicLMNX+bT/lxrRVC2nfDFLUURC0eY=; b=ci24UfyS sq+4Jr/6lCUr8CoyQ4redTtpY8L7Bn451LYmVs6H611RMF46IGuRRrPNSZOZWcaX 1LNnIdJ88l1F9RNDNLIH/u7Pqwl/peIL26K3y6PB+rKCkSala+U4tOc01b7RgTzq l6468L/beCGNSzBujPdqHinj6QkRtlw9oQhbh/tTH2CNCn57zqswJStP7AoMXt47 sLf2zGJMwv1chD39CuMPr5i8sdB+hpKZS7kFb8o0ZRcgLf8M4MC08Y3UhHPRC6us iEhhI1Yci/I1u7lW6+5P7qOzTCfonMSFKm5F/A8z+7PUIRYlRMQQ6kAhp+6RXoPZ lecz0CpjTY9mkw== 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: Wed, 20 Dec 2017 08:17:16 +1100 Message-Id: <1513718237-24140-3-git-send-email-me@tobin.cc> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513718237-24140-1-git-send-email-me@tobin.cc> References: <1513718237-24140-1-git-send-email-me@tobin.cc> Subject: [kernel-hardening] [PATCH v4 2/3] doc: update kptr_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 kptr_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