Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp893415yba; Thu, 18 Apr 2019 11:20:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+wcg1IANXpShak8PlTfRotuCzBRSQFj9YXFAGEVNVp1wX9tZ/lSlMxBPWPDVFu9v5c9aq X-Received: by 2002:a17:902:f094:: with SMTP id go20mr96605126plb.159.1555611600476; Thu, 18 Apr 2019 11:20:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555611600; cv=none; d=google.com; s=arc-20160816; b=eejQPD9kqEfe9PEESzh0jYBisRlARq1q0Kq4THI4eKNuCzBTB2MCiB0nEYrQiMDmAw KPW/8N3Ha2N4fKBTdHHRecqDPGsYUnp3zMKFH6eLYWANHBYfpnecg51x8jUAzxBZPwuI AI5xrHzqbKPbl3QIcAQ/jFb0tfEaIbX7+PvyZEcmZl1wA5P+4j2gmcMlogq8qZIrdS9p 29Ui/2qLc/ijyDwQFOMc0ORrkrn6HfpMkXgnckdb68WkyQPFSxGfMN7OpRI7GHy6alRj nnV5p+ULi88JB7OzvIsx0TR+QYlICgVMbgjMjsKzky0k10vCf803Yvteonn2VRlt5jW2 aHyQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1LC8w/1m+Gpt2Bed3ANpe32hfOfanedeC1lQDulUIR4=; b=HBuuTyChGMRQAhw/qs8NU3vzosp7ylroRvs9SyhHUP9k5uhcrTIgicoToH5SLxwrOi 5WRdPtLgv5nrKTMOUaHtv9WdCM40y8VWnjobtpW629kFBrCqfTTJ2Qjt8T0a1aAp2cb0 aSvb9JD9AJuube+KjbRNPT2h3qMQGLV+rJ0hWqENrVxU26OqqCPF+mwyOhbirfBK7JOp x2YuI0yI/jKdTrSaD8S2OTw/BcPnkmig8QRL15GzvqI9h9GIlLumhItlUCPR9GVagQwU q9U6sx2NlqatGDWRxb542EANGj7Ef77mp3y3+hI1cQdVb1mp5eBzI+n3KAijHka5xRcy JwKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JFLSOpcV; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t136si2473360pgc.538.2019.04.18.11.19.45; Thu, 18 Apr 2019 11:20:00 -0700 (PDT) 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=pass header.i=@kernel.org header.s=default header.b=JFLSOpcV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403977AbfDRSQy (ORCPT + 99 others); Thu, 18 Apr 2019 14:16:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:43790 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404244AbfDRSLd (ORCPT ); Thu, 18 Apr 2019 14:11:33 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 85BB420652; Thu, 18 Apr 2019 18:11:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555611093; bh=NQeab/xvkeUm+yVhaStHGrDCE7YbfOViHB4vZa3C8Vs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JFLSOpcV8JPGrTTwRlJ58LKtgR6HGRVyTP8FAwlZMFOnx3RbeOhpXjRklNm8eBglY mRL6I1+3JBKZjxMxrxOzWBPFPeSfiJpvMJrXyOZIh+rYZyIRT1rfbdqFGJJBIIbTBy S7pIXyUxIIEYsI+GQpneTQu+HhkyIr/sf+9JsMiQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matteo Croce , Borislav Petkov , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Sasha Levin Subject: [PATCH 5.0 29/93] x86/mm: Dont leak kernel addresses Date: Thu, 18 Apr 2019 19:57:07 +0200 Message-Id: <20190418160439.857522547@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190418160436.781762249@linuxfoundation.org> References: <20190418160436.781762249@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit a3151724437f54076cc10bc02b1c4f0003ae36cd ] Since commit: ad67b74d2469d9b8 ("printk: hash addresses printed with %p") at boot "____ptrval____" is printed instead of actual addresses: found SMP MP-table at [mem 0x000f5cc0-0x000f5ccf] mapped at [(____ptrval____)] Instead of changing the print to "%px", and leaking a kernel addresses, just remove the print completely, like in: 071929dbdd865f77 ("arm64: Stop printing the virtual memory layout"). Signed-off-by: Matteo Croce Cc: Borislav Petkov Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Signed-off-by: Ingo Molnar Signed-off-by: Sasha Levin --- arch/x86/kernel/mpparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c index 3482460d984d..1bfe5c6e6cfe 100644 --- a/arch/x86/kernel/mpparse.c +++ b/arch/x86/kernel/mpparse.c @@ -598,8 +598,8 @@ static int __init smp_scan_config(unsigned long base, unsigned long length) mpf_base = base; mpf_found = true; - pr_info("found SMP MP-table at [mem %#010lx-%#010lx] mapped at [%p]\n", - base, base + sizeof(*mpf) - 1, mpf); + pr_info("found SMP MP-table at [mem %#010lx-%#010lx]\n", + base, base + sizeof(*mpf) - 1); memblock_reserve(base, sizeof(*mpf)); if (mpf->physptr) -- 2.19.1