raid6-add-missing-vzeroupper-to-avx-512-code.patch removed from -mm tree
The quilt patch titled
Subject: raid6: add missing vzeroupper to AVX-512 code
has been removed from the -mm tree. Its filename was
raid6-add-missing-vzeroupper-to-avx-512-code.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Eric Biggers <[email protected]>
Subject: raid6: add missing vzeroupper to AVX-512 code
Date: Mon, 31 Aug 2026 14:23:16 -0700
Since the AVX-512 optimized RAID6 code uses ZMM registers, execute vzeroupper before returning from it. This is needed to avoid degrading the performance of any later SSE code that may happen to be executed.
---
lib/raid/raid6/x86/avx512.c | 6 ++++++ lib/raid/raid6/x86/recov_avx512.c | 2 ++ 2 files changed, 8 insertions(+)
lib/raid/raid6/x86/avx512.c renamed from lib/raid/raid6/x86/avx512.c~raid6-add-missing-vzeroupper-to-avx-512-code +6 -0
@@ -78,6 +78,7 @@ static void raid6_avx5121_gen_syndrome(i } asmvolatile ("sfence" : : :"memory" ); + asmvolatile ("vzeroupper" );kernel_fpu_end (); }
@@ -137,6 +138,7 @@ static void raid6_avx5121_xor_syndrome(i } asmvolatile ("sfence" : : :"memory" ); + asmvolatile ("vzeroupper" );kernel_fpu_end (); }
@@ -208,6 +210,7 @@ static void raid6_avx5122_gen_syndrome(i } asmvolatile ("sfence" : : :"memory" ); + asmvolatile ("vzeroupper" );kernel_fpu_end (); }
@@ -292,6 +295,7 @@ static void raid6_avx5122_xor_syndrome(i } asmvolatile ("sfence" : : :"memory" ); + asmvolatile ("vzeroupper" );kernel_fpu_end (); }
@@ -396,6 +400,7 @@ static void raid6_avx5124_gen_syndrome(i } asmvolatile ("sfence" : : :"memory" ); + asmvolatile ("vzeroupper" );kernel_fpu_end (); }
@@ -529,6 +534,7 @@ static void raid6_avx5124_xor_syndrome(i "m" (q[d+128]), "m" (q[d+192])); } asmvolatile ("sfence" : : :"memory" ); + asmvolatile ("vzeroupper" );kernel_fpu_end (); }const struct raid6_calls raid6_avx512x4 = {
lib/raid/raid6/x86/recov_avx512.c renamed from lib/raid/raid6/x86/recov_avx512.c~raid6-add-missing-vzeroupper-to-avx-512-code +2 -0
@@ -211,6 +211,7 @@ static void raid6_2data_recov_avx512(int#endif } + asmvolatile ("vzeroupper" );kernel_fpu_end (); }
@@ -353,6 +354,7 @@ static void raid6_datap_recov_avx512(int#endif } + asmvolatile ("vzeroupper" );kernel_fpu_end (); }
_
Patches currently in -mm which might be from [email protected] are