From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753717AbbALVDm (ORCPT ); Mon, 12 Jan 2015 16:03:42 -0500 Received: from mail.skyhub.de ([78.46.96.112]:46889 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752263AbbALVDk (ORCPT ); Mon, 12 Jan 2015 16:03:40 -0500 Date: Mon, 12 Jan 2015 22:03:27 +0100 From: Borislav Petkov To: Andy Lutomirski Cc: "H. Peter Anvin" , Denys Vlasenko , "linux-kernel@vger.kernel.org" , Linus Torvalds , Oleg Nesterov , Frederic Weisbecker , X86 ML , Alexei Starovoitov , Will Drewry , Kees Cook Subject: Re: [PATCH] x86: introduce push/pop macros which generate CFI_REL_OFFSET and CFI_RESTORE Message-ID: <20150112210326.GC27374@pd.tnic> References: <1421017655-25561-1-git-send-email-dvlasenk@redhat.com> <20150112192314.GF3904@pd.tnic> <20150112193704.GG3904@pd.tnic> <20150112201145.GH3904@pd.tnic> <54B42CF2.2030104@zytor.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 Mon, Jan 12, 2015 at 12:26:38PM -0800, Andy Lutomirski wrote: > Is the usage you have in mind something like: > > pushq_cfi %r11 /* saves r11 */ > pushq_cfi $0 /* saves nothing */ > pushq_cfi %r11, savereg=rip /* saves rip */ > > I think I prefer the somewhat less magical: > > pushq_reg_cfi %r11 /* saves r11 */ > pushq_reg_cfi %r11, savereg=rip /* saves rip */ > pushq_nounwind_cfi $0 But that's two macro names and the above one is one single which does it all. And it's not like we're not looking at the definition of macros when staring at the code anyway... -- Regards/Gruss, Boris. Sent from a fat crate under my desk. Formatting is fine. --