From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 178163AE1A4 for ; Tue, 17 Mar 2026 12:05:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773749125; cv=none; b=SEp1/LmlF5YsPaVHFWdPwRhwYacPfcIuEnele2rLwpMo3oDchNhSxjWEEPAJ6D2cXCXX/DhqG/W5iXvGsNxs/ZVIXFWy7m7sPssa2T9mwRFhlYaTuMNOROBifoAcgEq1IVaAn37yCE4ygdYv9Kgzs8TyAyfNrkPBgzapp5+bxpY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773749125; c=relaxed/simple; bh=IKN6qXvprKywQNf0xLsLqPhUmfDvfPlTiDfGoSHRayk=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=W+ogljV355Ua6W6E15K/29pIgmn2ilML1sXN/oRMfWHkVIwElkRY9ZGMDqmlXvV6Yzx8xHenwJ1F6WEW9mNR73ySiHz2Td86UkfzkUMxM4OzG3+47ieUbIJ5rTyRDFUzGgxcvutQP2hb6x7OtkzG6c6Bbdccj+UQQyn8nNFpnsM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=R8lWvtVR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="R8lWvtVR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88723C19425; Tue, 17 Mar 2026 12:05:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1773749125; bh=IKN6qXvprKywQNf0xLsLqPhUmfDvfPlTiDfGoSHRayk=; h=Subject:To:Cc:From:Date:From; b=R8lWvtVRxMOiFmGosCcgbJdwVqVCXo6Xjki/ZNngiQ3nOASf3nhHjdkMi7WoSto6M 0rL4akLv0OMzqEmDTa8Y/b1A/M6FuR6qHgW5eLe2RXDRjJxLnkh/MsFmgj5a6DYCpn YBbR47O3Ty8qwSiAgm7cHxq80faCfCZSYLCMjUI4= Subject: FAILED: patch "[PATCH] s390/xor: Fix xor_xc_2() inline assembly constraints" failed to apply to 5.10-stable tree To: hca@linux.ibm.com,gor@linux.ibm.com Cc: From: Date: Tue, 17 Mar 2026 13:05:01 +0100 Message-ID: <2026031701-slimness-shifter-65c0@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.10-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-5.10.y git checkout FETCH_HEAD git cherry-pick -x f775276edc0c505dc0f782773796c189f31a1123 # git commit -s git send-email --to '' --in-reply-to '2026031701-slimness-shifter-65c0@gregkh' --subject-prefix 'PATCH 5.10.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From f775276edc0c505dc0f782773796c189f31a1123 Mon Sep 17 00:00:00 2001 From: Heiko Carstens Date: Mon, 2 Mar 2026 14:34:58 +0100 Subject: [PATCH] s390/xor: Fix xor_xc_2() inline assembly constraints The inline assembly constraints for xor_xc_2() are incorrect. "bytes", "p1", and "p2" are input operands, while all three of them are modified within the inline assembly. Given that the function consists only of this inline assembly it seems unlikely that this may cause any problems, however fix this in any case. Fixes: 2cfc5f9ce7f5 ("s390/xor: optimized xor routing using the XC instruction") Cc: stable@vger.kernel.org Signed-off-by: Heiko Carstens Reviewed-by: Vasily Gorbik Link: https://lore.kernel.org/r/20260302133500.1560531-2-hca@linux.ibm.com Signed-off-by: Vasily Gorbik diff --git a/arch/s390/lib/xor.c b/arch/s390/lib/xor.c index a4d8b51beb95..81c0235c0466 100644 --- a/arch/s390/lib/xor.c +++ b/arch/s390/lib/xor.c @@ -28,8 +28,8 @@ static void xor_xc_2(unsigned long bytes, unsigned long * __restrict p1, " j 3f\n" "2: xc 0(1,%1),0(%2)\n" "3:" - : : "d" (bytes), "a" (p1), "a" (p2) - : "0", "cc", "memory"); + : "+d" (bytes), "+a" (p1), "+a" (p2) + : : "0", "cc", "memory"); } static void xor_xc_3(unsigned long bytes, unsigned long * __restrict p1,