]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.14-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Jan 2018 10:36:21 +0000 (11:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Jan 2018 10:36:21 +0000 (11:36 +0100)
added patches:
x86-use-__nostackprotect-for-sme_encrypt_kernel.patch

queue-4.14/series
queue-4.14/x86-use-__nostackprotect-for-sme_encrypt_kernel.patch [new file with mode: 0644]

index 1ee4c286864daa57376ff57827db399a07ac11c7..6d339a1eaac9683d8fe1141c6f30df080bce2cbe 100644 (file)
@@ -73,3 +73,4 @@ dm-integrity-don-t-store-cipher-request-on-the-stack.patch
 dm-crypt-fix-crash-by-adding-missing-check-for-auth-key-size.patch
 dm-crypt-wipe-kernel-key-copy-after-iv-initialization.patch
 dm-crypt-fix-error-return-code-in-crypt_ctr.patch
+x86-use-__nostackprotect-for-sme_encrypt_kernel.patch
diff --git a/queue-4.14/x86-use-__nostackprotect-for-sme_encrypt_kernel.patch b/queue-4.14/x86-use-__nostackprotect-for-sme_encrypt_kernel.patch
new file mode 100644 (file)
index 0000000..756b2d2
--- /dev/null
@@ -0,0 +1,39 @@
+From 91cfc88c66bf8ab95937606569670cf67fa73e09 Mon Sep 17 00:00:00 2001
+From: Laura Abbott <labbott@redhat.com>
+Date: Sat, 20 Jan 2018 17:14:02 -0800
+Subject: x86: Use __nostackprotect for sme_encrypt_kernel
+
+From: Laura Abbott <labbott@redhat.com>
+
+commit 91cfc88c66bf8ab95937606569670cf67fa73e09 upstream.
+
+Commit bacf6b499e11 ("x86/mm: Use a struct to reduce parameters for SME
+PGD mapping") moved some parameters into a structure.
+
+The structure was large enough to trigger the stack protection canary in
+sme_encrypt_kernel which doesn't work this early, causing reboots.
+
+Mark sme_encrypt_kernel appropriately to not use the canary.
+
+Fixes: bacf6b499e11 ("x86/mm: Use a struct to reduce parameters for SME PGD mapping")
+Signed-off-by: Laura Abbott <labbott@redhat.com>
+Cc: Tom Lendacky <thomas.lendacky@amd.com>
+Cc: Ingo Molnar <mingo@kernel.org>
+Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/x86/mm/mem_encrypt.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/arch/x86/mm/mem_encrypt.c
++++ b/arch/x86/mm/mem_encrypt.c
+@@ -487,7 +487,7 @@ static unsigned long __init sme_pgtable_
+       return total;
+ }
+-void __init sme_encrypt_kernel(struct boot_params *bp)
++void __init __nostackprotector sme_encrypt_kernel(struct boot_params *bp)
+ {
+       unsigned long workarea_start, workarea_end, workarea_len;
+       unsigned long execute_start, execute_end, execute_len;