Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp892010imm; Tue, 3 Jul 2018 01:40:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcAxn7AwTNP7DR2RqkSnBazKz8K0MAzskU3VuIFEU1aMo2hRELE3X9SwWd+nrrHUGL8vWju X-Received: by 2002:a17:902:1a9:: with SMTP id b38-v6mr17108453plb.89.1530607257909; Tue, 03 Jul 2018 01:40:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530607257; cv=none; d=google.com; s=arc-20160816; b=CCk+q5JVzHlZ6OFK+Xejnoe122hKHyMOrA8mgmU6J6ko7GZXnc0M3+8ByLDN4npfjg QMrN+08ZFSQtUIJbPSUM0gHTgmnaawrRsrFjYSvwrToCs6myVNHZA1hGdsGkvdLTcTsP F2lAvkTNX9+ZdRLrkA/72lneRO5pQL6fcutDyrCxqqSiqDeNaprWCAYuJAQnvYgrZew0 tjFAmJcNvN/Fyc5OkxlDCSzw06Hp819t0shBeO1KlUq+XCjI1edRbBg1tOfAOWD7I3Wv Gl4BTaJEUwP4hBTSx+FWOeI422GcxN1PPtbQRBMUYXue3VGEqZeghy6DiBPnsX7hb1PZ vz7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=L4FjDvGQgmLVJ5933cjQZXJkW7oGC7E8X7BDzb1+S44=; b=vl8FEPb1T4JBY4tKIr+fyvaaGxUSO/BjLskIsKUKOGbOc26LIKJLf6YsxoZe82aPC3 gfVpYYTkoXS1s9AA/USdGi5tdUG2zpGi5+1bXkr7OmoBUh1+6pfMB1wJ3zaAY1LRJf2m WRsyg4Z7yqOjCNNo1Q5xQG1Po5Sh8U8dyV5OFgFa4BuxJ4xqf3+O0KAvt9XOEc6++pAS SDg4KEf0OKP7Xgze3nYLQxIoJV5Gu3BYeu1tMy+ei2/SOrHBI4EiBsWgEuShMFJnq2fb MECfM0RKPDoTSrz/BHd0vq5IV1YcGsb21JqoRn7hEcFwqFOdYqMC0zMKQAbXajeV2FTW jstg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=C4Z2T+rI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15-v6si621822plq.455.2018.07.03.01.40.43; Tue, 03 Jul 2018 01:40:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=C4Z2T+rI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932624AbeGCIjA (ORCPT + 99 others); Tue, 3 Jul 2018 04:39:00 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:50656 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754218AbeGCIi5 (ORCPT ); Tue, 3 Jul 2018 04:38:57 -0400 Received: by mail-wm0-f67.google.com with SMTP id v25-v6so1383566wmc.0 for ; Tue, 03 Jul 2018 01:38:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=L4FjDvGQgmLVJ5933cjQZXJkW7oGC7E8X7BDzb1+S44=; b=C4Z2T+rIVNuGlgfIaT8li3IkGkAthlG9wyBPNXoUNnJGnF2wK9EV63oo69aHGXDxjH p0rRDNYDbhmHqlAvYD/wSTKkVdin0PpC/DzHmOs+YhBBocli1GftTjkyz/qq3jmRv2Td 8vr37XUNYaHYEqitldQaiVJAUIBVlUmAe8dQM1hxcqJC8p0qT/q5j/iTmtd99FELoyj6 kVuBzrxtjCM8wsSXpbgNe0Dmyitmvn5bkXuFZufuwV+Xcty3pk8nOKzCcjU4BA8Qb45K 7l66qZsCAHDHy4KAwJ2MUIU9n5esBAOQmonl2JErZiOHUfe4zugYgXRbtfK3LRNzLrbA IjKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=L4FjDvGQgmLVJ5933cjQZXJkW7oGC7E8X7BDzb1+S44=; b=WHsyl62PTyZEeQxO6OZstxZYWxPbAnHxkto+MYqrgV5Xylx3S56U7G+0PjtkVfWSjo ROzIjlBv9MmX4z6q+aa0sIV80yS7qiekrjr+fycsMQcapuCbSgigSEVzC96mrSUFvFsx LXDtax1bQIPrmQ+DdJB4NyeEr/TxjqN22q/jdIArWpy/zNWDYYsQmpbHjyKij+c9pLZ6 fovhYGxNS+g97dpkrDUJXIrHxtfpV3GRAp7qaZWCLFy89xCRg1SbzHJooJusX8A5s3B1 x229kPXpVH/keMYCVlDUJdnxY5FUf66ms7LsDzprga5Sl0lWEGCzLWUGuc0potEXpNYJ olBw== X-Gm-Message-State: APt69E0ub2eWWjzic+eIdpaxSOqp2Z+vzcoCeaXvwBJXUgNryS+jtMUM 0v09yPZDnm5lck8erZTFpcU= X-Received: by 2002:a1c:3b54:: with SMTP id i81-v6mr10559445wma.143.1530607136659; Tue, 03 Jul 2018 01:38:56 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id y189-v6sm1122101wmd.19.2018.07.03.01.38.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jul 2018 01:38:56 -0700 (PDT) Date: Tue, 3 Jul 2018 10:38:53 +0200 From: Ingo Molnar To: Ard Biesheuvel Cc: Thomas Gleixner , the arch/x86 maintainers , Ingo Molnar , Linux Kernel Mailing List , Arnd Bergmann , Kees Cook , Michael Ellerman , Thomas Garnier , "Serge E. Hallyn" , Bjorn Helgaas , Benjamin Herrenschmidt , Russell King , Paul Mackerras , Catalin Marinas , Petr Mladek , James Morris , Andrew Morton , Nicolas Pitre , Josh Poimboeuf , Steven Rostedt , Sergey Senozhatsky , Linus Torvalds , Jessica Yu , linux-arm-kernel , linuxppc-dev , Will Deacon Subject: Re: [PATCH v9 0/6] add support for relative references in special sections Message-ID: <20180703083853.GA5369@gmail.com> References: <20180626182802.19932-1-ard.biesheuvel@linaro.org> <20180627151510.GE30631@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Ard Biesheuvel wrote: > On 27 June 2018 at 17:15, Will Deacon wrote: > > Hi Ard, > > > > On Tue, Jun 26, 2018 at 08:27:55PM +0200, Ard Biesheuvel wrote: > >> This adds support for emitting special sections such as initcall arrays, > >> PCI fixups and tracepoints as relative references rather than absolute > >> references. This reduces the size by 50% on 64-bit architectures, but > >> more importantly, it removes the need for carrying relocation metadata > >> for these sections in relocatable kernels (e.g., for KASLR) that needs > >> to be fixed up at boot time. On arm64, this reduces the vmlinux footprint > >> of such a reference by 8x (8 byte absolute reference + 24 byte RELA entry > >> vs 4 byte relative reference) > >> > >> Patch #3 was sent out before as a single patch. This series supersedes > >> the previous submission. This version makes relative ksymtab entries > >> dependent on the new Kconfig symbol HAVE_ARCH_PREL32_RELOCATIONS rather > >> than trying to infer from kbuild test robot replies for which architectures > >> it should be blacklisted. > >> > >> Patch #1 introduces the new Kconfig symbol HAVE_ARCH_PREL32_RELOCATIONS, > >> and sets it for the main architectures that are expected to benefit the > >> most from this feature, i.e., 64-bit architectures or ones that use > >> runtime relocations. > >> > >> Patch #2 add support for #define'ing __DISABLE_EXPORTS to get rid of > >> ksymtab/kcrctab sections in decompressor and EFI stub objects when > >> rebuilding existing C files to run in a different context. > > > > I had a small question on patch 3, but it's really for my understanding. > > So, for patches 1-3: > > > > Reviewed-by: Will Deacon > > > > Thanks all. > > Thomas, Ingo, > > Except for the below tweak against patch #3 for powerpc, which may > apparently get confused by an input section called .discard without > any suffixes, this series is good to go, but requires your ack to > proceed, so I would like to ask you to share your comments and/or > objections. Also, any suggestions or recommendations regarding the > route these patches should take are highly appreciated. LGTM: Acked-by: Ingo Molnar Regarding route - I suspect -mm would be good, or any other tree that does a lot of cross-arch testing? Thanks, Ingo