From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753551AbdKNHWH (ORCPT ); Tue, 14 Nov 2017 02:22:07 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:38686 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752644AbdKNHWB (ORCPT ); Tue, 14 Nov 2017 02:22:01 -0500 X-Google-Smtp-Source: AGs4zMZufJpgNWSrXkrKhDftnfgnzZ1FVj0M+BVmk6xL7D7EPFHYYgpslOzqpQ0pdbYt+PKdbBlJ3g== Date: Tue, 14 Nov 2017 08:21:57 +0100 From: Ingo Molnar To: Ricardo Neri Cc: Thomas Gleixner , "H. Peter Anvin" , Borislav Petkov , Andy Lutomirski , Tony Luck , Paolo Bonzini , "Ravi V. Shankar" , x86@kernel.org, ricardo.neri@intel.com, linux-kernel@vger.kernel.org Subject: Re: [RESEND PATCH v2 3/4] x86/umip: Identify the str and sldt instructions Message-ID: <20171114072157.f4knhqouiflj5drr@gmail.com> References: <1510640985-18412-1-git-send-email-ricardo.neri-calderon@linux.intel.com> <1510640985-18412-4-git-send-email-ricardo.neri-calderon@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1510640985-18412-4-git-send-email-ricardo.neri-calderon@linux.intel.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Ricardo Neri wrote: > The instructions STR and SLDT are not emulated in any case. Thus, it made > sense to not implement functionality to identify them. However, a > subsequent commit will introduce functionality to warn about the use of > all the instructions that UMIP protect, not only those that are emulated. > A first step for that is the ability to identify them. > > Plus, now that STR and SLDT are identified, we need to explicitly avoid > their emulation (i.e., not rely on unsuccessful identification). Group > togehter all the cases that we do not want to emulate: STR, SLDT and user > long mode processes. > > Cc: Andy Lutomirski > Cc: H. Peter Anvin > Cc: Borislav Petkov > Cc: Tony Luck > Cc: Paolo Bonzini > Cc: Ravi V. Shankar > Cc: x86@kernel.org > Signed-off-by: Ricardo Neri Sigh, the _title_ still refers to 'str'... I'll fix it up, no need to resend, but this lack of attention to details is seriously sad. Thanks, Ingo