diff options
| author | Andrey Ryabinin <[email protected]> | 2017-10-16 15:51:31 +0000 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2017-11-03 13:35:35 +0000 |
| commit | d041b557792c85677f17e08eee535eafbd6b9aa2 (patch) | |
| tree | 742eabbecc54216d4acb6f7ed0e06cb6cea622d9 /lib/assoc_array.c | |
| parent | crypto: x86/sha256-mb - fix panic due to unaligned access (diff) | |
| download | kernel-d041b557792c85677f17e08eee535eafbd6b9aa2.tar.gz kernel-d041b557792c85677f17e08eee535eafbd6b9aa2.zip | |
crypto: x86/sha1-mb - fix panic due to unaligned access
struct sha1_ctx_mgr allocated in sha1_mb_mod_init() via kzalloc()
and later passed in sha1_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
sha1_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: 2249cbb53ead ("crypto: sha-mb - SHA1 multibuffer submit and flush routines for AVX2")
Signed-off-by: Andrey Ryabinin <[email protected]>
Cc: <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/assoc_array.c')
0 files changed, 0 insertions, 0 deletions
