aboutsummaryrefslogtreecommitdiff
path: root/drivers/message/fusion/lsi/mpi_tool.h
diff options
context:
space:
mode:
authorAndrey Ryabinin <[email protected]>2017-10-16 18:51:30 +0300
committerHerbert Xu <[email protected]>2017-11-03 21:35:34 +0800
commit5dfeaac15f2b1abb5a53c9146041c7235eb9aa04 (patch)
tree340bac4bef4a1f3f132107acdac7fc61553b2bee /drivers/message/fusion/lsi/mpi_tool.h
parent4635742d1cef5ee5f217f89310a8782ebb4e25dd (diff)
crypto: x86/sha256-mb - fix panic due to unaligned access
struct sha256_ctx_mgr allocated in sha256_mb_mod_init() via kzalloc() and later passed in sha256_mb_flusher_mgr_flush_avx2() function where instructions vmovdqa used to access the struct. vmovdqa requires 16-bytes aligned argument, but nothing guarantees that struct sha256_ctx_mgr will have that alignment. Unaligned vmovdqa will generate GP fault. Fix this by replacing vmovdqa with vmovdqu which doesn't have alignment requirements. Fixes: a377c6b1876e ("crypto: sha256-mb - submit/flush routines for AVX2") Reported-by: Josh Poimboeuf <[email protected]> Signed-off-by: Andrey Ryabinin <[email protected]> Cc: <[email protected]> Acked-by: Tim Chen Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'drivers/message/fusion/lsi/mpi_tool.h')
0 files changed, 0 insertions, 0 deletions