From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E43EC83001 for ; Tue, 28 Apr 2020 15:11:37 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 369E4206D8 for ; Tue, 28 Apr 2020 15:11:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="dm6Jb+Il"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="jpiRez2W" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 369E4206D8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+HLjhWm/Bc62S9dXnQXgg7WYOCyn2IIVNPcujg0lx08=; b=dm6Jb+IlR7EYbl gl6CuAz1nzlu4c8GUusAwz+LsGgd8CnjY30FlvCEDuk/2RmzepuRYPXrvv5RWZ/NlV5Xtpx6OC0HV MRxjPqKe9y4Uulzjy5aRKWKlUcCIfWdqAmDIT6FcfD6dS/lO3/OpyEZBpXYqIjEraVu7bsEbNTLz1 DSDC4qYgKGJq5+MIBTEG46wi6yS3UAJXPeNr9lLA1GOUsWQEziz3G5IW0SkXK+gRHojjoRairUEru 865HBVw1jqXFGTFdYAyYaiKsWvbjZDdNum97zcfluAfwcvxKsltObYbarHiK3bWFk5GTP2KvUTeEM GqI9k6G6M0Ls8vrwzhSg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jTRtV-0003uV-Jh; Tue, 28 Apr 2020 15:11:33 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jTRtS-0003ty-8E for linux-arm-kernel@lists.infradead.org; Tue, 28 Apr 2020 15:11:31 +0000 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 95B6D205C9; Tue, 28 Apr 2020 15:11:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588086689; bh=aamxra8/L8gjllOiveVDPAUmrn8wwP+GQF0Iq8KS/QI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jpiRez2WIvdzuInq82Nf0S3PYv5YCwZqKrjdv4MQBiyq+3u9y8W2hoKAgxgVlFhJo AIk4vnsqN+dwq5AOhKZVvfs0Muvx8BvsscxPjCua0GhClnTEC2uAJc/BBnbKJIb7/L nv8pJ8p4peMND1YYHAKBL3M+9Mnl/X9mt028uGac= Date: Tue, 28 Apr 2020 16:11:25 +0100 From: Will Deacon To: Ard Biesheuvel Subject: Re: [PATCH v2 5/8] efi/libstub/arm64: align PE/COFF sections to segment alignment Message-ID: <20200428151123.GA12697@willie-the-truck> References: <20200413155521.24698-1-ardb@kernel.org> <20200413155521.24698-6-ardb@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200428_081130_310367_8C524C80 X-CRM114-Status: GOOD ( 20.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , linux-efi , Catalin Marinas , Arvind Sankar , Jonathan Cameron , Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Apr 22, 2020 at 11:39:39AM +0200, Ard Biesheuvel wrote: > On Mon, 13 Apr 2020 at 17:55, Ard Biesheuvel wrote: > > > > The arm64 kernel's segment alignment is fixed at 64 KB for any page > > size, and relocatable kernels are able to fix up any misalignment of > > the kernel image with respect to the 2 MB section alignment that is > > mandated by the arm64 boot protocol. > > > > Let's increase the PE/COFF section alignment to the same value, so that > > kernels loaded by the UEFI PE/COFF loader are guaranteed to end up at > > an address that doesn't require any reallocation to be done if the > > kernel is relocatable. > > > > Signed-off-by: Ard Biesheuvel > > --- > > arch/arm64/kernel/efi-header.S | 2 +- > > arch/arm64/kernel/vmlinux.lds.S | 3 ++- > > 2 files changed, 3 insertions(+), 2 deletions(-) > > > > Catalin, Will: any thoughts whether this should go via the arm64 tree > or the EFI tree? It is part of a change on the EFI side to stop > needlessly copying the kernel around before boot, but this particular > change could go through either tree, as it is not build time > dependency for the EFI changes, nor does it have a boot time impact > beyond making it more likely that the copy can be elided (but the code > still needs to deal with the possibility that it cannot be elided in > any case) I've queued this one in the arm64 tree for 5.8. Should appear on for-next/misc in the next day or so. Thanks, Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel