Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965291AbeAKSwN (ORCPT + 1 other); Thu, 11 Jan 2018 13:52:13 -0500 Received: from mout.web.de ([212.227.17.12]:64905 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932703AbeAKSwM (ORCPT ); Thu, 11 Jan 2018 13:52:12 -0500 From: Markus To: Josh Poimboeuf Cc: Greg Kroah-Hartman , lkml , Ingo Molnar Subject: Re: objtool segfault with ORC unwinder enabled Date: Thu, 11 Jan 2018 19:52:00 +0100 Message-ID: <5972474.su1l06OAAG@markus> In-Reply-To: <20180111182057.psy4plwhfsetkuzc@treble> References: <1537667.mbZVOcHbLR@markus> <1574206.L1kTMSv4rA@markus> <20180111182057.psy4plwhfsetkuzc@treble> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:1FjvIoHXEMhamJSm9Mr/D95f1etxeQBDt25B9XIciHlx3Yi9SDJ fIAeq2zDTSXFE84pMRRvmOfppx5hEcqPuNUAAFq2yaCVwhQtOmQrk/lVKudKYv6udCHcky7 uQ2wpSDm0JXgpUSgW/srV/ghLvtftvLhnxIS8SDwlGataYPcoSA2z+SHr6iaE/vJIETWbGl cGuoBUVrWILN1mWe7EBPA== X-UI-Out-Filterresults: notjunk:1;V01:K0:xtKVfiNxm1U=:piOf+b3rwhzMPqA5fV7iiZ /7MCV+P0v15bzwjETS1AdO53qngoMtIV+EUqqysO1ZGqYK8nvUYTByo+ITBseNqQSDrm0r/ET R0+1OoLN7WqcIxap6U8uiAG7pbvybNgsbdSD+a+gXeqNIlYdILy8ssOoLQtGfj+4toSL7vGXm bzq7HUvDc3PMyri2d+Fxryq3QIQE4uCiP4j3m90c2ZUWN2lC20G/4HoX+9OVmoz+vn3sn2su5 CcBntveGiKPqLYtmgcLfF/+6E8kRQPn1OpdRMDLxA38haPCQqug7OWZWfRcrc/bokcDwQ+Aau fcyUbV6vjBGet0Br38K+3mJjjQZeBKpVrSlOV9bfzID6JNrSBqz8dxu+D/a60P2//K9/6XZdP Gxx/aAxgLJDEELNcVa6zrvHd6FuE5SHRjOCP6OFEJm/B+qbPcYStwL5iJrspbXWs1QZtlwETG g7ykEfEm1GLyK7fgWy6LOTVUEY7l/GIMPULGfqzSRZ+yoqdqhCejeZojGeexooZnfls1gfV0L KbBYvkvaswcfMXk94+yUTC8LUJBIx3YHEayGqeyN1EHWD1/MpCtXuzCnS3ABvAtj6DurMyCJa YX9/FuoHdlPfh3+ucsFSRDkFKmAzHKXg6FmdqETt6GV0QZxlvcrfAdCi6KSnZ/i4rWJp/S2+Q iQq6eDoKB8bbBhRfGgaZUdiUFOX2tTxM6eTADpuHlmAG2FSsCX32fFdWtpHVen3kLjRCh2bSX JkCvmkjXeu1VPbBjZmW+MGxmkNJ7px77FAmChyY5r9mNiGd+lfc5Grc6V0X1+5em3urWdnF2f Jeqx9cEkBxGlNy7W5tBk9W6oUNdOFzJ+3dm5SNlMcEu0dfqPSQ= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Thursday, 11 January 2018 19:20:57 CET Josh Poimboeuf wrote: > On Thu, Jan 11, 2018 at 07:11:03PM +0100, Markus wrote: > > On Thursday, 11 January 2018 05:25:51 CET Josh Poimboeuf wrote: > > > On Wed, Jan 10, 2018 at 10:13:00PM -0600, Josh Poimboeuf wrote: > > > > On Wed, Jan 10, 2018 at 06:14:56PM +0100, Markus wrote: > > > > > On Thursday, 4 January 2018 19:25:12 CET Markus wrote: > > > > > > On Thursday, 4 January 2018 18:32:03 CET Josh Poimboeuf wrote: > > > > > > > On Thu, Jan 04, 2018 at 05:56:30PM +0100, Markus wrote: > > > > > > > > On Thursday, 4 January 2018 16:46:13 CET Josh Poimboeuf wrote: > > > > > > > > > I don't see anything unusual there. Are there any Gentoo > > > > > > > > > patches > > > > > > > > > against either the kernel or GCC which would strip unused > > > > > > > > > symbols? > > > > > > > > > > > > > > > > The kernel is the vanilla kernel. (4.14.11 and also 4.15-rc6) > > > > > > > > Its not a gentoo specific gcc patch. (Then every gentoo user > > > > > > > > would > > > > > > > > be > > > > > > > > affected?) > > > > > > > > > > > > > > > > But I enabled ld.gold as default linker like 5 years ago. > > > > > > > > Never > > > > > > > > had a > > > > > > > > problem with this. > > > > > > > > > > > > > > > > Is ld.gold supposed to fail here? > > > > > > > > > > > > > > > > I switched back to ld.bfd and it seems to work. > > > > > > > > > > > > > > Ah, that explains it. With CONFIG_MODVERSIONS, the linker does > > > > > > > some > > > > > > > work after gcc, but before objtool. Can you try this patch? > > > > > > > (Note > > > > > > > this > > > > > > > isn't the final patch, as this breaks the CONFIG_MODVERSIONS=n > > > > > > > case.) > > > > > > > > > > Any more final patch I should test? > > > > > > > > Sorry, this fell off my radar. I'll try to get a final patch soon. > > > > (But feel free to keep bugging me if I don't!) > > > > > > Ok, this should be the final patch (no description yet though). Want to > > > test it? > > > > Tried to apply to 4.14.13 and 4.15-rc7. Neither applied cleanly. > > Manually editing just breaks the build with many "open: No such file or > > directory". > > > > Dont know what went wrong. Can you maybe append patch as file? > > Sure, patch is attached, based on 4.15-rc7. Applies cleanly to 4.15-rc7. But still: HOSTCC scripts/asn1_compiler HOSTCC scripts/extract-cert CC init/main.o open: No such file or directory make[1]: *** [scripts/Makefile.build:317: init/main.o] Error 1 make: *** [Makefile:1015: init] Error 2 Reverting that patch makes it build again. BR, Markus