Patch "crypto: sun4i-ss - initialize need_fallback" has been added to the 5.11-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    crypto: sun4i-ss - initialize need_fallback

to the 5.11-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-sun4i-ss-initialize-need_fallback.patch
and it can be found in the queue-5.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From 4ec8977b921fd9d512701e009ce8082cb94b5c1c Mon Sep 17 00:00:00 2001
From: Corentin Labbe <clabbe@xxxxxxxxxxxx>
Date: Mon, 14 Dec 2020 20:02:29 +0000
Subject: crypto: sun4i-ss - initialize need_fallback

From: Corentin Labbe <clabbe@xxxxxxxxxxxx>

commit 4ec8977b921fd9d512701e009ce8082cb94b5c1c upstream.

The need_fallback is never initialized and seem to be always true at runtime.
So all hardware operations are always bypassed.

Fixes: 0ae1f46c55f87 ("crypto: sun4i-ss - fallback when length is not multiple of blocksize")
Cc: <stable@xxxxxxxxxxxxxxx>
Signed-off-by: Corentin Labbe <clabbe@xxxxxxxxxxxx>
Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c
+++ b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c
@@ -194,7 +194,7 @@ static int sun4i_ss_cipher_poll(struct s
 	unsigned int obo = 0;	/* offset in bufo*/
 	unsigned int obl = 0;	/* length of data in bufo */
 	unsigned long flags;
-	bool need_fallback;
+	bool need_fallback = false;
 
 	if (!areq->cryptlen)
 		return 0;


Patches currently in stable-queue which might be from clabbe@xxxxxxxxxxxx are

queue-5.11/crypto-sun4i-ss-initialize-need_fallback.patch
queue-5.11/crypto-sun4i-ss-iv-register-does-not-work-on-a10-and-a13.patch
queue-5.11/crypto-sun4i-ss-linearize-buffers-content-must-be-ke.patch
queue-5.11/crypto-sun4i-ss-handle-bigendian-for-cipher.patch
queue-5.11/crypto-sun4i-ss-fix-kmap-usage.patch
queue-5.11/crypto-sun4i-ss-checking-sg-length-is-not-sufficient.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux