From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752431AbdLLUVK (ORCPT ); Tue, 12 Dec 2017 15:21:10 -0500 Received: from mga14.intel.com ([192.55.52.115]:8409 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752102AbdLLUVJ (ORCPT ); Tue, 12 Dec 2017 15:21:09 -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,395,1508828400"; d="scan'208";a="2279133" Subject: Re: [patch 13/16] x86/ldt: Introduce LDT write fault handler To: Thomas Gleixner , Linus Torvalds References: <20171212173221.496222173@linutronix.de> <20171212173334.345422294@linutronix.de> Cc: LKML , the arch/x86 maintainers , Andy Lutomirsky , Peter Zijlstra , Borislav Petkov , Greg KH , Kees Cook , Hugh Dickins , Brian Gerst , Josh Poimboeuf , Denys Vlasenko , Boris Ostrovsky , Juergen Gross , David Laight , Eduardo Valentin , "Liguori, Anthony" , Will Deacon , linux-mm From: Dave Hansen Message-ID: <212680b8-6f8d-f785-42fd-61846553570d@intel.com> Date: Tue, 12 Dec 2017 12:21:07 -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/12/2017 11:21 AM, Thomas Gleixner wrote: > The only critical interaction is the return to user path (user CS/SS) and > we made sure with the LAR touching that these are precached in the CPU > before we go into fragile exit code. How do we make sure that it _stays_ cached? Surely there is weird stuff like WBINVD or SMI's that can come at very inconvenient times and wipe it out of the cache.