Re: [PATCH v2] lib/mpi: Fix kernel unaligned access in mpi_write_to_sgl

From: Herbert Xu
Date: Wed Apr 27 2016 - 21:04:16 EST


On Wed, Apr 27, 2016 at 01:43:56PM -0400, Sowmini Varadhan wrote:
>
> Commit 2d4d1eea540b ("lib/mpi: Add mpi sgl helpers") added
> mpi_write_to_sgl() which generates traps due to unaligned
> access on some platforms like sparc. Fix this by using
> the get_unaligned* and put_unaligned* functions.
>
> Fixes: 2d4d1eea540b ("lib/mpi: Add mpi sgl helpers")
> Signed-off-by: Sowmini Varadhan <sowmini.varadhan@xxxxxxxxxx>

Please cc linux-crypto.

Thanks,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt