Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp54922ybg; Mon, 8 Jun 2020 16:15:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy49BYvS4XnMAsbYHHI7oPE2Km3HI2p0jxyuKk/rNjJV9/BvANzvCk9J7wqVEOO8pz+Wej3 X-Received: by 2002:aa7:d041:: with SMTP id n1mr17014949edo.196.1591658153187; Mon, 08 Jun 2020 16:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591658153; cv=none; d=google.com; s=arc-20160816; b=KhJgKiN74zdZFA7J6Fi6IeHPyBcMYoIUFdtoeF5ddo8Pie7GxlJ7xKKnqDAm3EM2le 8+VsR90CmWUPUeWaZEdy0gN7oUEk97o0p1W5yAL2KsQyPsDqMWepEAAN6V6vBTpXNi8R sowOX77vKaI/w1UwOUvOUDGrRxsgTlxLx9XjZK2zkiNibJuj4b5MOlyt7an+l0Ix2Z2w tYABMGd96Y/kEMlp34DlXUgNnK9F4VslKXlQMd6faBq1uUw+qv9dbuhM6aNo5xX3pTK9 mi+84mhRpVo4qT/W9O5fHIrfTNMdjTNKBhzWLjfjScu923q5hWUEUFx71hL/qKOX5wvH 0eoA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Crp/zhDy6UcMsDy2c1niLjw4WA2kBWYVPK215AHVv88=; b=SDpWVNxL53D4HnwWOAzOcw9rdzglNk+bX5EZL5G2eglz1i3+u9jAU72hSiQKii5Cgd 4/syN/V5pP2YqRQIcX9rxA9Sm5BBkCj6LFP04HDz9LBzF4cwaOgdQNlqKbGFdus5XfEJ r+cQCkfsKI/ikGNt5up3PfwFAwTBrm8/SCiMKugsNkWwJ+vySAQ0LPi1zu0PTSijRwwd n8x+QGc1YbdrvLNaA9J1lsbDfNBkMlz8xYytzkR5TF+BVj19DS44EHKcBxI03Q1LpeqA Q938ttpGHtsVivAGUrKsLXH7ZncEOpMG7HpiLQji8Nr+sqCQeqUZdMOXd/wn8l01qeVA FEIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Q7DKUnHp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si9575285ejz.298.2020.06.08.16.15.30; Mon, 08 Jun 2020 16:15:53 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Q7DKUnHp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729259AbgFHXNL (ORCPT + 99 others); Mon, 8 Jun 2020 19:13:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:57782 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728825AbgFHXLH (ORCPT ); Mon, 8 Jun 2020 19:11:07 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4049220C56; Mon, 8 Jun 2020 23:11:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591657867; bh=2ZrENFyrpJ4qqx+rWjXIFHuZMijMO8WA+PdOMGj5aKA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q7DKUnHpjmnA+DSunCiRDD6HLCgMvtHEXsqBfpTFyC3a7m9m5O5pIu0S0eYeGSXy0 SD21f5cmsZy4mo8hi6yTHgq0eS8TlnQJEzcn4tOeQzXZD5gSlGgXNpRiu0674BHnFg 4l2/2UsoajNgqR31U0gXWzOtSImznt0y5Ps4XN/o= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Arvind Sankar , Borislav Petkov , Kees Cook , Dave Hansen , Sasha Levin Subject: [PATCH AUTOSEL 5.7 228/274] x86/mm: Stop printing BRK addresses Date: Mon, 8 Jun 2020 19:05:21 -0400 Message-Id: <20200608230607.3361041-228-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200608230607.3361041-1-sashal@kernel.org> References: <20200608230607.3361041-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arvind Sankar [ Upstream commit 67d631b7c05eff955ccff4139327f0f92a5117e5 ] 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 Signed-off-by: Sasha Levin --- 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 1bba16c5742b..a573a3e63f02 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++) { -- 2.25.1