aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2021-01-08 12:05:11 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2021-01-08 12:05:11 -0800
commitea1c87c156d94dd78b4f5267ec40c403b2da7e14 (patch)
tree84a8227bbcc316a022f3d58d09ac1a165b0c76e2 /arch
parentpoll: fix performance regression due to out-of-line __put_user() (diff)
parentcrypto: ecdh - avoid buffer overflow in ecdh_set_secret() (diff)
downloadlinux-dev-ea1c87c156d94dd78b4f5267ec40c403b2da7e14.tar.xz
linux-dev-ea1c87c156d94dd78b4f5267ec40c403b2da7e14.zip
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto fixes from Herbert Xu: "This fixes a functional bug in arm/chacha-neon as well as a potential buffer overflow in ecdh" * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: crypto: ecdh - avoid buffer overflow in ecdh_set_secret() crypto: arm/chacha-neon - add missing counter increment
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/crypto/chacha-glue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/crypto/chacha-glue.c b/arch/arm/crypto/chacha-glue.c
index 7b5cf8430c6d..cdde8fd01f8f 100644
--- a/arch/arm/crypto/chacha-glue.c
+++ b/arch/arm/crypto/chacha-glue.c
@@ -60,6 +60,7 @@ static void chacha_doneon(u32 *state, u8 *dst, const u8 *src,
chacha_block_xor_neon(state, d, s, nrounds);
if (d != dst)
memcpy(dst, buf, bytes);
+ state[12]++;
}
}