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 9F330C433F5 for ; Tue, 18 Jan 2022 11:22:49 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc: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=qjor/79pc2Cs2m+QsCYouy1a3Kp7CjmVb65Vw5Ewj6w=; b=2/NP873APxwZyX xWH1sicP1t+SUowIaDnnRZcCSuNNIy6YafPVPZOOEnIkuoz6GPggqlKKODqv6QAal+qki0LumdLHd I+A872xAkWgMsHepOTHEZRR5NtkkgCqRRZgoj76PQFypiwZjE1Ky1hL0/Wz/fN62wHjjq9pOjucu+ RTbngfHTIdrZPS+dKb77Z/6qyI9MezXCEvme3mUEWPsiklF/xx2qbbeyYRRXA6vOgB0GUw0Dr7Ccc qRAoPwKMk3wsVVXSIgjurrcLojoLQeR4ejtbIslWCsCI7vBmCHS0Qc9A6Ow1b8ds44x8ElI7J2kEj 0+a33O5rrjfiJJEWU36Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9mYL-001HqS-2Q; Tue, 18 Jan 2022 11:21:29 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9mYH-001Hpz-5R for linux-arm-kernel@lists.infradead.org; Tue, 18 Jan 2022 11:21:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=0YIdVKtdFmfG5n3uavuj6tkK42RYTf7CKBl8Kthf/50=; b=NRDhc81iKhblxcuPAVUy5T3xdg /e+GTGe3VO61jAlAbymAE7azb9l24JZj/lHApv2qKuY+zeMxknnPjnTGi5lPnjLpwXanceKonQ7H+ t99pafBVS6/Ru5BzDOTPqUUCJzPvvuJBG2aFcezJTE7xbYH57E8LYkBK/66Iq8VBrnkrevnWg/IJZ LF024wbwwqFTUzIfm23q1XA9g3dB3DAY6iPx0D1cIKYYhaQg3gpb43Jhj0dEvwX61LzqhLE0oc62Q d8moJClGS5she8pf+ZE7HcEjc6MoMghVxKccME51VsyvAjElM5c6byWcYMYyUC9Iz2xOagFgnY+Le dnqL/ZiQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:56752) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1n9mYD-0003gB-Tx; Tue, 18 Jan 2022 11:21:21 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1n9mYC-0004FC-KL; Tue, 18 Jan 2022 11:21:20 +0000 Date: Tue, 18 Jan 2022 11:21:20 +0000 From: "Russell King (Oracle)" To: Ard Biesheuvel Cc: linux-arm-kernel@lists.infradead.org, arnd@arndb.de, linus.walleij@linaro.org, stable@vger.kernel.org Subject: Re: [PATCH] ARM: Thumb2: align ALT_UP() sections sufficiently Message-ID: References: <20220118102756.1259149-1-ardb@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220118102756.1259149-1-ardb@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220118_032125_228627_0A4B0725 X-CRM114-Status: GOOD ( 12.02 ) 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 Tue, Jan 18, 2022 at 11:27:56AM +0100, Ard Biesheuvel wrote: > When building for Thumb2, the .alt.smp.init sections that are emitted by > the ALT_UP() patching code may not be 32-bit aligned, even though the > fixup_smp_on_up() routine expects that. This results in alignment faults > at module load time, which need to be fixed up by the fault handler. > > So let's align those sections explicitly, and avoid this from occurring. Are you seeing a problem that this patch fixes? This really should not matter. .alt.smp.init contents are always a whole number of 32-bit words. These are gathered by the linker into the .init.smpalt section, so the contents should always be a whole number of 32-bit words. This follows the .init.tagtable section, which is also a 32-bit word aligned structure built by the linker... which follows the .init.arch.info section and .init.proc.info sections which all have 32-bit alignment requirements. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel