]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.19-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Sep 2021 08:25:05 +0000 (10:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Sep 2021 08:25:05 +0000 (10:25 +0200)
added patches:
apparmor-remove-duplicate-macro-list_entry_is_head.patch
crypto-talitos-fix-max-key-size-for-sha384-and-sha512.patch

queue-4.19/apparmor-remove-duplicate-macro-list_entry_is_head.patch [new file with mode: 0644]
queue-4.19/crypto-talitos-fix-max-key-size-for-sha384-and-sha512.patch [new file with mode: 0644]
queue-4.19/series

diff --git a/queue-4.19/apparmor-remove-duplicate-macro-list_entry_is_head.patch b/queue-4.19/apparmor-remove-duplicate-macro-list_entry_is_head.patch
new file mode 100644 (file)
index 0000000..0da9ccc
--- /dev/null
@@ -0,0 +1,40 @@
+From 9801ca279ad37f72f71234fa81722afd95a3f997 Mon Sep 17 00:00:00 2001
+From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
+Date: Tue, 15 Dec 2020 20:47:16 -0800
+Subject: apparmor: remove duplicate macro list_entry_is_head()
+
+From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
+
+commit 9801ca279ad37f72f71234fa81722afd95a3f997 upstream.
+
+Strangely I hadn't had noticed the existence of the list_entry_is_head()
+in apparmor code when added the same one in the list.h.  Luckily it's
+fully identical and didn't break builds.  In any case we don't need a
+duplicate anymore, thus remove it from apparmor code.
+
+Link: https://lkml.kernel.org/r/20201208100639.88182-1-andriy.shevchenko@linux.intel.com
+Fixes: e130816164e244 ("include/linux/list.h: add a macro to test if entry is pointing to the head")
+Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
+Acked-by: John Johansen <john.johansen@canonical.com>
+Cc: James Morris <jmorris@namei.org>
+Cc: "Serge E . Hallyn " <serge@hallyn.com>
+Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
+Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
+Signed-off-by: Nobuhiro Iwamatsu (CIP) <nobuhiro1.iwamatsu@toshiba.co.jp>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ security/apparmor/apparmorfs.c |    3 ---
+ 1 file changed, 3 deletions(-)
+
+--- a/security/apparmor/apparmorfs.c
++++ b/security/apparmor/apparmorfs.c
+@@ -1960,9 +1960,6 @@ fail2:
+       return error;
+ }
+-
+-#define list_entry_is_head(pos, head, member) (&pos->member == (head))
+-
+ /**
+  * __next_ns - find the next namespace to list
+  * @root: root namespace to stop search at (NOT NULL)
diff --git a/queue-4.19/crypto-talitos-fix-max-key-size-for-sha384-and-sha512.patch b/queue-4.19/crypto-talitos-fix-max-key-size-for-sha384-and-sha512.patch
new file mode 100644 (file)
index 0000000..a2c499a
--- /dev/null
@@ -0,0 +1,38 @@
+From 192125ed5ce62afba24312d8e7a0314577565b4a Mon Sep 17 00:00:00 2001
+From: Christophe Leroy <christophe.leroy@c-s.fr>
+Date: Wed, 12 Jun 2019 05:49:50 +0000
+Subject: crypto: talitos - fix max key size for sha384 and sha512
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+From: Christophe Leroy <christophe.leroy@c-s.fr>
+
+commit 192125ed5ce62afba24312d8e7a0314577565b4a upstream.
+
+Below commit came with a typo in the CONFIG_ symbol, leading
+to a permanently reduced max key size regarless of the driver
+capabilities.
+
+Reported-by: Horia Geantă <horia.geanta@nxp.com>
+Fixes: b8fbdc2bc4e7 ("crypto: talitos - reduce max key size for SEC1")
+Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
+Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
+Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
+Signed-off-by: Nobuhiro Iwamatsu (CIP) <nobuhiro1.iwamatsu@toshiba.co.jp>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/crypto/talitos.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/crypto/talitos.c
++++ b/drivers/crypto/talitos.c
+@@ -853,7 +853,7 @@ static void talitos_unregister_rng(struc
+  * HMAC_SNOOP_NO_AFEA (HSNA) instead of type IPSEC_ESP
+  */
+ #define TALITOS_CRA_PRIORITY_AEAD_HSNA        (TALITOS_CRA_PRIORITY - 1)
+-#ifdef CONFIG_CRYPTO_DEV_TALITOS_SEC2
++#ifdef CONFIG_CRYPTO_DEV_TALITOS2
+ #define TALITOS_MAX_KEY_SIZE          (AES_MAX_KEY_SIZE + SHA512_BLOCK_SIZE)
+ #else
+ #define TALITOS_MAX_KEY_SIZE          (AES_MAX_KEY_SIZE + SHA256_BLOCK_SIZE)
index c387ae0b652e8b7d8c9026423aede82a6a6c6a7a..e590fee6137765738d20a1040b5dfc50ee3c432a 100644 (file)
@@ -1,3 +1,5 @@
 s390-bpf-fix-optimizing-out-zero-extensions.patch
 kvm-remember-position-in-kvm-vcpus-array.patch
 rcu-fix-missed-wakeup-of-exp_wq-waiters.patch
+apparmor-remove-duplicate-macro-list_entry_is_head.patch
+crypto-talitos-fix-max-key-size-for-sha384-and-sha512.patch