Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3692635pxb; Sat, 13 Feb 2021 06:12:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmuYoCBUBasfA6N9fSlfxir1zgqvuOOEteTLs8du1PiTzv01GBQMlbPtXIQKpgxSo3Qe+E X-Received: by 2002:a17:906:4955:: with SMTP id f21mr7814805ejt.477.1613225570733; Sat, 13 Feb 2021 06:12:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613225570; cv=none; d=google.com; s=arc-20160816; b=dy+Nv38qabUGvVJOhJETkSzuhqtIxHFk3WZRlpQ+QkSRaKr7Rx/f/HxxCvVOOquPlE rQTj6mUlBNWPGgtk/rcujG9Et1V09lltFe0Vgb5p6gKERqSTrcvmJYYv3qWlLTL8RRq2 PJuLkxlroeCtY5sa/nDf+3o/7/VvLfimuW9RA+uhE/iUTH6FwsdHIYRFtEnzfM0eECqd wAbuB6o/FZOwIY90lmDCzDjQ1ufnREL9HEtqMWd8oxZoEfZerwLtdH733fRmrWnENoyt OWeOK6qCXz6kgWaY+Ilpses3xekvIhzJFd96mQy97A0pS3P5btvcuocNwAj7kdNxsh3/ ucBA== 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=rzzkbl4zRiQFPihHJGJBtxAxChx70X1UOt9aXpFuKHo=; b=QbVJhwFZ+DELS0mU0FcqE7tdxqrQkJMo10vApHv+2Uxj0YWtNI9EAaIxW95cUzgwj1 5YnERUSxlFuwihNZplKSE2zarALD3GcjZUDm0qnuYwDymISD46kMiMj/yD5fwTKDOxgS IoRVelCyMC0YWnduMm/TAL1wS0hKUj9Gu4SYvnyrySf3JZ49wLBw/2i/QXRJTNnz6KYD sIZbesG1+/bFd7WvtI2b85RY7/CB27oso/YVwPH44nt/Is6VLp1zoM2MMkHTz3pIjhvR qsyATNcAtASMvIvGpirlwfopkHBzZZzpW0uQOZLwlmMUGj9meO38EEPwO+cECCWJTAyb eVUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=f6LKUDOl; 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 w12si8680128eji.480.2021.02.13.06.12.27; Sat, 13 Feb 2021 06:12:50 -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=f6LKUDOl; 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 S229651AbhBMOJr (ORCPT + 99 others); Sat, 13 Feb 2021 09:09:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:42868 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229584AbhBMOJq (ORCPT ); Sat, 13 Feb 2021 09:09:46 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D315264DEB; Sat, 13 Feb 2021 14:09:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613225345; bh=pTRlgXkyhIUDcjvu3VK/6FMuyvV971qckI4/kaJRXvg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=f6LKUDOl0e+B22x558Jcdkhmwp7xy8eK5tJ+wGVckiBrI1+DSzXRFbH22Oy8rmglZ Kmqfygd8myp8NyLSIz0FSTsTi5zm5xUXj38DGahvvY13nCzgyEyaIGB8PltPvGNPzJ 7UE0nQTWVFEiaPuKLYwgiW14X8TQ5Z9r8CGaAPiA= Date: Sat, 13 Feb 2021 15:09:02 +0100 From: Greg Kroah-Hartman To: Steven Rostedt Cc: Josh Poimboeuf , Nick Desaulniers , Xi Ruoyao , "# 3.4.x" , Arnd Bergmann , "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> <20210212170750.y7xtitigfqzpchqd@treble> <20210212124547.1dcf067e@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210212124547.1dcf067e@gandalf.local.home> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 12, 2021 at 12:45:47PM -0500, Steven Rostedt wrote: > On Fri, 12 Feb 2021 11:07:50 -0600 > Josh Poimboeuf wrote: > > > > > Any ideas are appreciated. > > > > [ Adding Steve Rostedt ] > > > > This error message comes from recordmcount. It probably can't handle > > the missing STT_SECTION symbols which are getting stripped by the new > > binutils. (Objtool also had trouble with that.) > > > > No idea why you only see this on 4.4 though. > > > > Just taking a quick look, but would something like this work? > > I created this against v4.4.257. > > -- Steve > > diff --git a/scripts/recordmcount.h b/scripts/recordmcount.h > index 04151ede8043..698404f092d0 100644 > --- a/scripts/recordmcount.h > +++ b/scripts/recordmcount.h > @@ -437,6 +437,8 @@ static unsigned find_secsym_ndx(unsigned const txtndx, > if (w2(ehdr->e_machine) == EM_ARM > && ELF_ST_TYPE(symp->st_info) == STT_FUNC) > continue; > + if (ELF_ST_TYPE(symp->st_info) == STT_SECTION) > + continue; > > *recvalp = _w(symp->st_value); > return symp - sym0; > Thanks for the patch, but no, still fails with: 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'