Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752508AbeACON6 (ORCPT + 1 other); Wed, 3 Jan 2018 09:13:58 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:38924 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751185AbeACON5 (ORCPT ); Wed, 3 Jan 2018 09:13:57 -0500 Date: Wed, 3 Jan 2018 15:14:01 +0100 From: Greg Kroah-Hartman To: Markus Cc: lkml , Josh Poimboeuf , Ingo Molnar Subject: Re: objtool segfault with ORC unwinder enabled Message-ID: <20180103141401.GC12918@kroah.com> References: <1537667.mbZVOcHbLR@markus> <20180103111941.GB5412@kroah.com> <1954665.Z2ZbY5be2g@markus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1954665.Z2ZbY5be2g@markus> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Wed, Jan 03, 2018 at 01:22:07PM +0100, Markus wrote: > On Wed, Jan 03, 2018 at 12:19:41 CET Greg Kroah-Hartman wrote: > > On Wed, Jan 03, 2018 at 11:49:08AM +0100, Markus wrote: > > > Hello! > > > > > > ORC unwinder is enabled in stable for wider testing but still at least one > > > bug is open: > > > https://bugzilla.kernel.org/show_bug.cgi?id=197035 > > > > Random web links on mailing lists don't help much, please put the > > information here in the email. > > Its not a random web link. Its the official kernel.org bugtracker. But nobody > seems to be looking at it. Not all subsystems use bugzilla.kernel.org, sorry. Email is the preferred way for almost all subsystems. > > > objtool will segfault because a NULL pointer is dereferenced. > > > > And how are you reproducing this? > > Just building the kernel with ORC enabled. > (At least for me. Using framepointers compiles, enabling ORC again breaks it.) > gcc 6.4.0 (In bug report others were tested as well.) > elfutils 0.170 > What else may be interesting? Have you tried gcc 7? What distro is this? Hopefully not hardened Gentoo? :) > > > Is a NULL pointer sym valid? > > > If a NULL pointer is invalid, it has to be checked why it is sometimes > > > NULL. > > What .config is triggering this problem? > See attachment. > > > And does this show up on 4.14.11, and 4.15-rc6? > Both: yes. > > /tools/objtool/objtool orc generate --no-fp "arch/x86/kernel/irq.o" > > => segfault. Ugh, I can't duplicate here :( Josh, any ideas? greg k-h