From: Eric Biggers Date: Sat, 17 Nov 2018 01:26:19 +0000 (-0800) Subject: FROMGIT: crypto: chacha20-generic - don't unnecessarily use atomic walk X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=19217c4071dccf1e003e17014c0b91c74fc27547;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git FROMGIT: crypto: chacha20-generic - don't unnecessarily use atomic walk chacha20-generic doesn't use SIMD instructions or otherwise disable preemption, so passing atomic=true to skcipher_walk_virt() is unnecessary. Suggested-by: Ard Biesheuvel Acked-by: Martin Willi Signed-off-by: Eric Biggers Signed-off-by: Herbert Xu (cherry picked from commit 5e04542a0e0763294e9fced73a149c38c4e0cee5 https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master) Bug: 112008522 Test: As series, see Ic61c13b53facfd2173065be715a7ee5f3af8760b Change-Id: I28a63d6f8aa59f60aed8d35107b3c546ca5152f7 Signed-off-by: Eric Biggers --- diff --git a/crypto/chacha20_generic.c b/crypto/chacha20_generic.c index 3ae96587caf9..3529521d72a4 100644 --- a/crypto/chacha20_generic.c +++ b/crypto/chacha20_generic.c @@ -81,7 +81,7 @@ int crypto_chacha20_crypt(struct skcipher_request *req) u32 state[16]; int err; - err = skcipher_walk_virt(&walk, req, true); + err = skcipher_walk_virt(&walk, req, false); crypto_chacha20_init(state, ctx, walk.iv);