Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794048313; b=SgF1d7cZJCVMEcKB0rJVFVHMgEmzVPTt4nU39YJCmxPJSoSueR3e6gkQPWTeIgB1eYkj QD62EHgLwVzaVqoRp4ylxpGhP4SyJiTaqT31YGhqwcjiNKM15nDWX2RTQEscILcnrZ7hS UqXy+PEeA+u22gwii926/ApYsaRZLCx/LdCQro5q6OOk7lFEADhEvW5BKaKmviUphzu3w vXZKKsOz3dRGMeee0mD5i3Xd9bE7N+MUybaBLcx3aUCzFlPBfXWU/GAj5czAfIXNxrKzN W18VsutX0mk/4y22w0GyorV8UF9vbzcwCGJFifeYOtS51uh6Dx8cTFtlQilIoHNyymw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794048313; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=Ro6sPXlIZlKz6pNyKJ1XJTdK78gGqqi5A/08Pvba7/Y=; b=trzonFokhal3gSCfwK2C42/CS5Y1/c3Br5EyBcEYg9b07EF2YiovZhSYFVx0VuFSRodF s/omdi8UqKFhJKXT51n3ZdO/P1XZVJzM7JdXZtKADKTOeS1MShG3BaThkb7WFIyuwdXF4 Gx2MqzXxwx80dW41HKMEHIID8PYCKfcCqOFrNXxxan+tjrmPTLy4zQxOrhHKVEqAYpkKB n3p6FRajujYQxZSZzUCuCMb4J/SDCBoYH46k3TnKR8axidDEmQSSyx9gTBYBCuBtdz312 5fEjhhsCiAA8sWzLJADBk2ZOpL99uQe62sjfElZXX1gMf3S12wkXL4V9koCGzD56olQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=UeM9k0sY; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FC29606A32C for ; Sat, 7 Nov 2026 10:45:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=UeM9k0sY Received: by smtp.kernel.org (Postfix) with ESMTPSA id D76201F0089F; Sat, 7 Nov 2026 10:45:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794048313; bh=Ro6sPXlIZlKz6pNyKJ1XJTdK78gGqqi5A/08Pvba7/Y=; h=From:To:Cc:Subject:Date; b=UeM9k0sYciD5DtmwYyRmxhfpSXpoalBS0h7VmP5vWOMXWTx5mXxAIFr5QrQ/LVS+v du6S7NthEDeWi0U9ewV7d/K4bY1qRl2hpUlA63wdq07T1SAdkP9c+0CqVNdNhQjKKw kUXwSjcvDrhqHhB9UyJo+Yq3ocipoQDrSpSibEeckIrthuK95HbhTex67pngd5l/w7 hfepD5FOGMvO3/cnuRF+JMSDHNQjTsDgAm0zvkx/KS50kZmlb7Y4+SQsS2q4O/w1YU rjL5+8WvkDbPjEmFW7Q5eajXzlV4qiexHX+lWSK0aRQmnJoQdzFv61cBD9Jim+UnMC 25v0PxQoYExDg== From: Sasha Levin To: ebiggers@kernel.org, akpm@linux-foundation.org, hch@lst.de Cc: stable@vger.kernel.org Subject: FAILED: patch "[PATCH] raid6: add missing vzeroupper to AVX-512 code" failed to apply to 6.1-stable tree Date: Sat, 7 Nov 2026 05:45:11 -0500 Message-ID: <20261107054511-failed-6.1-b82cf9e49c1b@kernel.org> X-Mailer: git-send-email 2.53.0 X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.1-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y git checkout FETCH_HEAD git cherry-pick -x b82cf9e49c1be7cf1fd8e1bd806b0cdd25ab8127 # git commit -s git send-email --to '' --in-reply-to '20261107054511-failed-6.1-b82cf9e49c1b@kernel.org' --subject-prefix 'PATCH 6.1.y' 'HEAD^..' Thanks, Sasha ------------------ original commit in Linus's tree ------------------ From b82cf9e49c1be7cf1fd8e1bd806b0cdd25ab8127 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Mon, 31 Aug 2026 14:23:16 -0700 Subject: [PATCH] raid6: add missing vzeroupper to AVX-512 code 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. Link: https://lore.kernel.org/20260831212316.213896-1-ebiggers@kernel.org Fixes: e0a491c12968 ("lib/raid6: Add AVX512 optimized gen_syndrome functions") Fixes: 13c520b2993c ("lib/raid6: Add AVX512 optimized recovery functions") Signed-off-by: Eric Biggers Signed-off-by: Andrew Morton Cc: Christoph Hellwig Cc: --- lib/raid/raid6/x86/avx512.c | 6 ++++++ lib/raid/raid6/x86/recov_avx512.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/lib/raid/raid6/x86/avx512.c b/lib/raid/raid6/x86/avx512.c index e671eb5bde63e..772bfc4af6dfd 100644 --- a/lib/raid/raid6/x86/avx512.c +++ b/lib/raid/raid6/x86/avx512.c @@ -78,6 +78,7 @@ static void raid6_avx5121_gen_syndrome(int disks, size_t bytes, void **ptrs) } asm volatile("sfence" : : : "memory"); + asm volatile("vzeroupper"); kernel_fpu_end(); } @@ -137,6 +138,7 @@ static void raid6_avx5121_xor_syndrome(int disks, int start, int stop, } asm volatile("sfence" : : : "memory"); + asm volatile("vzeroupper"); kernel_fpu_end(); } @@ -208,6 +210,7 @@ static void raid6_avx5122_gen_syndrome(int disks, size_t bytes, void **ptrs) } asm volatile("sfence" : : : "memory"); + asm volatile("vzeroupper"); kernel_fpu_end(); } @@ -292,6 +295,7 @@ static void raid6_avx5122_xor_syndrome(int disks, int start, int stop, } asm volatile("sfence" : : : "memory"); + asm volatile("vzeroupper"); kernel_fpu_end(); } @@ -396,6 +400,7 @@ static void raid6_avx5124_gen_syndrome(int disks, size_t bytes, void **ptrs) } asm volatile("sfence" : : : "memory"); + asm volatile("vzeroupper"); kernel_fpu_end(); } @@ -529,6 +534,7 @@ static void raid6_avx5124_xor_syndrome(int disks, int start, int stop, "m" (q[d+128]), "m" (q[d+192])); } asm volatile("sfence" : : : "memory"); + asm volatile("vzeroupper"); kernel_fpu_end(); } const struct raid6_calls raid6_avx512x4 = { diff --git a/lib/raid/raid6/x86/recov_avx512.c b/lib/raid/raid6/x86/recov_avx512.c index ec72d5a30c01e..299a3f044d616 100644 --- a/lib/raid/raid6/x86/recov_avx512.c +++ b/lib/raid/raid6/x86/recov_avx512.c @@ -211,6 +211,7 @@ static void raid6_2data_recov_avx512(int disks, size_t bytes, int faila, #endif } + asm volatile("vzeroupper"); kernel_fpu_end(); } @@ -353,6 +354,7 @@ static void raid6_datap_recov_avx512(int disks, size_t bytes, int faila, #endif } + asm volatile("vzeroupper"); kernel_fpu_end(); } -- 2.53.0