Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753175AbbFLTY5 (ORCPT ); Fri, 12 Jun 2015 15:24:57 -0400 Received: from mail.skyhub.de ([78.46.96.112]:37838 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750861AbbFLTYw (ORCPT ); Fri, 12 Jun 2015 15:24:52 -0400 Date: Fri, 12 Jun 2015 21:24:41 +0200 From: Borislav Petkov To: Matt Fleming Cc: Josh Poimboeuf , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Michal Marek , Peter Zijlstra , Andy Lutomirski , Linus Torvalds , Andi Kleen , x86@kernel.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Matt Fleming , linux-efi@vger.kernel.org Subject: Re: [PATCH v5 06/10] x86/asm/efi: Fix asmvalidate warnings for efi_stub_64.S Message-ID: <20150612192441.GL9084@pd.tnic> References: <3e1d9ce523b3174a49b4317cd8b1b85dfd0c319a.1433937132.git.jpoimboe@redhat.com> <20150611131438.GB19243@codeblueprint.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20150611131438.GB19243@codeblueprint.co.uk> 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 Content-Length: 878 Lines: 25 On Thu, Jun 11, 2015 at 02:14:39PM +0100, Matt Fleming wrote: > Yeah, fair enough. Though it's worth noting that because we're calling > firmware functions, which use the Microsoft ABI, %rbp will be saved by > the callee function if used. Yeah, just looked at the spec. But you know how we don't trust specs. So we get additional paranoid security that callee won't futz with RBP because we save it before calling. But we pay the additional penalty in the CONFIG_FRAME_POINTER case. Oh what the hell, the 3 additional insns shouldn't be noticeable. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/