From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751692AbdLBIvy (ORCPT ); Sat, 2 Dec 2017 03:51:54 -0500 Received: from mail-it0-f65.google.com ([209.85.214.65]:43535 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751586AbdLBIvx (ORCPT ); Sat, 2 Dec 2017 03:51:53 -0500 X-Google-Smtp-Source: AGs4zMa+6GdUADIdPkHa4eSoZ25PVjpmdV9qN0Ptkok7VLrOIqc60swQxUUN+patZ8rB1YWT/dzVtX3sa2wzPKhY95Y= MIME-Version: 1.0 In-Reply-To: References: <20171129045927.GA6217@eros> <20171129210848.GF6217@eros> <20171130163235.GA27849@kroah.com> <20171130171036.GB31817@kroah.com> <20171201094846.GE9353@kroah.com> <20171201153444.GA17867@kroah.com> From: Ard Biesheuvel Date: Sat, 2 Dec 2017 08:51:52 +0000 Message-ID: Subject: Re: [GIT PULL] hash addresses printed with %p To: Kees Cook Cc: Greg Kroah-Hartman , Linus Torvalds , "Tobin C. Harding" , Matt Fleming , LKML , "linux-efi@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1 December 2017 at 16:33, Kees Cook wrote: > On Fri, Dec 1, 2017 at 7:34 AM, Greg Kroah-Hartman > wrote: > >> And isn't there a specific %p modifier you should use for a kernel >> pointer. I've lost the thread here for what should, or should not, be >> done for kernel pointers these days based on the long email discussion. > > Current implementation to bypass the hashing is %px. (Though perhaps > all %px usage should include a comment with a justification?) > In this case, we're always dealing with u64 types regardless of the pointer size and physical address size. So I am leaning towards retaining the %llx, and only updating the sysfs node permissions.