[PATCH] arm: fix inline asm in load_unaligned_zeropad()

Will Deacon will at kernel.org
Thu Apr 1 18:16:55 BST 2021


On Thu, Apr 01, 2021 at 09:55:43AM -0700, Peter Collingbourne wrote:
> The inline asm's addr operand is marked as input-only, however in
> the case where an exception is taken it may be modified by the BIC
> instruction on the exception path. Fix the problem by using a temporary
> register as the destination register for the BIC instruction.
> 
> Signed-off-by: Peter Collingbourne <pcc at google.com>
> Cc: stable at vger.kernel.org
> Link: https://linux-review.googlesource.com/id/I0f9ad1682821f874fb9b47e1279721943b2e5325
> ---
>  arch/arm/include/asm/word-at-a-time.h | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)

Acked-by: Will Deacon <will at kernel.org>

Please can you put this into Russell's patch system?

Thanks,

Will



More information about the linux-arm-kernel mailing list