[PATCH] crypto: fix ctx pointer in sha512-mb

2016-08-12 Thread Xiaodong Liu
Signed-off-by: Xiaodong Liu --- arch/x86/crypto/sha512-mb/sha512_mb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/crypto/sha512-mb/sha512_mb.c b/arch/x86/crypto/sha512-mb/sha512_mb.c index f4cf5b7..d210174 100644 --- a/arch/x86/crypto/sha512-mb/sha512_mb.c

[PATCH] crypto: fix ctx pointer and digest copy in sha256-mb

2016-08-12 Thread Xiaodong Liu
register. Signed-off-by: Xiaodong Liu --- arch/x86/crypto/sha256-mb/sha256_mb.c| 4 ++-- arch/x86/crypto/sha256-mb/sha256_mb_mgr_flush_avx2.S | 7 --- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/x86/crypto/sha256-mb/sha256_mb.c b/arch/x86/crypto/sha256-mb

[PATCH] crypto: sha1-mb - use corrcet pointer while completing jobs

2016-04-12 Thread Xiaodong Liu
In sha_complete_job, incorrect mcryptd_hash_request_ctx pointer is used when check and complete other jobs. If the memory of first completed req is freed, while still completing other jobs in the func, kernel will crash since NULL pointer is assigned to RIP. Signed-off-by: Xiaodong Liu --- arch

Re: [PATCH 4/7] crypto: sha256-mb - submit/flush routines for AVX2

2016-04-10 Thread Xiaodong Liu
Signed-off-by: Xiaodong Liu --- sha256_mb_mgr_flush_avx2.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sha256_mb_mgr_flush_avx2.S b/sha256_mb_mgr_flush_avx2.S index 93eda35..0bd791b 100644 --- a/sha256_mb_mgr_flush_avx2.S +++ b/sha256_mb_mgr_flush_avx2.S @@ -285,13