Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2160900ybz; Thu, 23 Apr 2020 12:41:25 -0700 (PDT) X-Google-Smtp-Source: APiQypIBZj97grGkP/5KOT1s7HYBQSP9lQyPnkP0OpNTGSU30rQe8p64gJM4N3a1WLhw85aEHQlH X-Received: by 2002:a17:906:7c11:: with SMTP id t17mr4218662ejo.73.1587670885629; Thu, 23 Apr 2020 12:41:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587670885; cv=none; d=google.com; s=arc-20160816; b=hYLESB4hQ7yVkzcPfpjyxLiNhLiX81GNg6UXAN4r2+cAgvly7Uc+oeVu/DxZ2anoCd n+iPryON1IOUIuy7AQzoPUiY23JsZ2g3kNDsStIDhVAIMYsfLAdFoGhOcO/oLZSyz79s mSmr2y+nnKdXSn5t6tT7uvdpgfDNWR+pVqbQ7XhidYph9rrt28b2RHBz6Rtqf1ZltcO5 aVOdmFcOEcxRbSh44RHjUKpHLexOgkkDeofvUo0OTr3gNSswDzKCWXLdBt7LO506+rPB bSNR4SM8p2y2MQCtDiFejdSNNbhWN1eqNCIJ6H0fsGgDKYKDTmf9Cfac8ObZNOLnGcWD RgeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=B+wAZ+L0hlrTQ6+bTifPXFWaL5DgCyVYBW9QyGb8kMY=; b=ksUP3SQz96y9NJ75BIKlKfssyxSEHHcJwVVFAakw/xcMH+XmQ6WCjeSwt+k78SqbyQ QWKvbcks9nWHyPRniw9gJP2b6uJ4bnabaUvS0BTfkAJQq7kLZtOhhDO/pdAysTjN0WyT NYayKOgXTszgCDkSePlmzleH270z6aL5vHiCSaORXmj3I1YYox/23x/fc+bVV/iwd2JY pjqGOf4H8XEcc77SyB1ByJJmmOwiXHTo5uAaWx1r9M7TaB+gY7BinEgHaAAuduGFqC7Q ldFYeYSxoqDt/zOykP3fUdc09nsumziqmqKjRZJyJVpGOjm5lFJvWLbphjO87SiH5zQ4 lWhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=bR8hDR+m; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j19si350245eds.208.2020.04.23.12.41.02; Thu, 23 Apr 2020 12:41:25 -0700 (PDT) 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=@google.com header.s=20161025 header.b=bR8hDR+m; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730277AbgDWSrY (ORCPT + 99 others); Thu, 23 Apr 2020 14:47:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730178AbgDWSrX (ORCPT ); Thu, 23 Apr 2020 14:47:23 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65BD9C09B044 for ; Thu, 23 Apr 2020 11:47:23 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id z6so2696233plk.10 for ; Thu, 23 Apr 2020 11:47:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=B+wAZ+L0hlrTQ6+bTifPXFWaL5DgCyVYBW9QyGb8kMY=; b=bR8hDR+mzaoHgNGpJnRn8ZAiHrQhaMuIfSSzHSRsOLKXDNe6eSKFZKgF/RExSQxrcJ ef5vSFdlC/FV9+MMy8uFld+YVf1Sg6Q7ZSZLiyq9DHUtyPChN7BtLaIJC1CAmfygQ3vd j8ubSnVyDQO5RohKa1DORoZltv0uzh9zK6B8PKdYLOJu0QaDaR82zQ2DIjkybEaKESWA FSljcBim1JbTXgPXTH2wNuXj1R78lrDDRc11FiS4GNCLzuNny7yZAq3SXYUQSHVtJ1IO zzkDVGBb5PeNel3SfOVpCZ29nKGXlcA4CWgmwX9awHlJYgCDB6JtUrvoAVX44/b2uW8W QA6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=B+wAZ+L0hlrTQ6+bTifPXFWaL5DgCyVYBW9QyGb8kMY=; b=Px6j4JABp9BTiaxKYe5AitKPoOgdmQ8qOdYD5ucIik/ZqcdtPIMYdG09lmKAlKzFTg z8oJeTbzYJ3lVqHLUcylg0SHEVAsOuVYLsDkpgqPZ+kbzSEqprjAq+byHaOTAomvFYv9 4rufv82iy0jNt2GozjdlKsYSRs+fSsQsts+NsYVHa7QDrLi+wGVk0z00QoHg6Ivg9TS6 A4UX5Gdy1HhbTA40pQhGbMilqfCGDuvH/PhGj3O5KqhYj8G6UAK+0jinND/jnvWeK3fn jvFLL09r86FTL71VID1a2RDH0kh7OyEX2j54cojZrO4UZVOpeUpFYG4VfI8lgfP+baA0 pV0w== X-Gm-Message-State: AGi0PubX38uPAOwmyGZLj9OEUrtCLXVKLNWS7A+GLicwaaY0s34qTZN5 HjfLaIrdeFYX/comMRLlo/GKdQ== X-Received: by 2002:a17:90a:bf8c:: with SMTP id d12mr2153843pjs.11.1587667642270; Thu, 23 Apr 2020 11:47:22 -0700 (PDT) Received: from google.com ([2620:15c:201:2:ce90:ab18:83b0:619]) by smtp.gmail.com with ESMTPSA id g25sm3209697pfh.55.2020.04.23.11.47.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2020 11:47:21 -0700 (PDT) Date: Thu, 23 Apr 2020 11:47:16 -0700 From: Sami Tolvanen To: Steven Rostedt Cc: Matt Helsley , Greg Kroah-Hartman , Thomas Gleixner , "Naveen N. Rao" , Kees Cook , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] recordmcount: support >64k sections Message-ID: <20200423184716.GA257363@google.com> References: <20200422232417.72162-1-samitolvanen@google.com> <20200422200532.480face2@oasis.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200422200532.480face2@oasis.local.home> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 22, 2020 at 08:05:32PM -0400, Steven Rostedt wrote: > On Wed, 22 Apr 2020 16:24:17 -0700 > Sami Tolvanen wrote: > > > When compiling a kernel with Clang and LTO, we need to run > > recordmcount on vmlinux.o with a large number of sections, which > > currently fails as the program doesn't understand extended > > section indexes. This change adds support for processing binaries > > with >64k sections. > > Thanks! As you have also Cc'd Matt Helsley, perhaps you have noticed we > are trying to get this code merged with objtool. > > How would that affect this? Yes, I saw the patches. If you are copying over code, a similar fix might be needed, but otherwise I don't see any issues. I also sent a patch for objtool a couple of days ago to support >64k sections: https://lore.kernel.org/lkml/20200421220843.188260-2-samitolvanen@google.com/ Sami