From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD3E7647D for ; Wed, 9 Mar 2022 22:32:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCA96C340E8; Wed, 9 Mar 2022 22:32:02 +0000 (UTC) Date: Wed, 9 Mar 2022 22:31:59 +0000 From: Catalin Marinas To: Nick Desaulniers Cc: Nathan Chancellor , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, stable@vger.kernel.org, Marc Zyngier , James Morse Subject: Re: [PATCH] arm64: Do not include __READ_ONCE() block in assembly files Message-ID: References: <20220309191633.2307110-1-nathan@kernel.org> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Mar 09, 2022 at 01:53:50PM -0800, Nick Desaulniers wrote: > On Wed, Mar 9, 2022 at 11:19 AM Nathan Chancellor wrote: > > Avoid this problem by just avoiding the CONFIG_LTO=y __READ_ONCE() block > > in asm/rwonce.h with assembly files, as nothing in that block is useful > > to assembly files, which allows ARM_SMCCC_ARCH_WORKAROUND_3 to be > > properly expanded with CONFIG_LTO=y builds. > > > > Cc: stable@vger.kernel.org > > Fixes: e35123d83ee3 ("arm64: lto: Strengthen READ_ONCE() to acquire when CONFIG_LTO=y") > > Link: https://lore.kernel.org/r/20220309155716.3988480-1-maz@kernel.org/ > > Reported-by: Marc Zyngier > > Acked-by: James Morse > > Signed-off-by: Nathan Chancellor > > Thanks for taking point on all of the BHB fallout. > > Reviewed-by: Nick Desaulniers > Tested-by: Nick Desaulniers Thanks for the review and testing. Unfortunately I've just sent the pull request to Linus, so didn't include your tags. -- Catalin