Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp751067ybf; Sat, 29 Feb 2020 15:12:44 -0800 (PST) X-Google-Smtp-Source: APXvYqwtQHockTATanRI3vfZ/np57uuMHGOxoaO4iYeHQ+kqvRoXdbZZn5m/edpR7TVtYbfHrmGS X-Received: by 2002:aca:5844:: with SMTP id m65mr7399536oib.136.1583017964851; Sat, 29 Feb 2020 15:12:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583017964; cv=none; d=google.com; s=arc-20160816; b=B27SGhRXoz4Szf8q1pVxzsafC+ZJ5AGMxGCEYJq6yzjodnUO14ANHcbokm1i28lQ9L ro1zR/OBsTrDVPEazC2BBgOKs5btJ9T2YdCXqfyLEZh+z39BHj7ni6A4MSACuRgwOcj3 ydZTOALREmsQWOCd2OKibEezvxr1lYqcimhOoljL7KtJqXZZh1jNU+f5as/+Nyb62UTv 6ep4DZwaX/uv5NLbbtte4ouF0ldEcV7TT82x5igILtRxwa9Krdg7K8s8yPXHajIIa4Dx G+d6s4x+5qgjlecUJVShx42Gr1oBeFjg45yqSG9HZkZKsNFrJJayMOv3fL9Zrc+Z5sKo +C1g== 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=T5ZPrIWUcFdZz+VY7vEnX2GwkgxMVshMmglqEI63Hd0=; b=teQuNRNCS5zGJ1z5fP2Nwb8tIGcMNuidzM6NlWtPtJ+fuyUkdC8kbwA+hKMk0Vwfvg 2KZvoLXSM8YrlVxzgCJPCtjqCLv/7kxt2lzFbIE0Uf3czl8N15Ma4a5wmyLUVN3oOdgC IInli3sP2F/WWFwmyRpenj3wqhrV4ffkl6AlkwtGtm/E41mK/UwBrkbF17no+tns1756 GQODi6OGAKhacdb9KkdfiktaB2vWqxR+3KG2ZrRrWs0ELE4z1Ol+MTwov8nC1SO+v/Rx wNqeXTM+5F7x3P3JERuZesZzi2zeZpRPfR47xDmO/u45wQXqRrcpBLb4gT/Vdbf57P/y TWZw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 9si4134461ois.90.2020.02.29.15.12.32; Sat, 29 Feb 2020 15:12:44 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727504AbgB2XLY (ORCPT + 99 others); Sat, 29 Feb 2020 18:11:24 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:39265 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726786AbgB2XLY (ORCPT ); Sat, 29 Feb 2020 18:11:24 -0500 Received: by mail-qk1-f194.google.com with SMTP id e16so6680077qkl.6 for ; Sat, 29 Feb 2020 15:11:21 -0800 (PST) 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=T5ZPrIWUcFdZz+VY7vEnX2GwkgxMVshMmglqEI63Hd0=; b=OfEhwIp2aEf74LXz0/vdWIhFbllJJsJX+MqH8i7jEkHx7XNH5G16bvty+PoCLOq2l/ nAla9HuLJbgYSupCz/O4nekjpJkITWzeOAeIe9pSUZBR6lRRF2iXSw5+RcxxkCTrSxqT o8AfjVTq9AoaPI1IJ5/0uGVj/cCGCZhATxCr3jSQ7SqPsffYiPziHCtEhD96d4gmh+Jl Qq29jArCX01E7wJJYE442Lz51z0yKe7ZjHjCjxpd8LrsMhFWvbsbsYxeVrneLV1Fey0M C4qg8B5Z2B8U2Mc3f5gOyj8oaF6ssFlMsfOinrLauUzY7aJcLNbb9MVy5P4c1fsqgnFE T0xg== X-Gm-Message-State: APjAAAUcJlgJPMlHTsZkBtjBTJgvlWWYm3Ya0Aou6ZIT9UOFX33CbDAT InUMdtcuBy8DppzmogEaQBY= X-Received: by 2002:a05:620a:146c:: with SMTP id j12mr10863660qkl.373.1583017881241; Sat, 29 Feb 2020 15:11:21 -0800 (PST) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id z6sm7588644qto.86.2020.02.29.15.11.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Feb 2020 15:11:20 -0800 (PST) From: Arvind Sankar To: "Tobin C . Harding" , Tycho Andersen Cc: kernel-hardening@lists.openwall.com, Kees Cook , Dave Hansen , Andy Lutomirski , Peter Zijlstra , x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] x86/mm/init: Stop printing pgt_buf addresses Date: Sat, 29 Feb 2020 18:11:20 -0500 Message-Id: <20200229231120.1147527-1-nivedita@alum.mit.edu> X-Mailer: git-send-email 2.24.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 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