From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756428AbaCNSeI (ORCPT ); Fri, 14 Mar 2014 14:34:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:9157 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756384AbaCNSeD (ORCPT ); Fri, 14 Mar 2014 14:34:03 -0400 Date: Fri, 14 Mar 2014 14:33:49 -0400 From: Dave Jones To: Kees Cook Cc: Linus Torvalds , Sasha Levin , Linux Kernel Mailing List Subject: Re: [RFC] improve_stack: make stack dump output useful again Message-ID: <20140314183349.GA3889@redhat.com> Mail-Followup-To: Dave Jones , Kees Cook , Linus Torvalds , Sasha Levin , Linux Kernel Mailing List References: <1393114777-21588-1-git-send-email-sasha.levin@oracle.com> <5321CBDA.1060705@oracle.com> <20140313231227.GA32178@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 14, 2014 at 11:31:11AM -0700, Kees Cook wrote: > On Thu, Mar 13, 2014 at 4:12 PM, Dave Jones wrote: > > On Thu, Mar 13, 2014 at 03:03:41PM -0700, Linus Torvalds wrote: > > > > > You need to look at the *symbol* number. In this output: > > > > > > [] do_one_initcall+0xc2/0x1e0 > > > > > > that "ffffffff810020c2" is crap, and is going away. The address that > > > is meaningful and valid is the "do_one_initcall+0xc2" part. > > > > > > *That* is the part you'd use to parse in user space. > > > > > > Try it today with the CONFIG_RANDOMIZE_BASE option to see. Using the > > > hex number doesn't *work*. > > > > That reminds me, perf top is still busted when this option is enabled. > > Hrm, works for me. I'm not very familiar with what to expect, but > comparing output between kaslr boot and nokaslr boot, it looks the > same to me. I don't get kernel symbols resolved at all when it's enabled Disabling the config option makes them come back again. I didn't try nokaslr. Dave