Received: by 10.223.148.5 with SMTP id 5csp8005750wrq; Thu, 18 Jan 2018 12:22:02 -0800 (PST) X-Google-Smtp-Source: ACJfBotMOM8gWKeuddPysq2AOA5pXjvHlI36NqcyQ6n6VWmqId7AVxIQge1A9nQiqdt0C2AwxCJG X-Received: by 10.101.100.69 with SMTP id s5mr30993583pgv.88.1516306922609; Thu, 18 Jan 2018 12:22:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516306922; cv=none; d=google.com; s=arc-20160816; b=oWoa5KzUAmA0mEYT0sl49qiLlA6BJ62Za+42dDUiFI2Ix7WY6LT48zX1ABhaOUZylk 2n5pq60aGdxnnFDeCoZtL/XCt/AmP/TpIAkGeUYOQ6RaOsY47A3CvIeP3R2NieDnEOzO 0id/YhSkwEfvToBblNrsgHB/55B43qZING8ak/1clzxUYZ/TY2PdGSsIGcgIbWlryTTZ qeRzXo5iOSz4VvKl3qrjZeqg4LDQC1COTpjdCRIg2Pg5i70c8+Qss3r9k4aYSpjZ+PcL xR5Medgmg5AMUmg9do8vF+n54PWMr+qUOT+agJl+oQs9V7Fo5PETTHnZHlBwBjyCfxDB GlrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=4zFLVYMP0NLfft6hGyilxi+1UAqvdA5MWyViibQF86Y=; b=R+J21KghC9sOJ4GOP+TC9uYuEyRgsgof/iQE0h0ErG+ssNLf45n/XVpXv2AsVOoz1y K+h5xrUmkxQQN50VEn+w1WHbfPAstpM8J6tA4/9q/uzlI36HW9r/cH+okaZ05JD0h/hu JaWaUyIcTGYLAk7tdbo39fs4pPdg9LBkf1Xmh3oYne7hjAtbGMLIBPTeMLU+BV/S9QPU dMjI6MBkBeMDNU1/y+R0v9EYbvzQ3W1IRyRm0FB3v5USMYF092s5Isr1P2eRIy0pr9hC ONWfaekxLA/+vXkTtAhQK4eNfRNLpSPaqmayU5RwIrauoL349knidy/anD3bBWGmg3Zn WoCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=EJuFZyds; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y16-v6si164048pll.546.2018.01.18.12.21.41; Thu, 18 Jan 2018 12:22:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=EJuFZyds; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932742AbeARUVK (ORCPT + 99 others); Thu, 18 Jan 2018 15:21:10 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:49366 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752062AbeARUVJ (ORCPT ); Thu, 18 Jan 2018 15:21:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=4zFLVYMP0NLfft6hGyilxi+1UAqvdA5MWyViibQF86Y=; b=EJuFZydsuGI1XnWGQyvKYZO4JK7A4gsLtmwIBnbq/EOKZg0LnVxf4wdC0RsvXCsl36alh1ZzbHl6/TWm/ilVo6/guXnGsxPNl/j9Lrbk0cT5wMaPbk0T2paWZHVa+/K6PMG3/6uieOXZhe5SHuSCFH0bCEYqHa4DfpOpt4q11vo=; Received: from n2100.armlinux.org.uk ([2002:4e20:1eda:1:214:fdff:fe10:4f86]:59019) by pandora.armlinux.org.uk with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1ecGgC-00064N-TP; Thu, 18 Jan 2018 20:20:57 +0000 Received: from linux by n2100.armlinux.org.uk with local (Exim 4.76) (envelope-from ) id 1ecGg9-0003me-O3; Thu, 18 Jan 2018 20:20:53 +0000 Date: Thu, 18 Jan 2018 20:20:53 +0000 From: Russell King - ARM Linux To: Florian Fainelli Cc: Laura Abbott , Will Deacon , Mark Rutland , Catalin Marinas , Ard Biesheuvel , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Kees Cook Subject: Re: [PATCH] arm64: Stop printing the virtual memory layout Message-ID: <20180118202053.GR17719@n2100.armlinux.org.uk> References: <20171219192810.22537-1-labbott@redhat.com> <94d6b5c8-07c4-32b5-9746-646b0021d2e9@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <94d6b5c8-07c4-32b5-9746-646b0021d2e9@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 18, 2018 at 12:01:31PM -0800, Florian Fainelli wrote: > On 12/19/2017 11:28 AM, Laura Abbott wrote: > > Printing kernel addresses should be done in limited circumstances, mostly > > for debugging purposes. Printing out the virtual memory layout at every > > kernel bootup doesn't really fall into this category so delete the prints. > > There are other ways to get the same information. > > This really has some value when debugging systems, could we possibly > just hide that behind an appropriate configuration option instead of > completely removing this? I've already ended up having to revert the vsprintf() change nobbling %p for that very reason when debugging the BPF code. It's easier to do that while debugging than remember about the %px thing - and lets face it, probably less error prone if it leaks out. Otherwise we'll just end up with everyone spelling %p as %px in their debug statements... or using %lx and casting to unsigned long. So yes, I do think a Kconfig option (defaulting to obscuring kernel addresses of course) would have been very sensible for this. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up