Patch "crypto: sha1-mb - use corrcet pointer while completing jobs" has been added to the 4.4-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
crypto: sha1-mb - use corrcet pointer while completing jobs
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
crypto-sha1-mb-use-corrcet-pointer-while-completing-jobs.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
0851561d9c965df086ef8a53f981f5f95a57c2c8Mon Sep 17 00:00:00 2001
From: Xiaodong Liu <[email protected]>
Date: Tue, 12 Apr 2016 09:45:51 +0000
Subject: crypto: sha1-mb - use corrcet pointer while completing jobs
From: Xiaodong Liu <[email protected]>
commit 0851561d9c965df086ef8a53f981f5f95a57c2c8 upstream.
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.
--- arch/x86/crypto/sha-mb/sha1_mb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/crypto/sha-mb/sha1_mb.c +2 -2
@@ -453,10 +453,10 @@ static int sha_complete_job(struct mcryp req =cast_mcryptd_ctx_to_req (req_ctx);if (irqs_disabled ()) - rctx->complete (&req->base, ret); + req_ctx->complete (&req->base, ret);else {local_bh_disable (); - rctx->complete (&req->base, ret); + req_ctx->complete (&req->base, ret);local_bh_enable (); } }
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/crypto-sha1-mb-use-corrcet-pointer-while-completing-jobs.patch