From: Greg Kroah-Hartman Date: Wed, 13 Jun 2018 20:37:38 +0000 (+0200) Subject: 4.9-stable patches X-Git-Tag: v4.17.2~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aaec52fccfbdfe4487a37e8267b4998bd7162840;p=thirdparty%2Fkernel%2Fstable-queue.git 4.9-stable patches added patches: x86-crypto-x86-fpu-remove-x86_feature_eager_fpu-ifdef-from-the-crc32c-code.patch --- diff --git a/queue-4.9/series b/queue-4.9/series index 420fc0f3191..1bba7b5d7d8 100644 --- a/queue-4.9/series +++ b/queue-4.9/series @@ -4,3 +4,4 @@ bonding-fix-active-backup-transition.patch bonding-require-speed-duplex-only-for-802.3ad-alb-and-tlb.patch nvme-pci-initialize-queue-memory-before-interrupts.patch af_key-always-verify-length-of-provided-sadb_key.patch +x86-crypto-x86-fpu-remove-x86_feature_eager_fpu-ifdef-from-the-crc32c-code.patch diff --git a/queue-4.9/x86-crypto-x86-fpu-remove-x86_feature_eager_fpu-ifdef-from-the-crc32c-code.patch b/queue-4.9/x86-crypto-x86-fpu-remove-x86_feature_eager_fpu-ifdef-from-the-crc32c-code.patch new file mode 100644 index 00000000000..780095ac1b4 --- /dev/null +++ b/queue-4.9/x86-crypto-x86-fpu-remove-x86_feature_eager_fpu-ifdef-from-the-crc32c-code.patch @@ -0,0 +1,56 @@ +From 02f39b2379fb81557ae864ec8f85421c0250c954 Mon Sep 17 00:00:00 2001 +From: Andy Lutomirski +Date: Tue, 4 Oct 2016 20:34:30 -0400 +Subject: x86/crypto, x86/fpu: Remove X86_FEATURE_EAGER_FPU #ifdef from the crc32c code + +From: Andy Lutomirski + +commit 02f39b2379fb81557ae864ec8f85421c0250c954 upstream. + +The crypto code was checking both use_eager_fpu() and +defined(X86_FEATURE_EAGER_FPU). The latter was nonsensical, so +remove it. This will avoid breakage when we remove +X86_FEATURE_EAGER_FPU. + +Signed-off-by: Andy Lutomirski +Signed-off-by: Rik van Riel +Cc: Borislav Petkov +Cc: Brian Gerst +Cc: Dave Hansen +Cc: Denys Vlasenko +Cc: Fenghua Yu +Cc: H. Peter Anvin +Cc: Josh Poimboeuf +Cc: Linus Torvalds +Cc: Oleg Nesterov +Cc: Peter Zijlstra +Cc: Quentin Casasnovas +Cc: Thomas Gleixner +Cc: pbonzini@redhat.com +Link: http://lkml.kernel.org/r/1475627678-20788-2-git-send-email-riel@redhat.com +Signed-off-by: Ingo Molnar +Signed-off-by: Greg Kroah-Hartman + +--- + arch/x86/crypto/crc32c-intel_glue.c | 5 ----- + 1 file changed, 5 deletions(-) + +--- a/arch/x86/crypto/crc32c-intel_glue.c ++++ b/arch/x86/crypto/crc32c-intel_glue.c +@@ -58,16 +58,11 @@ + asmlinkage unsigned int crc_pcl(const u8 *buffer, int len, + unsigned int crc_init); + static int crc32c_pcl_breakeven = CRC32C_PCL_BREAKEVEN_EAGERFPU; +-#if defined(X86_FEATURE_EAGER_FPU) + #define set_pcl_breakeven_point() \ + do { \ + if (!use_eager_fpu()) \ + crc32c_pcl_breakeven = CRC32C_PCL_BREAKEVEN_NOEAGERFPU; \ + } while (0) +-#else +-#define set_pcl_breakeven_point() \ +- (crc32c_pcl_breakeven = CRC32C_PCL_BREAKEVEN_NOEAGERFPU) +-#endif + #endif /* CONFIG_X86_64 */ + + static u32 crc32c_intel_le_hw_byte(u32 crc, unsigned char const *data, size_t length)