From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946342AbbEVVTJ (ORCPT ); Fri, 22 May 2015 17:19:09 -0400 Received: from cantor2.suse.de ([195.135.220.15]:59162 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1945991AbbEVVTA (ORCPT ); Fri, 22 May 2015 17:19:00 -0400 Date: Fri, 22 May 2015 23:18:57 +0200 (CEST) From: Jiri Kosina To: Josh Poimboeuf cc: Borislav Petkov , Ingo Molnar , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Michal Marek , Peter Zijlstra , x86@kernel.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Torvalds , Andy Lutomirski , Denys Vlasenko , Brian Gerst , Peter Zijlstra , Andrew Morton Subject: Re: [PATCH v4 0/3] Compile-time stack frame pointer validation In-Reply-To: <20150522143212.GB20555@treble.redhat.com> Message-ID: References: <20150520103339.GA22205@gmail.com> <20150520141331.GA16995@treble.redhat.com> <20150520144810.GA10374@gmail.com> <20150521205425.GA31662@treble.redhat.com> <20150521220158.GH3689@pd.tnic> <20150522143212.GB20555@treble.redhat.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 22 May 2015, Josh Poimboeuf wrote: > Hm, alternatives do complicate things a bit. It *is* a false positive, > but not necessarily because its part of an alternative instruction > block. > > The above code would be patched into memmove(), which is a leaf function > because it doesn't call any other functions. Leaf functions don't need > frame pointer logic, so we can ignore them. > > If instead the above code were patched into a non-leaf function, we'd > have to change it to restore the frame pointer before returning. Is this really only a problem of alternatives? How about dynamically-enabled tracepoints? -- Jiri Kosina SUSE Labs