Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752512AbdLLTF0 (ORCPT ); Tue, 12 Dec 2017 14:05:26 -0500 Received: from mail-it0-f51.google.com ([209.85.214.51]:37059 "EHLO mail-it0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751612AbdLLTFY (ORCPT ); Tue, 12 Dec 2017 14:05:24 -0500 X-Google-Smtp-Source: ACJfBouForIWnFdOtMtZtSF4BYXHNTnCPmorrKvOKnBNRHFV+z0b/TFWLroRGHqdxGYA62HgXKVvAKUARQKY4FXmqQY= MIME-Version: 1.0 In-Reply-To: <20171212173334.176469949@linutronix.de> References: <20171212173221.496222173@linutronix.de> <20171212173334.176469949@linutronix.de> From: Linus Torvalds Date: Tue, 12 Dec 2017 11:05:23 -0800 X-Google-Sender-Auth: TO8XEKVBL91x3oa1u9gIz_7p9X8 Message-ID: Subject: Re: [patch 11/16] x86/ldt: Force access bit for CS/SS To: Thomas Gleixner Cc: LKML , "the arch/x86 maintainers" , Andy Lutomirsky , Peter Zijlstra , Dave Hansen , 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 574 Lines: 15 On Tue, Dec 12, 2017 at 9:32 AM, Thomas Gleixner wrote: > > There is one exception; IRET will immediately load CS/SS and unrecoverably > #GP. To avoid this issue access the LDT descriptors used by CS/SS before > the IRET to userspace. Ok, so the other patch made me nervous, this just makes me go "Hell no!". This is exactly the kind of "now we get traps in random microcode places that have never been tested" kind of thing that I was talking about. Why is the iret exception unrecoverable anyway? Does anybody even know? Linus