Received: by 10.223.185.116 with SMTP id b49csp3482292wrg; Mon, 5 Mar 2018 23:05:57 -0800 (PST) X-Google-Smtp-Source: AG47ELu7l3BOYGFdzpZwxUZoxt2mtUOmzLyQDfZKodfq77ECWtsNgG4eoP4lBjNv4vL9q51jsMBa X-Received: by 10.98.202.138 with SMTP id y10mr17895681pfk.184.1520319957818; Mon, 05 Mar 2018 23:05:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520319957; cv=none; d=google.com; s=arc-20160816; b=iecq0w/Gu1J4+EiAP9Da8JSU040ofqchxeQZYz7KVlhYHcxOoRvEP+92bWXCmKSFX4 XxW/SghklqJMyaJ1ahuUlWauNaC1JEKrOSYsXLPqD0Ud4oiXBMhNau1K5JHYHfKnJzu8 swQDmZfsO9hAvYyvLwAiKAGfaSV8ey4dqnki40Xu6tdSD0ECrWJ1l6+hzrqLtYUONMvO 65PA5yKs3otj/LBwK0fqAhm3wQk9inBn3SxuyxSn41xogmFY7cbUg7iBG+H5DucZvQJE F0Qi9husfHKxETCg0/T4YmbQ0ynDfG6qGrlTPZj7xTXB5Y/3snKQjyvQUkTyciZnOH5x zd6w== 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:arc-authentication-results; bh=nh2CFa/dplVlNrvpsaJBS56wf0GM7Jwe6EzydpCW7LU=; b=u64TwdUyNgpPyjqqIOD2X9ofydJeydivjGPRIQ+9UOYoxQsRsknjOlMp7QLSqmJM/D rHYXD2IPPWZM5+3o+XVOxAGgiAillY85HZenFvRTeOfQQ2pJhsXsctf/B2A7j7UaOYO+ cZ37C5iJT56b6d6j6wtwryZaIHzQlrKrv4X8cI1HakvtQpOuUqCjmbHiZLYy09AGjedm WYOgzckGIxQA+XroIB6Ceqtap9D/iBf+hTvU9UMBuNlGkv6S4Vkct994bda+TmZc1RG0 gW0+7/TpEy0/gUV+7+spY0WcVcfmaRNv8P79JEgn8GKhcaPvXnrd3ZayozTYOHOdHwdU w6zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ZwXQpKus; 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 e1si9319772pgq.413.2018.03.05.23.05.41; Mon, 05 Mar 2018 23:05:57 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ZwXQpKus; 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 S1750922AbeCFHEp (ORCPT + 99 others); Tue, 6 Mar 2018 02:04:45 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:42553 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750792AbeCFHEn (ORCPT ); Tue, 6 Mar 2018 02:04:43 -0500 Received: by mail-wr0-f193.google.com with SMTP id k9so19735382wre.9 for ; Mon, 05 Mar 2018 23:04:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=nh2CFa/dplVlNrvpsaJBS56wf0GM7Jwe6EzydpCW7LU=; b=ZwXQpKusJr3IMyzHVCYzm8LoXSkk9a818O8nVhrb+piR1rRQ1A0fsdMZkzgMZawzPj /YkiACd+kfO1gQcefIpomYVsDWfyQHJYskqEWL0P2Mh0pSUGXUzI6U+NBfOuejZikSYJ TmFoC5swQ4s789O2SJ5smFkMXGGGT5SHYZBP/vlv0Drw4PIcOcwZg+zc91IOB9pg3wNN C83w0VoYbofYQPwM48TVj4umKKUUkLH7FWptSSTjb1wr+9gtUHBqMSn/GVekhqTVGtO2 Ux52Odzhh+aHAHoqywZGMey7Sp2Ri0e+G9pWEvzfByDW1ZI5UC1nBZmqij2u6lB/cM71 2uuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=nh2CFa/dplVlNrvpsaJBS56wf0GM7Jwe6EzydpCW7LU=; b=cwLjNzybTuNu6p67q5p2qI65tno2ALKm+qvRpcntq6m5vYC8UDjTPZPh9eo2fXGfMv FCLG7tPv5iGPveZJvJ3Lpf/wpCqKRn0HrFngm+zRQMJflMSF+oFVqLPJyYe/NYtwv7yy U0iRGMRaxFEGWY04ZEr4wKH1wSjhiXIvQ3knv6CH7PJdDCOahclUZxcbpBo7/TSwsYWq oRs8kzJqCs6icFMOmCLD2a3WJP78yBG4MB+JZFAv6h/xbU94Mpenh24XVrHHjaTpnLPz uYxW4rHE+xkDX9TlnJU9u1HDKfNswjGxnYok1IkU9Yo7KI2KJ7V+Bv/d1mJE6paQWEdQ Npqg== X-Gm-Message-State: APf1xPDx4Uxi3/HZQtcvHVlQUiOwOhWIaXYwbPp2lNb1usrbSTBQbnYx 8dHI8bMcetkQnBTb+m5DbIU= X-Received: by 10.223.139.88 with SMTP id v24mr13419661wra.44.1520319882586; Mon, 05 Mar 2018 23:04:42 -0800 (PST) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id p21sm7289666wmc.43.2018.03.05.23.04.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Mar 2018 23:04:40 -0800 (PST) Date: Tue, 6 Mar 2018 08:04:37 +0100 From: Ingo Molnar To: "H. Peter Anvin" Cc: Linus Torvalds , Joerg Roedel , Brian Gerst , Thomas Gleixner , the arch/x86 maintainers , Linux Kernel Mailing List , linux-mm , Andrew Lutomirski , Dave Hansen , Josh Poimboeuf , =?iso-8859-1?Q?J=FCrgen_Gro=DF?= , Peter Zijlstra , Borislav Petkov , Jiri Kosina , Boris Ostrovsky , David Laight , Denys Vlasenko , Eduardo Valentin , Greg Kroah-Hartman , Will Deacon , "Liguori, Anthony" , Daniel Gruss , Hugh Dickins , Kees Cook , Andrea Arcangeli , Waiman Long , Pavel Machek , Joerg Roedel Subject: Re: [PATCH 07/34] x86/entry/32: Restore segments before int registers Message-ID: <20180306070437.kf3fkevqj6cuxptz@gmail.com> References: <1520245563-8444-1-git-send-email-joro@8bytes.org> <1520245563-8444-8-git-send-email-joro@8bytes.org> <20180305131231.GR16484@8bytes.org> <20180305213550.GV16484@8bytes.org> <12c11262-5e0f-2987-0a74-3bde4b66c352@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <12c11262-5e0f-2987-0a74-3bde4b66c352@zytor.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * H. Peter Anvin wrote: > On NX-enabled hardware NX works with PDE, but the PDPDT in general doesn't > have permission bits (it's really more of a set of four CR3s than a page > table level.) The 4 PDPDT entries are also shadowed in the CPU and are only refreshed on CR3 loads, not spontaneously reloaded from memory during TLB walk like regular page table entries, right? This too strengthens the notion that the third page table level of PAE is more like a special in-memory CR3[4] array. Thanks, Ingo