Patch "crypto: algif_aead - Fix kernel panic on list_del" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
crypto: algif_aead - Fix kernel panic on list_del
to the 4.9-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-algif_aead-fix-kernel-panic-on-list_del.patch
and it can be found in the queue-4.9 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
0b529f143e8baad441a5aac9ad55ec2434d8fb46Mon Sep 17 00:00:00 2001
From: Harsh Jain <[email protected]>
Date: Wed, 1 Feb 2017 21:10:28 +0530
Subject: crypto: algif_aead - Fix kernel panic on list_del
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: Harsh Jain <[email protected]>
commit 0b529f143e8baad441a5aac9ad55ec2434d8fb46 upstream.
Kernel panics when userspace program try to access AEAD interface.
Remove node from Linked List before freeing its memory.
--- crypto/algif_aead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
crypto/algif_aead.c +1 -1
@@ -671,9 +671,9 @@ static int aead_recvmsg_sync(struct sock unlock:list_for_each_entry_safe (rsgl, tmp, &ctx->list, list) {af_alg_free_sg (&rsgl->sgl); +list_del (&rsgl->list);if (rsgl != &ctx->first_rsgl)sock_kfree_s (sk, rsgl,sizeof (*rsgl)); -list_del (&rsgl->list); }INIT_LIST_HEAD (&ctx->list);aead_wmem_wakeup (sk);
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/crypto-chcr-check-device-is-allocated-before-use.patch queue-4.9/crypto-algif_aead-fix-kernel-panic-on-list_del.patch