Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp77683ybh; Tue, 14 Jul 2020 18:28:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAgPS5lxdhs9D8Enhze0Jefu5j4H61p//QrPc5V2fcGiP1mc0sE//9Dy6SKnXAJ9+THBDo X-Received: by 2002:a50:8749:: with SMTP id 9mr7444963edv.80.1594776538848; Tue, 14 Jul 2020 18:28:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594776538; cv=none; d=google.com; s=arc-20160816; b=IBowZInaBryB+KnFtoKkNZwyi12CjjxOETAown+NROMASaq40HhsdSvEqUnNSa0Bfs fsAZqIKMM7oYBBfs+ci6l2V03nu+rAFHXWGPsvOZyq44R9G0f/4KoNGmMJo6XlUxlRTT S2ircGNR+P21O0P18Xg3tNoEcssuGssX4qqktxaiigrhM1WvFS7beRfuFHlsRt1SFxTj LEqohNIBArJ38JhyKyME0D0kgFsYre7xY2JO8kvvXhuejVcoo6ib7137bJn8CVzEmpWx nkF74DIfHxLpOqfhzxisGX+jwW9geQtc+dzfK3IrrlN1suYfUV9zq9yDTTsb4peBv9r/ Py9A== 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:from:date :dkim-signature; bh=disvEr8QTdkdT/FiP6nWZpfKiZAj+1GxhY8j6L4+VsQ=; b=DenOtMaoPMXGiOL8PXrDKgg8YXFO0c6IKJYzcCLNiEwBoR1zUZB1xzWLCglbZcbied 3o46hcFKbf8pGZGI2lMfDNek9rdIv5l+lV9w6Sp0UHPNhXYsypaVAIihKbO1lsWshGkN wp5NDZrllrNDbQFjhyiTZ4mbvKZlhkjOxDYs5XQJHzsmdyarrzV5ZIEHTgZMoMGZpmpj 1jx/9T7ycXkKaTJ4A/Gqx4F+KQlWwGORaMSP8FfCWsA2t6nc1lODvhPMAMKfI4wwy+9O nTCmg/UKJc/S0rGhYQ3HcJazaC0yI0aRPHjIgl8lycm1GzhBq30rk4oju7U4vsrVYnuu JaXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QlGUunqm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gh12si290825ejb.580.2020.07.14.18.28.35; Tue, 14 Jul 2020 18:28:58 -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=pass header.i=@chromium.org header.s=google header.b=QlGUunqm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728132AbgGOBYX (ORCPT + 99 others); Tue, 14 Jul 2020 21:24:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728117AbgGOBYW (ORCPT ); Tue, 14 Jul 2020 21:24:22 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59208C061794 for ; Tue, 14 Jul 2020 18:24:22 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id o13so887481pgf.0 for ; Tue, 14 Jul 2020 18:24:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=disvEr8QTdkdT/FiP6nWZpfKiZAj+1GxhY8j6L4+VsQ=; b=QlGUunqmMzd7BXyHpekbCEW2V6nSjcB7yoyoPGH4TzD3d5B8mTW/71ZE2cJL8mK51k 71ARRXSzT77AumtXxSrdaGYuwgbX2UQGZA8vfQJjrakWMO6AYGjVROqvp8NejS2m9Z2A 7IYT8IbO38FLfB1a/Y4tOBuCZnK/Z5sSj09mI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=disvEr8QTdkdT/FiP6nWZpfKiZAj+1GxhY8j6L4+VsQ=; b=JtImHTvl7kIAZrOXykqBn99Gjel4euszOdpGGWp/SCAoVFTLACwCK8pa1p5aKTwGmb eKZl+ES1K+BSTEkdGX9CZZZuUGQ1X+Uog2Iz8Sy9AFjeb92yqnxBxjmkKTod1HeB2Bxj rqXZptxPBbjcs25CwGOVBb1ctkqPeb0BSDUwq9OdOnVgE1TgXgQAXl9H5OSrFQQ/n3OK mGdbfZq/HsRer+3sQarSapDjgoZSE6BvhbE1wqKrRLNN2tpaaChJZrRxX/lyy98wOzSW kRva9cYgq0ksWNvJBdBPuVTLz8qhd/QHwpsTzH+a3N1gw8EWwBs6PGVNnKde4Es9qOBm Ikkw== X-Gm-Message-State: AOAM530P2l1vvuIdto5N7GNEbDZ6YK/yGDasdxiRs7o5+JUwrjgSHdfN AbEwL99rE5tQ3Y0/Cq9JHHwp7g== X-Received: by 2002:a05:6a00:15c8:: with SMTP id o8mr6820199pfu.286.1594776261955; Tue, 14 Jul 2020 18:24:21 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id y19sm335301pfc.135.2020.07.14.18.24.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2020 18:24:21 -0700 (PDT) Date: Tue, 14 Jul 2020 18:24:20 -0700 From: Kees Cook To: Joerg Roedel Cc: x86@kernel.org, Joerg Roedel , hpa@zytor.com, Andy Lutomirski , Dave Hansen , Peter Zijlstra , Jiri Slaby , Dan Williams , Tom Lendacky , Juergen Gross , David Rientjes , Cfir Cohen , Erdem Aktas , Masami Hiramatsu , Mike Stunes , Sean Christopherson , Martin Radev , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH v4 16/75] x86/boot/compressed/64: Don't pre-map memory in KASLR code Message-ID: <202007141824.6D5B3BE7@keescook> References: <20200714120917.11253-1-joro@8bytes.org> <20200714120917.11253-17-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200714120917.11253-17-joro@8bytes.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 14, 2020 at 02:08:18PM +0200, Joerg Roedel wrote: > From: Joerg Roedel > > With the page-fault handler in place the identity mapping can be built > on-demand. So remove the code which manually creates the mappings and > unexport/remove the functions used for it. > > Signed-off-by: Joerg Roedel Reviewed-by: Kees Cook -- Kees Cook