From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756045AbaKRQNJ (ORCPT ); Tue, 18 Nov 2014 11:13:09 -0500 Received: from mail.skyhub.de ([78.46.96.112]:48804 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754920AbaKRQNH (ORCPT ); Tue, 18 Nov 2014 11:13:07 -0500 Date: Tue, 18 Nov 2014 17:12:59 +0100 From: Borislav Petkov To: Andy Lutomirski Cc: "Luck, Tony" , Andi Kleen , "linux-kernel@vger.kernel.org" , X86 ML , Peter Zijlstra , Oleg Nesterov Subject: Re: [RFC PATCH] x86, entry: Switch stacks on a paranoid entry from userspace Message-ID: <20141118161259.GC5238@pd.tnic> References: <20141112103011.GA16807@pd.tnic> <20141112162225.GF16807@pd.tnic> <20141113180436.GG14070@pd.tnic> <3908561D78D1C84285E8C5FCA982C28F3293BEAE@ORSMSX114.amr.corp.intel.com> <20141117185030.GA25157@pd.tnic> <20141117200354.GB25157@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 Mon, Nov 17, 2014 at 12:05:59PM -0800, Andy Lutomirski wrote: > https://git.kernel.org/cgit/linux/kernel/git/luto/linux.git/log/?h=x86/paranoid > > I'm not quite ready to send v3. I want to do two things first: > > 1. Consider disabling the stack switch for double_fault. Sounds conservatively nice :) > 2. Clean up the macros. I'll validate this by ensuring that the > generated code is identical to the current version. > > IOW, I don't expect the asm for machine_check to change. Right, so I don't see anything wrong with the patch but entry_64.S is nasty so don't take my word for it. I guess handlers should need to do "if (user_mode_vm(regs))" after your change now, in order to know what to do. I'll try to do some error injection here too, on my boxes to see how this behaves. Thanks. -- Regards/Gruss, Boris. Sent from a fat crate under my desk. Formatting is fine. --