Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2837177yba; Mon, 22 Apr 2019 14:00:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRXBc8oyMGXrdvo/r/e8MYyQ8n1U5oJewb4kPTeMFpqSI0pNXApwT3KfHCGfJ+8HOol0o1 X-Received: by 2002:a17:902:bb0d:: with SMTP id l13mr22169886pls.141.1555966817656; Mon, 22 Apr 2019 14:00:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555966817; cv=none; d=google.com; s=arc-20160816; b=Mc9oKBmSg0X74dfR9hkkqe5q3tbuYQ1aaiNVK9SAaqra172lYv8gzUg3EDCV/wXZrd 82zkGPpd+nRzwP/tTJkt+aAvP/AskNYUdTOmmB+d1foh2NplEP1HoXZHFHeFFhbBL4yW 1yk24QkBzpF9esABkIuYUFd5yCueZL9SbgpkUAKqXDm9TUrmI7d123VwAKzsPaU5FyQ1 Da59Q3yEcsoGmllMohIlj2KngDAW54MQ7Oidsi5oXCuxMD93eiua6UOumEty727N79oD oxdEgKIWocznMMGYyDxywAGM8E17awsb0ZP+z5VJVJ4AKIQD3z/4bhOCqU21tfGUyOdZ rWBQ== 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=7R8/06BoO1er2RPhPvVv8pLFILnzfw73XlMguC8EgT4=; b=GUPzCCt+/d8ckHNhccwf+6SUNBHYehWgOA/M+NIDlU76IqHfcqdyZNcJLR74k9xuCS UseCJvxVwgT4umVc+SKdvpdZRdqlG1FErcfW+PYdaVDFZ0Wvh+KgO4OI1CaXSw7v367n ChjvzmMhxGZAx9s4X/iuDmeW49Fl57+nXsoe4XtJ9uLOcP5wr8L07AUVMNoXk0Fhw0b1 erp4Ya1tq/mL4fagb0Pa3ZCN6eVFcgjtAGYVw+wslzFFzdDRTjKR08/MBB1z9zmKMG4U FgNmOt7A8YQg+i/vGSffxFiVFNtPv2Twvu7ssN0HFq4LRAfYxrr6JjrLiSWuLuO8QKXr bqWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=avrPLyLm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g132si9666275pfc.260.2019.04.22.14.00.02; Mon, 22 Apr 2019 14:00:17 -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=avrPLyLm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728950AbfDVToV (ORCPT + 99 others); Mon, 22 Apr 2019 15:44:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:45262 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729414AbfDVToR (ORCPT ); Mon, 22 Apr 2019 15:44:17 -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 A2CC7204EC; Mon, 22 Apr 2019 19:44:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555962256; bh=Zl/SdUUDIJr4Qb4gdRngfELW4MGeRxPUNwgbO9pkDKE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=avrPLyLm1jFcpefbnxS5NxAu1W7FafFjPd23eEiNj/b6J6E554AfaRKl3FqdZ2Y38 DxxanD8Mhsyys/UW3LYadSmnsSV6wC03S7dqa9aOXQmmOvKxHAlMySWjW0sYB/AbMK bvfr5taHYlTZIMKuEIajLA1BCPO0cJ/fmTwPZV8E= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Matteo Croce , Borislav Petkov , "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , x86-ml , Sasha Levin Subject: [PATCH AUTOSEL 5.0 68/98] x86/realmode: Don't leak the trampoline kernel address Date: Mon, 22 Apr 2019 15:41:35 -0400 Message-Id: <20190422194205.10404-68-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190422194205.10404-1-sashal@kernel.org> References: <20190422194205.10404-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: Matteo Croce [ Upstream commit b929a500d68479163c48739d809cbf4c1335db6f ] Since commit ad67b74d2469 ("printk: hash addresses printed with %p") at boot "____ptrval____" is printed instead of the trampoline addresses: Base memory trampoline at [(____ptrval____)] 99000 size 24576 Remove the print as we don't want to leak kernel addresses and this statement is not needed anymore. Fixes: ad67b74d2469d9b8 ("printk: hash addresses printed with %p") Signed-off-by: Matteo Croce Signed-off-by: Borislav Petkov Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: Thomas Gleixner Cc: x86-ml Link: https://lkml.kernel.org/r/20190326203046.20787-1-mcroce@redhat.com Signed-off-by: Sasha Levin (Microsoft) --- arch/x86/realmode/init.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/realmode/init.c b/arch/x86/realmode/init.c index d10105825d57..47d097946872 100644 --- a/arch/x86/realmode/init.c +++ b/arch/x86/realmode/init.c @@ -20,8 +20,6 @@ void __init set_real_mode_mem(phys_addr_t mem, size_t size) void *base = __va(mem); real_mode_header = (struct real_mode_header *) base; - printk(KERN_DEBUG "Base memory trampoline at [%p] %llx size %zu\n", - base, (unsigned long long)mem, size); } void __init reserve_real_mode(void) -- 2.19.1