Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4638606img; Tue, 26 Mar 2019 13:31:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxhvtYvzr9BpsK0uI3BmNM4IqCykIsG2+QYMalfS/KpinNX2oJ4eyFh8wU6DcLYkqHZv9a6 X-Received: by 2002:a17:902:547:: with SMTP id 65mr33480632plf.242.1553632301338; Tue, 26 Mar 2019 13:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553632301; cv=none; d=google.com; s=arc-20160816; b=WYPfndnEN5gxK+1999zEqJFDiIjN7iCQpLBqOshoojflfoxdMrXdhUfBuDH5+BuMr7 lhaN8OR2DXFai9RjgW4ZgirsCZctppueCEbUOuo+8UFzIz1gy1I5YmCdNipg5U4fv5Em OzzPWT+e83Rwn054yLdBO5m3ci5M3Ux2jrRcVjYIf2S0iBKbp1Ufcw3DjrSgwwsrxXhA RS9Sc3EKJRX0lw1CTLIzvEiqn5VaE1aUdfRfCcx3uDT0kVEGV9jTcefykuZl6EPdQ6GJ 4l+/wTATEmZ7vxAEnsrMkJ29dHSDICiemFmATPpc8+3uYVETH1omX+3VF7qtgWaKUhes Y/yA== 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 :message-id:date:subject:cc:to:from; bh=i5/6d8DkJ+1CUc14Gu8uylUm6zElUHAUrY5oLnamC2g=; b=Po4CfcCmKulN9WYl9Wilwmh1ta4qvor/GjbirTQjU0Nxm6QJ8sIgLu8BICBIAcFDOX 26TcYzh5A2sQ2F8ZRZ51ayTCV8wCdyclvsqymLuZ3G+1HmipjtY56kIifNsVKBw6lwjE MI+tKnbEpmj2RcrlUWezr2JNExUpdSlapwilDBVruIx5MkOgPIeBnIphgwoy1QSbSmHJ G5au8D6dmVgdnT+CjiQdm+m4s+Lh+7LD5bVpxWYrc93w1mGQRM6jPdW2IXra8GRpJjXx 2NlYtNI2pIuUuCDRc2dirLndqljg1i2WyEe4rq0k/3+P4kxcq0AjjU26Z5uzrWGNbUgc CO+Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ct1si18197156plb.419.2019.03.26.13.31.25; Tue, 26 Mar 2019 13:31:41 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732697AbfCZUau (ORCPT + 99 others); Tue, 26 Mar 2019 16:30:50 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:35172 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731617AbfCZUat (ORCPT ); Tue, 26 Mar 2019 16:30:49 -0400 Received: by mail-wm1-f66.google.com with SMTP id y197so14420844wmd.0 for ; Tue, 26 Mar 2019 13:30:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=i5/6d8DkJ+1CUc14Gu8uylUm6zElUHAUrY5oLnamC2g=; b=IKJFtgpXts8vB4rQ3Qe6dcU3uR0zRqfsK2/33GYfrNDDwQKeLLdoOBHpRdkUWjH1jV I3N1WLhANio/phWshsbDxu+81zwC0r9t4o+hya92dtyzROJcM/6lGEC39UTpkS0hwZmE PjESgJ099qJaFX7RqWuU1NUOZV8oB/53fkxfqGafg3sztlJK+AC21QlvUuxYY63Qxsb8 D+ZgHWuBEPAXCn97h/Xa3XU84t1erqvarOoW+5bvd5yJvt70D3hjlMYAed5sGUaxprl0 naQmi904LbnkuplFwCVVdQ4+DeWqYQBsx25Zwn5u+hnKJyMcK4ji+hABmhym9HaLDmbb Blzg== X-Gm-Message-State: APjAAAXX2hVRmRmnLQtH74YdKV+PgGlEsRGpwDA5T0kGfY0DcB+Ah/ZM yd+yxcS9HQIwigLMLFyk8O8fwg== X-Received: by 2002:a1c:f61a:: with SMTP id w26mr17279326wmc.70.1553632247818; Tue, 26 Mar 2019 13:30:47 -0700 (PDT) Received: from raver.teknoraver.net (net-93-70-69-135.cust.vodafonedsl.it. [93.70.69.135]) by smtp.gmail.com with ESMTPSA id z11sm10573269wmf.12.2019.03.26.13.30.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Mar 2019 13:30:47 -0700 (PDT) From: Matteo Croce To: x86@kernel.org Cc: "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , LKML Subject: [PATCH v3] x86/realmode: don't leak kernel addresses Date: Tue, 26 Mar 2019 21:30:46 +0100 Message-Id: <20190326203046.20787-1-mcroce@redhat.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit ad67b74d2469d9b8 ("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. Fixes: ad67b74d2469d9b8 ("printk: hash addresses printed with %p") Signed-off-by: Matteo Croce --- 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.20.1