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 44192197A68; Thu, 6 Jun 2024 14:13:37 +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=1717683217; cv=none; b=Xpy0XQ/fTR9Gi8t/2UJ/XAZesdIrc8Hom195Vczgd0wjqp96YZA3snMu5TAxSHB04/ucKdBqZyXRF+Ad1kiQrUxCIHXwulf+CTv5QltQh+oitFljnRiq8FiQoQ08Y+5+uKPDiHYF02+2uV98Af0EI7MHlhsRUexSshUfu7nkt34= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717683217; c=relaxed/simple; bh=I+1eRgONyWmhFjkv/++x8J4Me5vRr+pVZ2leFgDUo90=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qmznZo8+ddEZRxsywkWSF8dP+aitnjumCCKCmZgYvfH89rCTNlfJDXAvEs2aGhRfZcb4YeRX5LdLZG9k9Evmdi91wf08APEFtgzSCX/yVLA5ubkMQJMOv7op+hMqcjPkb3Wtfir5ZmIddeXniqfWyxmsXzm+4Bvj4MZbIFmYDMA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ns4RrMWR; 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="ns4RrMWR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 215E4C2BD10; Thu, 6 Jun 2024 14:13:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717683217; bh=I+1eRgONyWmhFjkv/++x8J4Me5vRr+pVZ2leFgDUo90=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ns4RrMWR5tycv90Pmm+l2qOJLRiCZwSPVBpPHcTzkZUfr2DBJSbW2lBzOvHT1gDop 3+5WCQJU0ddJMn2wSVO5UjuTh2gyL5DunzcSSWhZoVnbuftLh3sB7kl7vFpjPlyLbb Q3HrpX9CSAHIwAauzoA81geFh7BIeD01ipLn8BCg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Uros Bizjak , Ingo Molnar , Linus Torvalds , "H. Peter Anvin" , Sasha Levin Subject: [PATCH 6.6 159/744] locking/atomic/x86: Correct the definition of __arch_try_cmpxchg128() Date: Thu, 6 Jun 2024 15:57:11 +0200 Message-ID: <20240606131737.525713799@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240606131732.440653204@linuxfoundation.org> References: <20240606131732.440653204@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Uros Bizjak [ Upstream commit 929ad065ba2967be238dfdc0895b79fda62c7f16 ] Correct the definition of __arch_try_cmpxchg128(), introduced by: b23e139d0b66 ("arch: Introduce arch_{,try_}_cmpxchg128{,_local}()") Fixes: b23e139d0b66 ("arch: Introduce arch_{,try_}_cmpxchg128{,_local}()") Signed-off-by: Uros Bizjak Signed-off-by: Ingo Molnar Cc: Linus Torvalds Cc: "H. Peter Anvin" Link: https://lore.kernel.org/r/20240408091547.90111-2-ubizjak@gmail.com Signed-off-by: Sasha Levin --- arch/x86/include/asm/cmpxchg_64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/cmpxchg_64.h b/arch/x86/include/asm/cmpxchg_64.h index 44b08b53ab32f..c1d6cd58f8094 100644 --- a/arch/x86/include/asm/cmpxchg_64.h +++ b/arch/x86/include/asm/cmpxchg_64.h @@ -62,7 +62,7 @@ static __always_inline u128 arch_cmpxchg128_local(volatile u128 *ptr, u128 old, asm volatile(_lock "cmpxchg16b %[ptr]" \ CC_SET(e) \ : CC_OUT(e) (ret), \ - [ptr] "+m" (*ptr), \ + [ptr] "+m" (*(_ptr)), \ "+a" (o.low), "+d" (o.high) \ : "b" (n.low), "c" (n.high) \ : "memory"); \ -- 2.43.0