linux-sg2042/arch/x86/crypto/sha512-mb
Tim Chen c459bd7bed crypto: sha512-mb - Protect sha512 mb ctx mgr access
The flusher and regular multi-buffer computation via mcryptd may race with another.
Add here a lock and turn off interrupt to to access multi-buffer
computation state cstate->mgr before a round of computation. This should
prevent the flusher code jumping in.

Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2017-02-11 17:50:41 +08:00
..
Makefile
sha512_mb.c crypto: sha512-mb - Protect sha512 mb ctx mgr access 2017-02-11 17:50:41 +08:00
sha512_mb_ctx.h crypto: sha-mb - Fix total_len for correct hash when larger than 512MB 2016-11-17 23:35:00 +08:00
sha512_mb_mgr.h crypto: sha512-mb - Algorithm data structures 2016-06-28 16:06:39 +08:00
sha512_mb_mgr_datastruct.S crypto: sha512-mb - Algorithm data structures 2016-06-28 16:06:39 +08:00
sha512_mb_mgr_flush_avx2.S crypto: x86 - make constants readonly, allow linker to merge them 2017-01-23 22:50:29 +08:00
sha512_mb_mgr_init_avx2.c crypto: sha512-mb - submit/flush routines for AVX2 2016-06-28 16:06:38 +08:00
sha512_mb_mgr_submit_avx2.S crypto: x86 - make constants readonly, allow linker to merge them 2017-01-23 22:50:29 +08:00
sha512_x4_avx2.S crypto: x86 - make constants readonly, allow linker to merge them 2017-01-23 22:50:29 +08:00