Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934382AbeAKSLU (ORCPT + 1 other); Thu, 11 Jan 2018 13:11:20 -0500 Received: from mout.web.de ([212.227.15.4]:63915 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932215AbeAKSLS (ORCPT ); Thu, 11 Jan 2018 13:11:18 -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:11:03 +0100 Message-ID: <1574206.L1kTMSv4rA@markus> In-Reply-To: <20180111042551.ds6vjhnqbradc52a@treble> References: <1537667.mbZVOcHbLR@markus> <20180111041300.tr57lsn7c54ggx7c@treble> <20180111042551.ds6vjhnqbradc52a@treble> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:52HpjXAjsLydz1AL2G06bs8SCbxCBLr8h/RhQyLpNzbfvQqvleA l2LUPUlhDwKDUgNQf9WRFnvqcD6yck0bodyJAiPYixNv/A6tF5FmSeIcpoJiEzePxtD1c1n iUIADu7b0qGdGxMK5P5vIBLO7pCPWGyUtE+t9DAqoRskhNwIOCXW+bhitSFpDKD3kKF1uw3 wh2C3RVxu8RHCd4WHfVww== X-UI-Out-Filterresults: notjunk:1;V01:K0:DiTAFllKToA=:iIhlNwj4m72yRmXN522Ewm HyIqDEpGwB7Lfa9U8flqzfnH0Bx8+XCuvu8eKlGMOE4UMma7Ar7WGfauiDYK4IROULny7M5Wt /fTJjFFV+gYmzlou3BfLLQVToMDRsLo3mM9/l70F7EuOjCeS0ztjTu/Y1RSnjyzeZXdyRJ0TE EOZ6FkzH+iUSGbQQTMgzKT6xOTJgUIDjXQIbB1tcs6Rx4m6iXzXZXOSg0XTl+gGnBNZVvKCUB /3vQixELdpiGqdqg+3r38yay38g8lHR9Qdo3gQiPTukwIBrlxN3VNEd3l3N5EUt/RXtHnPH7T yoVuZYYJS+RgDoeTcirVvotZBXpisubo0IS/FXYNK3vz6QPW4usEwRK8eSl6PYYBZWxkZTpCN +z9zyt8C4jeRXrxJcNlxu2wZoVgeG1sb0i40BbjXcPtqrAE1D2kdEoQLfW881iTATotzAvHMe dab4eY7xnZXj/s4WPc3aFnk9L45b8qZ+t7k1QbC6l7hazDbChcw5R0pV+kU+aDAk5xeWeyShd J1WzI/zTGhIq0GBsnrVUC2UWIYqrYY8JtcBHjWBIYq2Jvchgeo9kZd0BJk788qP0d9Vf8YlyZ rGn2DjbcwmF/lu0qu+pBs3KiY0kcgAoRD1X5bxGH73gYF92T+roVa3B2o5jdpVcsUZoc/06Y0 GYAw0c41GeKAgKtomieYh1YuAX4NMYBd/fGtaP/Biiq4Rmegk5mxlAqtCWvzRzXd0RV2GDpBv YjXUeR8X4yF1AxePIPLYnbGs9/h2xvnu5m9sgX2zA0n8cTd8BA4xTECJ0TEObYQBuAj/K/A8U AivLVFiXk5UYQhU5zyvMNtNB/XctUJAwOdhfW47hCyCHivLSqA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 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? BR, Markus