Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1194651rwb; Fri, 23 Sep 2022 09:18:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Bc8XE/i6dDUNfuuJcq2VECr7+HV62iW3tv/n2IgfVPbZhK4lwvbEUJPVC+2WwhQCnaJMl X-Received: by 2002:a05:6402:14cb:b0:452:f1b4:7e52 with SMTP id f11-20020a05640214cb00b00452f1b47e52mr9033602edx.177.1663949881068; Fri, 23 Sep 2022 09:18:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663949881; cv=none; d=google.com; s=arc-20160816; b=TyfxqKJAPqyqb+jLvlbfouS4W2Duhw5Jub0mKZTi9/NacT4Q1HVTdl7SnWlGOnR5oo 2GNv0R/th5oCguepGFT9fo6us8sq0jdzjPQ7jvbVTkxQgcMNxVZOIsFkwhvjWPgDj1d0 ECHbrGKljvfgxYny38ukcwJp1mpxBUdM+JMiTmgouuZ24zd1iKKuOtMekMWxmaObL2ZD 3MyX/n1W4YRF1zZ4JlWjLyBLwVvFDRY7SL9Ns3bDxTkuqa0l9SbG44l73QHAh1w0ZaAi 1UVy5sb5UD0DZdNOvE0xdakca9bXjv52dTl6XsCoqPst/MchCHI+kHGX6VDJFBB786l3 Sj0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QZTjStVurFcus3n6JI3r1D9PugaiUIrDY0mMfZ+J0Ug=; b=GDVrHvs9W0A2VBxynhMiHfi+MMOxyyhVQojisjrwcynd+pLCXD/rD+DrTShs9Y4KKw 6lDIkwOnnYLT7ff7MDaYt4Qek9fjQWrg3gtsH4tGj9L2+cxXqyIwrB5iVMxyHloXRx7I 6+XVMJaX78YI9Vju4rA8IlNn/J8MlpJ+Wwdjt68IB8JdY/WBuILcCv3xY7FDToNCyrmT aaOehVSg2aHdySUrOmGOQM6/2/dvcZ1pBj9sSXxirckUxtLUX7mXXn5QOHx6w/5/aphI 6vMb0lN2nz1b3RCx39VuGJHA3dwAV6WjbI8mCTU5G5U7JVhfkCZVC0O+pGDaK6EHf9Qp +XyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="qEJ4e/7C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e13-20020a170906374d00b0072ef52514f6si6842393ejc.629.2022.09.23.09.17.34; Fri, 23 Sep 2022 09:18:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="qEJ4e/7C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231883AbiIWPmT (ORCPT + 99 others); Fri, 23 Sep 2022 11:42:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232720AbiIWPl5 (ORCPT ); Fri, 23 Sep 2022 11:41:57 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F91DA1D6B for ; Fri, 23 Sep 2022 08:40:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 2ECC5CE254E for ; Fri, 23 Sep 2022 15:40:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F1A4C433C1; Fri, 23 Sep 2022 15:40:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663947654; bh=lz9FzHDmqblD1vhPyq+3CHEsnz/cWF+Zbtsjkwh9xDI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qEJ4e/7C/VuyU5AVMmslLGzGaJlBnDEw8jdVKSE6ltqQUYbAO/A8npWBRCQLQgpqK vo4pGzgm1Q0pY8AZ/auzyFQ5YtZYtIz8q44C53/AgtK/4wR6YH51SGNg5u5IReJ+wp AEqr+Cy1ht4rjcHbqatd5FBdzyy3Y1Vvud0kTaVAN56j/djpdF8/U9myb5OtWlV++N nCNXdZsTjZPk4+S6zwaN6sYebfzPehw0AQBzPFI7xGsL91V9zCnb1BYEzIHzfJgcBw FL6IwAWvREL+Ae0rijEZsIRok8/4MOa/SpCTL3aZiJ0FXrlPgc4eBDsnKDk+poQtbL meVvdu2Vb+Agw== From: Will Deacon To: linux-kernel@vger.kernel.org, Will Deacon Cc: catalin.marinas@arm.com, kernel-team@android.com, Mark Rutland , Nathan Chancellor , Kees Cook , "Mohan Rao .vanimina" , Sami Tolvanen , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] vmlinux.lds.h: CFI: Reduce alignment of jump-table to function alignment Date: Fri, 23 Sep 2022 16:40:48 +0100 Message-Id: <166393672765.2853144.1045935840794664678.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220922215715.13345-1-will@kernel.org> References: <20220922215715.13345-1-will@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 22 Sep 2022 22:57:15 +0100, Will Deacon wrote: > Due to undocumented, hysterical raisins on x86, the CFI jump-table > sections in .text are needlessly aligned to PMD_SIZE in the vmlinux > linker script. When compiling a CFI-enabled arm64 kernel with a 64KiB > page-size, a PMD maps 512MiB of virtual memory and so the .text section > increases to a whopping 940MiB and blows the final Image up to 960MiB. > Others report a link failure. > > [...] Applied to arm64 (for-next/fixes), thanks! [1/1] vmlinux.lds.h: CFI: Reduce alignment of jump-table to function alignment https://git.kernel.org/arm64/c/13b056696291 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev