aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpicoder.c
diff options
context:
space:
mode:
author[email protected] <[email protected]>2017-08-02 13:49:09 -0700
committerHerbert Xu <[email protected]>2017-08-09 20:01:37 +0800
commit8861249c740fc4af9ddc5aee321eafefb960d7c6 (patch)
tree1c79fc822f74626f9a8dbf80b17c93a8d3b59801 /lib/mpi/mpicoder.c
parent28389575a8cf933a5f3c378556b9f4d3cce0efd2 (diff)
crypto: x86/sha1 - Fix reads beyond the number of blocks passed
It was reported that the sha1 AVX2 function(sha1_transform_avx2) is reading ahead beyond its intended data, and causing a crash if the next block is beyond page boundary: http://marc.info/?l=linux-crypto-vger&m=149373371023377 This patch makes sure that there is no overflow for any buffer length. It passes the tests written by Jan Stancek that revealed this problem: https://github.com/jstancek/sha1-avx2-crash I have re-enabled sha1-avx2 by reverting commit b82ce24426a4071da9529d726057e4e642948667 Cc: <[email protected]> Fixes: b82ce24426a4 ("crypto: sha1-ssse3 - Disable avx2") Originally-by: Ilya Albrekht <[email protected]> Tested-by: Jan Stancek <[email protected]> Signed-off-by: Megha Dey <[email protected]> Reported-by: Jan Stancek <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions