Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1432555pxb; Thu, 4 Feb 2021 12:51:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwo8JnbiXJH0Uw/bhDH8kyuA9o3uNJjb6NpXH/4Ov1PNRFwCDics5T/7qQY95xGHHcO2hqx X-Received: by 2002:a17:907:20c4:: with SMTP id qq4mr61474ejb.495.1612471901832; Thu, 04 Feb 2021 12:51:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612471901; cv=none; d=google.com; s=arc-20160816; b=oE00CEn6RaouWVNv6sSfl2II0R9rityQDkqrfYnfyCVJPJw8xsRXe5EZ0Md4HiPTUL BSDDbGUzM2KRgFckN5mIt6LXmGBr5KBtyG+shTps2kfih5JmwCJvANXyp+jjeN8kyAnb AtKQn2+LmLSlOl948Hi+JTmsTL+FhXRyVAxYyIxFTTHfvHCVQ20nXblZR8wz2stlW2ik VVnnQCFa/tOd8tfpql2gaIGA4ZvK9rOgg7PjvN2duOVipvguzmRFmlL/SQ4nWlPCPSDF nSvIPcFGNZVTWbxhCBTaQNYsC5L6pD2qiDuycaJ2SiaCSLvXbrlKlV5U43GGejjeOURd HeIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=5878t+w78/KK/f830lNLMAbr0qU9OyGmVIBrZ7Ppu00=; b=ANnzENC3KiYRaFhGpi2jOBuzVuo5Z65aeJUzE7HXLcnl/qB83ZvCQON/IUrv5f4IE7 hddC+yrcs57ti1BiJRdC4A8TuU1fOnfPkss3tHw+Sw0CHRMV5U97p3cf+MoL+VSCx5Hz 1SJ8T4QAKDlQ/v5Ojivlcibk/2BFJoMoerFZNRI7kLmdIuT9mwSPuwgTlmeriCL06Cre BAJ5fgJOTe27M/Q1rVHpm8cqlL3A2Be8u8NTgZRtUbU3MIZ6pDI3+NyBqSjzUHj5mN/v lN6fgxIhJHErplhkhV5YKZSf47eCGJbWS6Ie8gviukizEwvo2a9KcIfsUe8xX0WLHvtd onjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id he44si3493400ejc.386.2021.02.04.12.51.17; Thu, 04 Feb 2021 12:51:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229736AbhBDUte (ORCPT + 99 others); Thu, 4 Feb 2021 15:49:34 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:57822 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbhBDUtd (ORCPT ); Thu, 4 Feb 2021 15:49:33 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 782BA1C0B77; Thu, 4 Feb 2021 21:48:36 +0100 (CET) Date: Thu, 4 Feb 2021 21:48:35 +0100 From: Pavel Machek To: Timur Tabi Cc: Petr Mladek , Steven Rostedt , Sergey Senozhatsky , linux-kernel@vger.kernel.org, linux-mm@kvack.org, willy@infradead.org, akpm@linux-foundation.org, torvalds@linux-foundation.org, roman.fietze@magna.com, keescook@chromium.org, john.ogness@linutronix.de, akinobu.mita@gmail.com Subject: Re: [PATCH] lib/vsprintf: make-printk-non-secret printks all addresses as unhashed Message-ID: <20210204204835.GA7529@amd> References: <20210202201846.716915-1-timur@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1yeeQ81UyVL57Vl7" Content-Disposition: inline In-Reply-To: <20210202201846.716915-1-timur@kernel.org> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue 2021-02-02 14:18:46, Timur Tabi wrote: > If the make-printk-non-secret command-line parameter is set, then > printk("%p") will print addresses as unhashed. This is useful for > debugging purposes. >=20 > A large warning message is displayed if this option is enabled, > because unhashed addresses, while useful for debugging, exposes > kernel addresses which can be a security risk. Yes please. I needed to see pointers for debugging, and seeing hashed pointers is nasty. Having to patch C code to be able to develop... is bad. > + pr_warn("** Kernel memory addresses are exposed, which may **\n"); > + pr_warn("** compromise security on your system. **\n"); This is lies, right? And way too verbose. Pavel --=20 http://www.livejournal.com/~pavelmachek --1yeeQ81UyVL57Vl7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAmAcXaMACgkQMOfwapXb+vKvOQCeNeIzhzv70yiBaBw63hsqyL7n Bm0An3ALaR2Z9WS8hhX/DU42VPs9cxmx =lE4c -----END PGP SIGNATURE----- --1yeeQ81UyVL57Vl7--