From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752924AbdJMRyW (ORCPT ); Fri, 13 Oct 2017 13:54:22 -0400 Received: from mga06.intel.com ([134.134.136.31]:18178 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751835AbdJMRyU (ORCPT ); Fri, 13 Oct 2017 13:54:20 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,371,1503385200"; d="scan'208";a="322986777" From: "Roberts, William C" To: Linus Torvalds , "Tobin C. Harding" CC: "kernel-hardening@lists.openwall.com" , KVM list , Linux Kernel Mailing List , Kees Cook , Paolo Bonzini , Tycho Andersen , 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 Subject: RE: [PATCH 0/3] add %pX specifier Thread-Topic: [PATCH 0/3] add %pX specifier Thread-Index: AQHTQh0BI3d989ezIUmlqdzyPdRSwKLeLNiAgAPnMlA= Date: Fri, 13 Oct 2017 17:54:17 +0000 Message-ID: <476DC76E7D1DF2438D32BFADF679FC563F4AF591@ORSMSX115.amr.corp.intel.com> References: <1507676974-1298-1-git-send-email-me@tobin.cc> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.22.254.138] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id v9DHsQA3023273 > -----Original Message----- > From: linus971@gmail.com [mailto:linus971@gmail.com] On Behalf Of Linus > Torvalds > Sent: Tuesday, October 10, 2017 4:17 PM > To: Tobin C. Harding > Cc: kernel-hardening@lists.openwall.com; KVM list ; > Linux Kernel Mailing List ; 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 > Subject: Re: [PATCH 0/3] add %pX specifier > > On Tue, Oct 10, 2017 at 4:09 PM, Tobin C. Harding wrote: > > > > This patch is a softer version of Linus' suggestion because it does > > not change the behaviour of the %p specifier. I don't see the benefit > > in making such a breaking change without addressing the issue of %x (and I > don't the balls to right now). > > The thing is, this continues to have the exact same issue that %pK has > - because it is opt-in, effectively nobody will actually use it. > > That's why I would suggest that if we do this way, we really change %p and %pa > to use the hashed value, to convert *everybody*. And then people who have a > good reason to actually expose the pointer have to do the extra work and opt > out. Yes we cannot make this opt in or there is really no point in doing it. %pK and mistakes got us here to this point. I see there is multiple threads, this getting really fun to follow. > > Linus