From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752487AbdLHUwn (ORCPT ); Fri, 8 Dec 2017 15:52:43 -0500 Received: from mga01.intel.com ([192.55.52.88]:35234 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750908AbdLHUwl (ORCPT ); Fri, 8 Dec 2017 15:52:41 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,378,1508828400"; d="scan'208";a="16687267" Subject: Re: [RFC PTI 1/3] x86/pti: Vastly simplify pgd synchronization To: Andy Lutomirski References: <66878233e09ff325b018e1bc5a521e9b20c58214.1512763129.git.luto@kernel.org> <155be67c-e0b8-2416-8631-91936284216a@intel.com> Cc: X86 ML , "linux-kernel@vger.kernel.org" , Borislav Petkov , Brian Gerst , David Laight , Kees Cook , Peter Zijlstra From: Dave Hansen Message-ID: <87386e3b-f5a5-2481-9611-ce993314347a@intel.com> Date: Fri, 8 Dec 2017 12:48:25 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/08/2017 12:49 PM, Andy Lutomirski wrote: >> if ((pgd.pgd & (_PAGE_USER|_PAGE_PRESENT)) && >> (__supported_pte_mask & _PAGE_NX)) > I assume you mean pgd.pgd & (_PAGE_USER|_PAGE_PRESENT) == > (_PAGE_USER|_PAGE_PRESENT)? Yeah.