Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3030964pxb; Fri, 12 Feb 2021 07:33:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwEWYVzntGULr60K4DbkhqOEfzlsYodhdIqdpvdasmC8yHEO5shM4QmIyLjZCqBOHqOE5// X-Received: by 2002:a17:906:6b02:: with SMTP id q2mr3648626ejr.122.1613144028323; Fri, 12 Feb 2021 07:33:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613144028; cv=none; d=google.com; s=arc-20160816; b=rLC2KF8rt7+QteUZDvM6vEN0ly5cNhq5a3r/OVG6tjIrX85etyRp5HmFtmvRQ7AFxw QSZ8yI+pVe37CBO+tJBmCtrFjqLAVxNiYwhjH9xNRUqgxbfBy7+A/kEMsjhB1oc61Ky4 hU09qQvibJTZ3NJaIaLvYhO22BH4BhRPCCGtyjHA4NklbhAeRywtkdj4/eh8UQ9BeKHB ZTtYKQFaULCP2o/wGa1GGVCtmrtt7DnGZXjMtBCbwUaTpfpoDfLNPLrU1LjIB4JJ19TL Y3Z49BXh1MKsuipLN68ZyEnCZD1eN4199yfIXszdVKOUJ1ZaEgykzOwEhvQPU5OkA0wU GWBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=M2pFbfvlU8dFIpevm2egwLHWLNMJMD4FRcpsQ5qPjnU=; b=Y30pzVQzCZ0SJTmhjNWkdxCww04ZT4Q/F8WuHyeHcpY8HYRfex5/hIzVmt/wmGE7be Utk7idZ/fmb8lP/Qo1KHqOeY9c8MxXhvdZw2tLwM9RA/711G7/9YkBNLW8O9aOgflFXH AC9fsMpKy+tmc2ZmjRsVfG7QdUMYcTDTzZWaXHrD7d99/Qi58SVebbeZHNalrImDr0cY 3hAeELMR+gDOoETv7r1szLFn0ljnhItI/RhUpJcgkfzwC84QXt+/A2L8FGXqJ7fj4vCI Xqy/SDvpUzRzUQpUqtDR7NbYRnHPKCqR0n7KD9FBF+2muD7E+46emZHaav7ljsaoKbaA 9Gkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bGyIaPrl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v17si6407608edr.19.2021.02.12.07.33.24; Fri, 12 Feb 2021 07:33:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bGyIaPrl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231618AbhBLPbh (ORCPT + 99 others); Fri, 12 Feb 2021 10:31:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:55516 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229917AbhBLPbd (ORCPT ); Fri, 12 Feb 2021 10:31:33 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2570A64E65; Fri, 12 Feb 2021 15:30:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613143852; bh=2GikqJ76Pgc7I30iCl8osvQH0Fze6qbpvM2PmeBOsWk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bGyIaPrlayhiG4sd7omkCau887oZhQK4o2OEsex4fQwRz626PQe2b/p9KTbYjxdgZ Hvq36OVPzq5ZykACksRWi7rVJWXGNcD6VTV4rzu9D8x/oqh0zm3fHcIqz6EYf6an62 VNaHGdywrpcPajZSvT6tGNp4IvcyEuYxggXNrldI= Date: Fri, 12 Feb 2021 16:30:49 +0100 From: Greg Kroah-Hartman To: Nick Desaulniers Cc: Xi Ruoyao , "# 3.4.x" , Arnd Bergmann , Josh Poimboeuf , "Peter Zijlstra (Intel)" , Miroslav Benes , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , LKML , linux-tip-commits@vger.kernel.org Subject: Re: [tip: objtool/urgent] objtool: Fix seg fault with Clang non-section symbols Message-ID: References: <160812658044.3364.4188208281079332844.tip-bot2@tip-bot2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 11, 2021 at 10:46:05AM -0800, Nick Desaulniers wrote: > On Thu, Feb 11, 2021 at 5:55 AM Greg Kroah-Hartman > wrote: > > > > On Thu, Feb 11, 2021 at 09:32:03PM +0800, Xi Ruoyao wrote: > > > Hi all, > > > > > > The latest GNU assembler (binutils-2.36.1) is removing unused section symbols > > > like Clang [1]. So linux-5.10.15 can't be built with binutils-2.36.1 now. It > > > has been reported as https://bugzilla.kernel.org/show_bug.cgi?id=211693. > > Xi, > Happy Lunar New Year to you, too, and thanks for the report. Did you > observe such segfaults for older branches of stable? > > > 2.36 of binutils fails to build the 4.4.y tree right now as well, but as > > objtool isn't there, I don't know what to do about it :( > > Greg, > There may be multiple issues in the latest binutils release for the > kernel; we should still avoid segfaults in host tools so I do > recommend considering this patch for inclusion at least into 5.10.y. > Arnd's report in https://github.com/ClangBuiltLinux/linux/issues/1207 > mentions this was found via randconfig testing, so likely some set of > configs is needed to reproduce reliably. > > Do you have more info about the failure you're observing? Trolling > lore, I only see: > https://lore.kernel.org/stable/YCLeJcQFsDIsrAEc@kroah.com/ > (Maybe it was reported on a different list; I only searched stable ML). I didn't report it anywhere. Here's the output of doing a 'make allmodconfig' on the latest 4.4.257 release failing with binutils 2.36 Cannot find symbol for section 8: .text.unlikely. kernel/kexec_file.o: failed make[1]: *** [scripts/Makefile.build:277: kernel/kexec_file.o] Error 1 make[1]: *** Deleting file 'kernel/kexec_file.o' make[1]: *** Waiting for unfinished jobs.... 4.9.257 works fine, probably because we are using objtool? Any ideas are appreciated. thanks, greg k-h