From mboxrd@z Thu Jan 1 00:00:00 1970 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=1794046152; b=NMGcnUM+OjEXGWYhcPrPGKhcXb2M69cgU2iubAsWZQz1BCQ0LdOwFtAj7MhNl1x+c0bo sUUYtg7KqJ37VweS/fC+c5owGFrpOQKldr/TG22xagnywcs5Lx2AuDLuJIsNy5JlcoFn0 dzlCol4Vd7nIp90ZF9RUxsZ9Jj2NozSo3LARGeu6msdLjqBASRxEcQPBIOyF1TjU9y47K g9sh0nlUNIRtNAsQwy4AHKQ5w9kAFOQ6OesQ1RNO9fq2PNDQgTmwzolfsghC/wOK/+IEk MaWBBXkMlO2laJCqZkg8itLGJtEubczfa+BJh0AvskbX/0KFNNWK5d6Wb7Cq29JMLmA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794046152; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=JqA9IWnwxECid47CcBS3eIPMv85q3sh9sVq55uRTYoE=; b=tjSq5B3XWnBOOEdQc+mK+m2ZQHxwugFiwuWmUb9ceENswcaGRsNobeF7HwoBKfSKFNrx BpAK34FbW8dQsAEKNTeus0Dwfcp3+L2O7lGztOos4AH7M7tfaI0l59i6BRC8FqcEiMduR EVFgQsOl+Ktul/GQcSQWx3URwuJdaoP7gKEBDd8OcI+BHLKFsVV1B1faCXYVtBkCQ8vpY hHhHxT/44z1kP8tDCi0HG1Gk1WEKFqMOjT+wAQow4Vs3eHs+y9vBfTMUu9roE3YnnBVmy aHalrvTDMmX5Nep9WZBGS3IZus6mIpJYVcE40Ze9znztb3l/IoAksTRJ+6ZsmXhUQRg== 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=OzchGK5Y; 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 BD167606A326 for ; Sat, 7 Nov 2026 10:09:11 +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=OzchGK5Y Received: by smtp.kernel.org (Postfix) with ESMTPSA id 244D91F0089F; Sat, 7 Nov 2026 10:09:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794046151; bh=JqA9IWnwxECid47CcBS3eIPMv85q3sh9sVq55uRTYoE=; h=From:To:Cc:Subject:Date; b=OzchGK5Y8Rq7Wrm7U//B2+yxGlBRNL40SJJfIaBs0VcQNGJB6TQcAe5kfOuZItQuG I92DK13URYwDQpRcFi4rcyx3MgF7UIYqQMDpSzloSLF2wH69YbLUzbrDRQGTdd9HCI 1acqJTpbzb+ag72K4SrTahBuXq86Vk5IEdlOrRI4HuISPlqx8nva4pO4OFT6DgnSgj V8Evvds4GUyD2pQhMk9xxDZdS9IwHPw2qSevxaQJgTSCqkB+55CZ9GhELKFaz0MTlj RLi9hHuYahdjtwQnBCccUDlpYhk3p7WlhJNTYqplMPUblp0Y7S/sAuqSEGkHC5wEQx 65BiAMy1Su4Ng== 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 AVX2 code" failed to apply to 6.18-stable tree Date: Sat, 7 Nov 2026 05:09:10 -0500 Message-ID: <20261107050910-failed-6.18-24f1241cdb05@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.18-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.18.y git checkout FETCH_HEAD git cherry-pick -x 24f1241cdb056fd630e6710a916e0f7c8c910a70 # git commit -s git send-email --to '' --in-reply-to '20261107050910-failed-6.18-24f1241cdb05@kernel.org' --subject-prefix 'PATCH 6.18.y' 'HEAD^..' Thanks, Sasha ------------------ original commit in Linus's tree ------------------ >From 24f1241cdb056fd630e6710a916e0f7c8c910a70 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Mon, 31 Aug 2026 14:23:08 -0700 Subject: [PATCH] raid6: add missing vzeroupper to AVX2 code Since the AVX2 optimized RAID6 code uses YMM 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/20260831212308.213855-1-ebiggers@kernel.org Fixes: 2c935842bdb4 ("lib/raid6: Add AVX2 optimized gen_syndrome functions") Fixes: 7056741fd9fc ("lib/raid6: Add AVX2 optimized recovery functions") Signed-off-by: Eric Biggers Signed-off-by: Andrew Morton Cc: Christoph Hellwig Cc: --- lib/raid/raid6/x86/avx2.c | 6 ++++++ lib/raid/raid6/x86/recov_avx2.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/lib/raid/raid6/x86/avx2.c b/lib/raid/raid6/x86/avx2.c index 7d829c669ea79..3cc2fe7ac42c5 100644 --- a/lib/raid/raid6/x86/avx2.c +++ b/lib/raid/raid6/x86/avx2.c @@ -67,6 +67,7 @@ static void raid6_avx21_gen_syndrome(int disks, size_t bytes, void **ptrs) } asm volatile("sfence" : : : "memory"); + asm volatile("vzeroupper"); kernel_fpu_end(); } @@ -115,6 +116,7 @@ static void raid6_avx21_xor_syndrome(int disks, int start, int stop, } asm volatile("sfence" : : : "memory"); + asm volatile("vzeroupper"); kernel_fpu_end(); } @@ -175,6 +177,7 @@ static void raid6_avx22_gen_syndrome(int disks, size_t bytes, void **ptrs) } asm volatile("sfence" : : : "memory"); + asm volatile("vzeroupper"); kernel_fpu_end(); } @@ -243,6 +246,7 @@ static void raid6_avx22_xor_syndrome(int disks, int start, int stop, } asm volatile("sfence" : : : "memory"); + asm volatile("vzeroupper"); kernel_fpu_end(); } @@ -334,6 +338,7 @@ static void raid6_avx24_gen_syndrome(int disks, size_t bytes, void **ptrs) } asm volatile("sfence" : : : "memory"); + asm volatile("vzeroupper"); kernel_fpu_end(); } @@ -444,6 +449,7 @@ static void raid6_avx24_xor_syndrome(int disks, int start, int stop, asm volatile("vmovntdq %%ymm14,%0" : "=m" (q[d+96])); } asm volatile("sfence" : : : "memory"); + asm volatile("vzeroupper"); kernel_fpu_end(); } diff --git a/lib/raid/raid6/x86/recov_avx2.c b/lib/raid/raid6/x86/recov_avx2.c index a714a780a2d8f..820871046e305 100644 --- a/lib/raid/raid6/x86/recov_avx2.c +++ b/lib/raid/raid6/x86/recov_avx2.c @@ -176,6 +176,7 @@ static void raid6_2data_recov_avx2(int disks, size_t bytes, int faila, #endif } + asm volatile("vzeroupper"); kernel_fpu_end(); } @@ -293,6 +294,7 @@ static void raid6_datap_recov_avx2(int disks, size_t bytes, int faila, #endif } + asm volatile("vzeroupper"); kernel_fpu_end(); } -- 2.53.0