From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753539AbaEUV4N (ORCPT ); Wed, 21 May 2014 17:56:13 -0400 Received: from mail.skyhub.de ([78.46.96.112]:47327 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753417AbaEUV4L (ORCPT ); Wed, 21 May 2014 17:56:11 -0400 Date: Wed, 21 May 2014 23:55:47 +0200 From: Borislav Petkov To: Andy Lutomirski Cc: Jiri Kosina , Thomas Gleixner , Linus Torvalds , Steven Rostedt , Andi Kleen , "linux-kernel@vger.kernel.org" , "H. Peter Anvin" , Ingo Molnar , Tony Luck Subject: Re: [RFC] x86_64: A real proposal for iret-less return to kernel Message-ID: <20140521215547.GJ25130@pd.tnic> References: <1400639227.9759.21.camel@pippen.local.home> <20140521163315.GJ21205@pd.tnic> <20140521214845.GG25130@pd.tnic> 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 02:52:55PM -0700, Andy Lutomirski wrote: > Why is it a problem if user_mode_vm(regs)? Conversely, why is sending > a signal a remotely reasonable thing to do if !user_mode_vm(regs)? Let me quote Jiri: (1) task sends signal to itself (2) it acquires sighand->siglock so that it's able to queue the signal (3) MCE triggers (4) it tries to send a signal to the same task (5) it tries to acquire sighand->siglock and loops forever -- Regards/Gruss, Boris. Sent from a fat crate under my desk. Formatting is fine. --