Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp901767ybr; Sat, 23 May 2020 00:45:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNMvsFX64HIwSJw98IB6uOjFjGb88dtJWjZ12R/Wk0q0+jAsxflK3w3+n0qSXzHUi2PLRr X-Received: by 2002:a17:906:858b:: with SMTP id v11mr10798932ejx.348.1590219948654; Sat, 23 May 2020 00:45:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590219948; cv=none; d=google.com; s=arc-20160816; b=XjmULMVRRZR75e8KVvqY2sAqUc2QSVGPZKcs41k7shvfXV4CCP4GC7HubyV2PxO4Pn mPpPKx2twtVzRoKYjLqWsQ6maqIOAhBGcnbLcY8l4PXw682v9HoKHp7wZ5ODUNVx1Fo5 vMY/2+Abhwbypxz8zAuqEFxUHkmiLfEPKWrzXGXSmt1lANJ98n1twu9uXth+Kdo4cJnL mshU7mdIWntwKAQyUqiOpAMIBoeoDR4N4sEApmIC2X5sw9tmPquxlucaZ5t5PovpGnKp A8PcMrGkrrQy8LJ96kY5fQmoKjt5eJQeN6OqPhC5s/XWYYzvacm5wUVzGbVVKpayHmVg inEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=dOGPpBsTesJ8WHvH311NnxIXNmu2W42nanQWsoH1aMI=; b=SOQB1fxUeQXr1JGbvBbhjXAeTDJXXZGqCOSl/diz65TwTzMYVFx6LscxBFsQpwVPw5 oYqRV/Wxq49BTjIiz6CkVgh/zy+NcHvBx0COharaA9z2PC2HlOLrKTfZzOyHQZaUKfDb 3MynhEm5W7fiJOjGSTCfd8TSfOW3VTEnKKAk4G4Ifcghazft6kpLWznFE0uWKFN9ndl8 6zTjQsnox/clqJo2Id9kMNNp1nKnGxvvuKwkgC8g7ux2IKQJvM344ORoVnCjsYE1CE4p pxlT2gLxY7bGItQTMQMCLzGFwFr6ZqOQZS2WTp/9RgaddNyBbl2mPpxDZ2a4BBeAC1// GPqg== 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 u23si5761396edy.361.2020.05.23.00.45.23; Sat, 23 May 2020 00:45:48 -0700 (PDT) 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 S2387500AbgEWHlj (ORCPT + 99 others); Sat, 23 May 2020 03:41:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725535AbgEWHlj (ORCPT ); Sat, 23 May 2020 03:41:39 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 318D6C061A0E; Sat, 23 May 2020 00:41:39 -0700 (PDT) Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jcOmf-0000Nd-AK; Sat, 23 May 2020 09:41:29 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id BBCFB1C0082; Sat, 23 May 2020 09:41:28 +0200 (CEST) Date: Sat, 23 May 2020 07:41:28 -0000 From: "tip-bot2 for Arvind Sankar" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86/mm: Stop printing BRK addresses Cc: Arvind Sankar , Borislav Petkov , Kees Cook , Dave Hansen , x86 , LKML In-Reply-To: <20200229231120.1147527-1-nivedita@alum.mit.edu> References: <20200229231120.1147527-1-nivedita@alum.mit.edu> MIME-Version: 1.0 Message-ID: <159021968859.17951.9516200260774594729.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 67d631b7c05eff955ccff4139327f0f92a5117e5 Gitweb: https://git.kernel.org/tip/67d631b7c05eff955ccff4139327f0f92a5117e5 Author: Arvind Sankar AuthorDate: Sat, 29 Feb 2020 18:11:20 -05:00 Committer: Borislav Petkov CommitterDate: Sat, 23 May 2020 09:34:18 +02:00 x86/mm: Stop printing BRK addresses This currently leaks kernel physical addresses into userspace. Signed-off-by: Arvind Sankar Signed-off-by: Borislav Petkov Acked-by: Kees Cook Acked-by: Dave Hansen Link: https://lkml.kernel.org/r/20200229231120.1147527-1-nivedita@alum.mit.edu --- arch/x86/mm/init.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c index 1bba16c..a573a3e 100644 --- a/arch/x86/mm/init.c +++ b/arch/x86/mm/init.c @@ -121,8 +121,6 @@ __ref void *alloc_low_pages(unsigned int num) } else { pfn = pgt_buf_end; pgt_buf_end += num; - printk(KERN_DEBUG "BRK [%#010lx, %#010lx] PGTABLE\n", - pfn << PAGE_SHIFT, (pgt_buf_end << PAGE_SHIFT) - 1); } for (i = 0; i < num; i++) {