Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp741245ybr; Fri, 22 May 2020 18:55:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQ3OjFXXZJ0GhkVntesVeL4tqOZ7kt9RD7R4mn7ygxB2VCPWbyXkhHtlLFKmLXBs/WkE5A X-Received: by 2002:a17:906:57d6:: with SMTP id u22mr10559351ejr.49.1590198951354; Fri, 22 May 2020 18:55:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590198951; cv=none; d=google.com; s=arc-20160816; b=Hq0fTHbL0l4OQqjdNFl8reF92Xp09s5FG0+2XzFwPAmpWj0booE4KZ2IeqqRx3g0Mb 5iAXufRvWSASpRQdStISyZzpVjxPyntXCfOcBsL4LrzFJOhiDEsaMtiMsm53JsyPL9gu d6pC6swb3tpVS40ZA5k1N1/vsQN41Cb32a1DkXOdMcLNPQBuwBzB/tAOP83xrmVZQ7Rl 0vc5Dd99t5N6rZgIP8Yv/EICcVUgNv0hifofx2kEM6ANzfrcPJrCWd4hsVJS71UxVjrx qIj5YqhhfNiIIR5oYaHMG9LS7BxAJi6lZwAqFbw+sE8U7cH8E0zUQ2ItWIMAPTguWhwd gDBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=dl+KxsROb4cPj2iQZSsr1bvDaOCEwSXc+9sPYn2MtWc=; b=zRt3mNiEo0c3loMW2CcDYBmtxnvDcY8w92x+5OKy5BSlYXdpqT0MuaP1zqiTtNL/KN vbvKso8JPabnx91EQag8lwVw2+cA0xdAvIrmqa57FYTWpKeisLKJSKAI+1jMmTVPlCmC 1JdUZSvrLQ04aL6P8waT4wVg7RXYD8TR5kDhjn7QtEnpRNgxHw2mP3HepeBq3xpoGZ9U zrlzsdoL2c6wdi7aswFqDFwGR7Uf4n9m5vJ+003v+PunU+rO5272BYXi7VVbtoBdLTBH KTxa4k49+4L4XySjbwiRxv8xtURF9LQqMUXZzQ2UozDoniX8qkmyz8NZbrJSuMcQN4RS GeQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=EP3CkkiM; 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 gh17si5985222ejb.517.2020.05.22.18.55.28; Fri, 22 May 2020 18:55:51 -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=fail header.i=@gmail.com header.s=20161025 header.b=EP3CkkiM; 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 S2387628AbgEWBvi (ORCPT + 99 others); Fri, 22 May 2020 21:51:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387615AbgEWBvc (ORCPT ); Fri, 22 May 2020 21:51:32 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7118EC061A0E for ; Fri, 22 May 2020 18:51:32 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id c24so9866335qtw.7 for ; Fri, 22 May 2020 18:51:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=dl+KxsROb4cPj2iQZSsr1bvDaOCEwSXc+9sPYn2MtWc=; b=EP3CkkiMjXBNO33JU9tRJ5LOwWZYredBb+mvwPWhXXCKQAWAlsiQQsQRPkFQPC0nRx ZkbxSuoT6LV4EXeZ4pWL3Yhlfo8nx80UCABTT4KAbIxUlWTcaOC87qRpVUQnN1IlECSU /f+YDMuL2deibxh4BYYOUk4wDVykqh2S0uUepuWSGiRzpC4QkrCSzFjtTeDpiepWSJeA 69mziKBIWAi7G48ZvWI8Rlrg0FIyT63r8u1qZR+xIGts5r6/I3G/fPw2tZOQnL8WoJLm RhlPUh8PkYbfgy0f++xZ7SI/Er7oQu6UxF6+uaIp1H+2mLVxKbQZCpilU8MEltoMVjjs 8dlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=dl+KxsROb4cPj2iQZSsr1bvDaOCEwSXc+9sPYn2MtWc=; b=SpQygXVL6fZip4VBvUL04023Y8J8n++sR/zxktQHp2YHNGkCQCJSZRLt4kYW+ssyZI i+7e75a5aigU/ue0WGolu8+61fNm7JY/L44Z9id4R+1SihZrjSwfbQfpEc5p/h2Dj3Fi 7IvH+6iRqyc2ixt+zzvOUsLxfbYFAI1Gat/gvRzrALnFRNE2vsz/tLQoIridL7+hPl69 Z8UT1MxePR+o2Oeii1PryndG3BNF1EsTcr5fFkccP1yFX9CT5E3rSpLc/4g/ItS9G91x Ozx1ClOsQuvsgkH7R4MQ4eHZbp9Yr/G0kjOvpch31fIZOb3L48ybDayjSfHvxY083P5H cNAA== X-Gm-Message-State: AOAM533hK7hfOCATN276/7C3pJO68pZFxX63SCWVHVansrei4Fi37VJY IB1FAuOL42tPpy0773mEJAc= X-Received: by 2002:ac8:699a:: with SMTP id o26mr18085807qtq.92.1590198691654; Fri, 22 May 2020 18:51:31 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id o18sm9859239qtb.7.2020.05.22.18.51.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 May 2020 18:51:30 -0700 (PDT) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Fri, 22 May 2020 21:51:29 -0400 To: Arvind Sankar Cc: "Tobin C . Harding" , Tycho Andersen , kernel-hardening@lists.openwall.com, Kees Cook , Dave Hansen , Andy Lutomirski , Peter Zijlstra , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/mm/init: Stop printing pgt_buf addresses Message-ID: <20200523015129.GA717759@rani.riverdale.lan> References: <20200229231120.1147527-1-nivedita@alum.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200229231120.1147527-1-nivedita@alum.mit.edu> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 29, 2020 at 06:11:20PM -0500, Arvind Sankar wrote: > This currently leaks kernel physical addresses into userspace. > > Signed-off-by: Arvind Sankar > --- > 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 e7bb483557c9..dc4711f09cdc 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.24.1 > Ping. https://lore.kernel.org/lkml/20200229231120.1147527-1-nivedita@alum.mit.edu/