From patchwork Wed Nov 29 02:05:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobin Harding X-Patchwork-Id: 10081351 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 889C260311 for ; Wed, 29 Nov 2017 02:05:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7AFB22982B for ; Wed, 29 Nov 2017 02:05:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6FBA42982E; Wed, 29 Nov 2017 02:05:47 +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 AE21B2982B for ; Wed, 29 Nov 2017 02:05:46 +0000 (UTC) Received: (qmail 20357 invoked by uid 550); 29 Nov 2017 02:05:40 -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 20209 invoked from network); 29 Nov 2017 02:05:39 -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=u5K6VQX4FAofU0ULQ Uurm/JQ4WWzydm4EUEXJD9DlZ4=; b=dcqD8+kE13kvd7t9yY098CGukWofWJOIq UhLzBxnvGvrwonSmlgpuaRseH4UVOs5D7rdFONki0tiKktzEi9j0LYzsmOyjmjQF c/A8K1oLR1pmWkElVKmihcWpRncqlsZNySTbmvA2DFnQ8NHf1jzql1jY8Gh15Ixz KWvNzy8W/BFtifKWWRLtTQdVx89e1FTMky1zqH+edCpymjXZgD7rCVPCvH66gBH7 P3jvZyVkrI3EQPoH2ws8t98zbuvx1isJQmRWn2UBaWn50Ghty3rIShhF79IyqeGa 5zxaDtj2BvjBwDTlB5QroMh37u5fWSVebQ0HU/QILio1QA349dD9g== 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=u5K6VQX4FAofU0ULQUurm/JQ4WWzydm4EUEXJD9DlZ4=; b=m6xB/YEm 2EzaNIuZJkqVpOVn7vE0e3wBC2DEPdYoGB9XuES9B8EjtO/FD9k0JfrFK8PhxhJT DyMxxZGyOCAv5NVxSy4a+EQE3bclWGGzXsx6WqmhpREWzOkJZ18JW6jvKSB3KrCZ byBqdRuTrHaE6zNKFqGNB+LL/G5DoG5XN9TvcbRiCSBJ1tl0do0F8pYGyMPSA538 Rw81T+Vahu4tDufW00PJyZxzyOJy1MoY/a5eQ61cXxnQRGYiiII/4xwKVSjXjs6d AeSMVknN8TEf5FkofzoErzLee8xJSpMTv71whz6ibcwTuCICMHbBD4MSQUtCuEOf O5UdmSnC3j4u1A== X-ME-Sender: From: "Tobin C. Harding" To: kernel-hardening@lists.openwall.com Cc: "Tobin C. Harding" , Linus Torvalds , "Jason A. Donenfeld" , Theodore Ts'o , Kees Cook , Paolo Bonzini , Tycho Andersen , "Roberts, William C" , Tejun Heo , Jordan Glover , Greg KH , Petr Mladek , Joe Perches , Ian Campbell , Sergey Senozhatsky , Catalin Marinas , Will Deacon , Steven Rostedt , Chris Fries , Dave Weinstein , Daniel Micay , Djalal Harouni , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= , linux-kernel@vger.kernel.org, Network Development , David Miller , Stephen Rothwell , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Andrew Morton Date: Wed, 29 Nov 2017 13:05:01 +1100 Message-Id: <1511921105-3647-2-git-send-email-me@tobin.cc> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511921105-3647-1-git-send-email-me@tobin.cc> References: <1511921105-3647-1-git-send-email-me@tobin.cc> Subject: [kernel-hardening] [PATCH V11 1/5] docs: correct documentation for %pK X-Virus-Scanned: ClamAV using ClamSMTP Current documentation indicates that %pK prints a leading '0x'. This is not the case. Correct documentation for printk specifier %pK. Signed-off-by: Tobin C. Harding --- Documentation/printk-formats.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Documentation/printk-formats.txt b/Documentation/printk-formats.txt index 361789df51ec..71b62db7eca2 100644 --- a/Documentation/printk-formats.txt +++ b/Documentation/printk-formats.txt @@ -85,13 +85,12 @@ Examples:: printk("Faulted at %pS\n", (void *)regs->ip); printk(" %s%pB\n", (reliable ? "" : "? "), (void *)*stack); - Kernel Pointers =============== :: - %pK 0x01234567 or 0x0123456789abcdef + %pK 01234567 or 0123456789abcdef For printing kernel pointers which should be hidden from unprivileged users. The behaviour of ``%pK`` depends on the ``kptr_restrict sysctl`` - see