From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753515AbaEUWRy (ORCPT ); Wed, 21 May 2014 18:17:54 -0400 Received: from mail.skyhub.de ([78.46.96.112]:46641 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753407AbaEUWRx (ORCPT ); Wed, 21 May 2014 18:17:53 -0400 Date: Thu, 22 May 2014 00:17:28 +0200 From: Borislav Petkov To: Andy Lutomirski Cc: "Luck, Tony" , Jiri Kosina , Thomas Gleixner , Linus Torvalds , Steven Rostedt , Andi Kleen , "linux-kernel@vger.kernel.org" , "H. Peter Anvin" , Ingo Molnar Subject: Re: [RFC] x86_64: A real proposal for iret-less return to kernel Message-ID: <20140521221728.GM25130@pd.tnic> References: <20140521163315.GJ21205@pd.tnic> <20140521214845.GG25130@pd.tnic> <3908561D78D1C84285E8C5FCA982C28F328116D8@ORSMSX114.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 21, 2014 at 03:13:16PM -0700, Andy Lutomirski wrote: > Why is this necessary? > > If the MCE hit kernel code, then we're going to die anyway. If the > MCE hit user code, then we should be in a completely sensible context > and we can just send the signal. Are we guaranteed that the first thing the process will execute when scheduled back in are the signal handlers? And besides, maybe we don't even want to allow to do the switch_to() but kill it while it is sleeping. (I know, we're that nasty :-)) -- Regards/Gruss, Boris. Sent from a fat crate under my desk. Formatting is fine. --