From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 8B68136BCC9 for ; Wed, 18 Mar 2026 07:44:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773819863; cv=none; b=NkHOLAkZdap5OKros8daiVHlinn4MprXGQITon5VSAaX60NDTr/tJlmiEcS1CSPkS/5LO75HEC/NwNb6oGLTCdW/LhnFzonwa9vktGeU+4Vdqq9aLYfCtQ/KIsNZqosEvVcMiCWhzcdw7IWsG8vkwhgBLrRhuFAeg86NaO1T6GE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773819863; c=relaxed/simple; bh=Wh/awYJY4o7LXd9voQBSO/SliYAJ8/1ksA9oufAIkww=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=q80RgsQ4FR+0qf+Yhc7zll0An00VpQBCWWuaqn4yhg5EKM+4gqoz0rysnRtFSIccj2cVaPwuY9QzpviXWQKk+pleKJoaRIxbntQTFGA5JZDribqr2WBfKGgoFY2p7UOjxcUpJGDipGzDIzkqpmWEBw3epshaJq4BNC9Dv162MAY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=Ym9eNiLg; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="Ym9eNiLg" Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62I2AMad3795199 for ; Wed, 18 Mar 2026 07:44:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=pp1; bh=xI7SGXsw9QZI5296v 6pNTkZSneNQYV8HkmK9nmgGHw4=; b=Ym9eNiLgSJ6af6JJbcew/HJr7XI0+M4iy slMUW4HFsq+7F35PV/owf9Za6erK8VSAPzoFeWqQKMeNPK/2nOh28X/WEeLCoG6K Esr/4rKc3ViGc0/gh53vgExlV72NSdTcKBfsVD3/3yJwwbhbuGdrinIZtWUdZy/y nWrO+oDKmSviDAe3zNSbBfulYYFAFFKU2QsM+ZcWZ0DKxa0506H4zhPQCCif5pcJ SfhPau882uYjTudUKmV6Yt+JY0r/TMwsd1td/vnNTBF6T5aq/kTYMZLf66HMd70y GLcvpXnnoH6QlThlXYIaTEH9P1gWxvOuxtp1+fsB0AX9+Z+A6eedw== Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4cvx3d06ed-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 18 Mar 2026 07:44:20 +0000 (GMT) Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 62I5e9La032346 for ; Wed, 18 Mar 2026 07:44:19 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 4cwm7jvsvn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 18 Mar 2026 07:44:19 +0000 Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 62I7iF5u45220300 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 18 Mar 2026 07:44:15 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8728B2004B; Wed, 18 Mar 2026 07:44:15 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 535C120040; Wed, 18 Mar 2026 07:44:15 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.87.85.9]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 18 Mar 2026 07:44:15 +0000 (GMT) From: Heiko Carstens To: stable@vger.kernel.org Cc: Heiko Carstens , Vasily Gorbik Subject: [PATCH 6.12.y] s390/xor: Fix xor_xc_2() inline assembly constraints Date: Wed, 18 Mar 2026 08:44:13 +0100 Message-ID: <20260318074413.3713323-1-hca@linux.ibm.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <2026031758-thee-blasphemy-842e@gregkh> References: <2026031758-thee-blasphemy-842e@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Authority-Analysis: v=2.4 cv=arO/yCZV c=1 sm=1 tr=0 ts=69ba57d4 cx=c_pps a=AfN7/Ok6k8XGzOShvHwTGQ==:117 a=AfN7/Ok6k8XGzOShvHwTGQ==:17 a=Yq5XynenixoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=V8glGbnc2Ofi9Qvn3v5h:22 a=VwQbUJbxAAAA:8 a=VnNF1IyMAAAA:8 a=aKZOg4wb7pFh2cTURR0A:9 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzE4MDA2NCBTYWx0ZWRfX7sAFJnMkTTCB AWQxzH7sEd1bcP+IrcrD9//fLWUUDiQSBznZrp9xgw3Gq/f/G+sP60H9BSCxDjH4Lh4VIPxaUd1 tQle8XBR2OhU2qLXcmgHYsAQ0wSMYWXuy6tPx1oBvhcsfOdOdhNwbWkFDouIyFKzuVReh7Gu5GL nQIMDu+wzqr7KaSluOmpNfZjaNQR3syyOOwTNvQVh8aB5P3OdzVGtr1CaKOrf4ZUB3kLPccOFOG eC+4NRAf1aoGW03cI54g2zhmqiZosgReTLp2yuybRXk6MHEaf95EPKzOM35PDDH+Ij9fmhcXYb0 sBIykQcGi8pyWCYR9Pi4PRFF/J6EJ7NoD9Erf1Ndd7NT3yCWQuhKK7DdT5MhUarfnno2OmUNuBS NOga9r70MtuUX4hO8c9sjloFuz2/EONLtrn/ewbP2E2gZoze8y3Yu8cj073dx8u6iOtQhnDsAXH K/frjtBag17Uj8ViJzw== X-Proofpoint-GUID: j3ZN6BetUrJQZLoJhDD54OBsCaeB-8V4 X-Proofpoint-ORIG-GUID: j3ZN6BetUrJQZLoJhDD54OBsCaeB-8V4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-17_05,2026-03-17_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 lowpriorityscore=0 impostorscore=0 adultscore=0 bulkscore=0 suspectscore=0 malwarescore=0 clxscore=1015 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603180064 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 (cherry picked from commit f775276edc0c505dc0f782773796c189f31a1123) --- arch/s390/lib/xor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/s390/lib/xor.c b/arch/s390/lib/xor.c index fb924a8041dc..76d7ca64d231 100644 --- a/arch/s390/lib/xor.c +++ b/arch/s390/lib/xor.c @@ -29,8 +29,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:\n" - : : "d" (bytes), "a" (p1), "a" (p2) - : "0", "1", "cc", "memory"); + : "+d" (bytes), "+a" (p1), "+a" (p2) + : : "0", "1", "cc", "memory"); } static void xor_xc_3(unsigned long bytes, unsigned long * __restrict p1, -- 2.51.0