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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id C6256C6FA82 for ; Fri, 23 Sep 2022 15:42:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UVhVVy5T2EQacLT/yLKhexkBbGMI8cgnjGfQKaQ5SIo=; b=L7NHt2dWTbnld3 IKu2I2kMiiL/Vs0x46Oa0LwBubSdxnXGdqWBy/jiZKcCbiomYOs8BXrQTsBV9Qe3q1ibnZ8g6p1e4 aJiD/5j+ifL5+wnOjVr+ljYIAfTiLuwt/kylARSSWvAXiVFxgwAnqGlwKgo6asZpIxHKKlHt+lI9G Yb7KU5CMRFEqXFi7BPO32f2Ls3JRuA294fhQbZPcwFxATLlrG8x3wJJhUz2d4tH9M/3+t44FYJ/zA 7657InzK8i5saa7cYOsY9pm7GA685iEr2mERQaxbdTUW6fBxJJZDdU032KWUpKhHFXNKs1jQ+/H6w 89jRk+TqZD7mx6tUCWTw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1obknc-004qiN-1g; Fri, 23 Sep 2022 15:41:08 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1obknV-004qeg-SP for linux-arm-kernel@lists.infradead.org; Fri, 23 Sep 2022 15:41:05 +0000 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 48447CE1DA1; Fri, 23 Sep 2022 15:40:57 +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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220923_084102_115393_DCEF930C X-CRM114-Status: GOOD ( 10.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel