From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754735AbeBWTbD (ORCPT ); Fri, 23 Feb 2018 14:31:03 -0500 Received: from mga07.intel.com ([134.134.136.100]:7544 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754631AbeBWTbA (ORCPT ); Fri, 23 Feb 2018 14:31:00 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,383,1515484800"; d="scan'208";a="177603051" Subject: Re: [RFC PATCH v3 6/8] x86/pti: don't mark the user PGD with _PAGE_NX. To: Konrad Rzeszutek Wilk , "Woodhouse, David" References: <1515612500-14505-1-git-send-email-w@1wt.eu> <1515612500-14505-7-git-send-email-w@1wt.eu> <1515616106.22302.237.camel@amazon.co.uk> <20180223175811.GO8252@char.us.oracle.com> Cc: Andy Lutomirski , Linus Torvalds , Willy Tarreau , Linux Kernel Mailing List , the arch/x86 maintainers , Borislav Petkov , Brian Gerst , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Josh Poimboeuf , "H. Peter Anvin" , Kees Cook From: Dave Hansen Message-ID: Date: Fri, 23 Feb 2018 11:30:58 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180223175811.GO8252@char.us.oracle.com> 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 02/23/2018 09:58 AM, Konrad Rzeszutek Wilk wrote: >> We also need to clear the RSB on vmexit, as documented. And if we >> really want 100% support for retpoline on SKL+ instead of saying "use >> IBRS if you're paranoid", then there are a few more cases where we need >> to stuff it to avoid underflow (which is the same operation, but Arjan >> insists we should differentiate the two, which is reasonable enough). > Are these cases documented somewhere along with what approaches are taken? Some of them are documented here: https://goo.gl/pXbvBE