Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2027459ybe; Thu, 12 Sep 2019 03:24:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYP3kqx2N60juNaRvYK3xcShnrWrUjdUGjIwSxtllrKIqs7iv4NEADxefjAO85/FNDKKUB X-Received: by 2002:a17:906:5c49:: with SMTP id c9mr34149212ejr.78.1568283870025; Thu, 12 Sep 2019 03:24:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568283870; cv=none; d=google.com; s=arc-20160816; b=neGsua1ARL/JN/9WJPRvsaB7msdAnRPM9GQd/r14i/1XPLZwnRAumC2XFMsxINxzWf UM3V5hJWF4/EaETRJaU7/cyaQF+I97kcg+9ULkzg10gBRG2+OSIESNFb7YYQwj1JKoBT 875dKezwScC82Ez2cmd/P1/mZoL82w0NGeKMeiBQctcEc1claimzGLjUAQviRuiuDwuM 6efUltUmWxrEXFF7e7+qFY/V914DvZIi5ZaBiR2GXTB6Sai348DDf1iAR9gttueBWddl PkNcEHAYh3T9E0OqhxkQEg7iNf/Mx1zaSqo0cz/GQWq+YCfSc61iIf7jK1agkTMzAOqm e8PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rCJRuZodeCpPu+MIWRS27Ed/gzyJWJ/AkAs4o6Nd360=; b=Bwk8djt4T7n0LUGBx455Efq0rc00on1V2/iepOSSe1u3Xi3wa67Zz67wCAydRuubMV MSX5zq/nRjVLrlFU54HD8Z8Wgq4XOYpUYnmIsDfhVpJpXsXpT5kf90UL2fw3eht5MsCi zHuJ5mP6/Qy8UQc+GpBM5Oj+1HqICKzqB3rCu0n3i/YodL8sRq6qjR2J6y0sNRlolkTF kbCSeWyY2eHGUbPAPNYFlJ3w7NlGFFYbh2ie3g6BFJ3hH3Ga4/oy66b1ZDqRKF0eCiJo HOUvnz/FMug76WaFr4/6mFH3hElV3yaJhG9uOhTLbwqYCI2mSsE+Qs3HtoE7J8nB0PSU ul8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=DZxZImvW; 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 r1si863489eju.185.2019.09.12.03.24.06; Thu, 12 Sep 2019 03:24:30 -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=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=DZxZImvW; 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 S1731291AbfILKTS (ORCPT + 99 others); Thu, 12 Sep 2019 06:19:18 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:43329 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730909AbfILKTS (ORCPT ); Thu, 12 Sep 2019 06:19:18 -0400 Received: by mail-ed1-f65.google.com with SMTP id c19so23399997edy.10 for ; Thu, 12 Sep 2019 03:19:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=rCJRuZodeCpPu+MIWRS27Ed/gzyJWJ/AkAs4o6Nd360=; b=DZxZImvWh3/RaN4AE3pN9IM+EaDq95bEB9WKbkEUjtsK68dv6CAittKvOAjmVXq1uS 0OZ3gtdUzDlb0Yr4tN+3XTchD0LNxJmcHw+aFBqDAl5XwtAybbIeSXgK8m78mU1PBxTw RQ1W9kHzXirW6bxcfLufD4asM8wXrxRbXacABxnXNZx2YRPCi1bzPC+/2YDgiCPB33Mj IZo2CGwdJ5+jAhn6EiNPcahRC07NDk9cZdKOt+rQ+p/x/flkFP3Udw6kaQzWShttlEDy 6na3vsWlZYukZ/+8JnNgpnI6xpUypqml0rexPDn4IuxD9l2mNZffU6ImTZw6LRIDHOBF 2+qQ== 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:user-agent; bh=rCJRuZodeCpPu+MIWRS27Ed/gzyJWJ/AkAs4o6Nd360=; b=L0uYRLxytt9+u9DHrxeLsMNNVXYiT0W5T/GQN76CFoauo3LvMit5SOTgjOam5kFe9E 6kZXSxadSlzxHKlglFkGoRSkNoH2KgayC5se6ut3aQ83w85UAlfLZYmaNO2vBdVowshZ 8uvH/y8MRfnG9aX7uppK+1rK0PS+xzHgkO78hULJTXb7fwK1Oh9n0QNcCIy8kBrUEpcC ZvsZlrd/8JnHRB///xONYcKIq4HmS9JnOhY0Mh30W+ujq/wKYyDBsarSgdV2SA6ms5IK SUSLyCWC9rxcaVbyh0ZhO1JFiE4yu0O3wWvd0Npk+Dto5aB3ERn3xEvH1KK2nKFiJ54U eF6g== X-Gm-Message-State: APjAAAWZrMD/zIpxdUQi+eKaJhv6hBkx+orBK7+26UCbsb1bJx7ViO7h w6zuN1RfyYmBLlisX7Y01aqwig== X-Received: by 2002:a17:906:434f:: with SMTP id z15mr9615390ejm.214.1568283556600; Thu, 12 Sep 2019 03:19:16 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id q33sm4710068eda.60.2019.09.12.03.19.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Sep 2019 03:19:15 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id 1BD73100B4A; Thu, 12 Sep 2019 13:19:17 +0300 (+03) Date: Thu, 12 Sep 2019 13:19:17 +0300 From: "Kirill A. Shutemov" To: Steve Wahl Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Juergen Gross , Brijesh Singh , Jordan Borgner , Feng Tang , linux-kernel@vger.kernel.org, Baoquan He , russ.anderson@hpe.com, dimitri.sivanich@hpe.com, mike.travis@hpe.com Subject: Re: [PATCH] x86/boot/64: Make level2_kernel_pgt pages invalid outside kernel area. Message-ID: <20190912101917.mbobjvkxhfttxddd@box> References: <20190906212950.GA7792@swahl-linux> <20190909081414.5e3q47fzzruesscx@box> <20190910142810.GA7834@swahl-linux> <20190911002856.mx44pmswcjfpfjsb@box.shutemov.name> <20190911200835.GD7834@swahl-linux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190911200835.GD7834@swahl-linux> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 11, 2019 at 03:08:35PM -0500, Steve Wahl wrote: > Thank you for your time looking into this with me! With all this explanation the original patch looks sane to me. But I would like to see more information from this thread in the commit message and some comments in the code on why it's crucial not to map more than needed. I think we also need to make it clear that this is workaround for a broken hardware: speculative execution must not trigger a halt. -- Kirill A. Shutemov