On Wed, Mar 09, 2022 at 01:53:50PM -0800, Nick Desaulniers wrote: > On Wed, Mar 9, 2022 at 11:19 AM Nathan Chancellor <nathan@xxxxxxxxxx> 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@xxxxxxxxxxxxxxx > > Fixes: e35123d83ee3 ("arm64: lto: Strengthen READ_ONCE() to acquire when CONFIG_LTO=y") > > Link: https://lore.kernel.org/r/20220309155716.3988480-1-maz@xxxxxxxxxx/ > > Reported-by: Marc Zyngier <maz@xxxxxxxxxx> > > Acked-by: James Morse <james.morse@xxxxxxx> > > Signed-off-by: Nathan Chancellor <nathan@xxxxxxxxxx> > > Thanks for taking point on all of the BHB fallout. > > Reviewed-by: Nick Desaulniers <ndesaulniers@xxxxxxxxxx> > Tested-by: Nick Desaulniers <ndesaulniers@xxxxxxxxxx> Thanks for the review and testing. Unfortunately I've just sent the pull request to Linus, so didn't include your tags. -- Catalin