From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754774AbbETQ7W (ORCPT ); Wed, 20 May 2015 12:59:22 -0400 Received: from mail-ie0-f169.google.com ([209.85.223.169]:32824 "EHLO mail-ie0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754445AbbETQ7T (ORCPT ); Wed, 20 May 2015 12:59:19 -0400 MIME-Version: 1.0 In-Reply-To: <20150520162537.GD16995@treble.redhat.com> References: <20150520103339.GA22205@gmail.com> <20150520141331.GA16995@treble.redhat.com> <20150520144810.GA10374@gmail.com> <20150520162537.GD16995@treble.redhat.com> Date: Wed, 20 May 2015 09:59:18 -0700 X-Google-Sender-Auth: _kic6Hfb2fuHeaMPGnZ1MrOY5Fc Message-ID: Subject: Re: [PATCH v4 0/3] Compile-time stack frame pointer validation From: Linus Torvalds To: Josh Poimboeuf Cc: Andy Lutomirski , Ingo Molnar , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Michal Marek , Peter Zijlstra , X86 ML , live-patching@vger.kernel.org, "linux-kernel@vger.kernel.org" , Andy Lutomirski , Denys Vlasenko , Brian Gerst , Peter Zijlstra , Borislav Petkov , Andrew Morton Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 20, 2015 at 9:25 AM, Josh Poimboeuf wrote: > On Wed, May 20, 2015 at 09:03:37AM -0700, Andy Lutomirski wrote: >> >> I've never quite understood what the '?' means. > > It basically means "here's a function address we found on the stack, > which may or may not have been called." It's needed because stack > walking isn't currently 100% reliable. It is often quite interesting and helpful, because it shows stale data on the stack, giving clues about what happened just before. Now, I'd like gcc to generally be better about not wasting so much stack frame, so in that sense I'd like to see fewer '?" entries just from a code quality standpoint, but when debugging those things, the downside of "noise" is often cancelled by the upside of "ahh, it happens after calling X". So the "perfect stack frames" is actually not as great a thing as some people want to make it seem. Linus