Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1218236lqe; Mon, 8 Apr 2024 02:16:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVtWJq7+k5iRrhJkbbrlUpT89v2OsnJ1GqWjjwrzN6gPDwIB3USZiPSYm2Hty4Jg59R6TcHiMSbKC3tQIRrNfAxC80HAgJN6k/8FBqqeA== X-Google-Smtp-Source: AGHT+IFAy6hKyzCE5jDKvMTKqoDL7PaKi0jQK2uSMxxZ2nZIPCrAxvUB34bryWYhmaJAX080zBXU X-Received: by 2002:a2e:bc13:0:b0:2d8:6ca7:2165 with SMTP id b19-20020a2ebc13000000b002d86ca72165mr9410114ljf.46.1712567801321; Mon, 08 Apr 2024 02:16:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712567801; cv=pass; d=google.com; s=arc-20160816; b=mr9BT/ZU9J89ojoevILERAM9HwQaftGTjstP/+KctQUWoloxhpZ1Wk+lXkoXEbLPiE 1RIrGg2tm6+nD9EjVqNDU3nm2stLRFrdnKoZk6uNB4l1E4sL0e40SLa/zoHb7O3NSZbb KTxz4nSDwEvIRVzCkG76Pm4fvnmlzJMOrGqlURScKDBdl4+SfcwZuNBZCvWQvNi/P9Ti L3ivAAnVbhqG+zIxhqMdH/qXljuAxcpG2H0utgtRx1BsQF77mMPl6FpuN5oM2cX5fA3x 4R+zEC1qnp3UKgovAN5VKy0/PD2rP/RdoID6QJhF/+vvxHv7V/slSVVtx7hZUBd1cRsz xaOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=nPyFfFBQRvUn/lSLv41dUDu83F3iOzpaGu3TPie4BR0=; fh=k7ygMJfca9zXISCJmpyFtKEhTe691xx9kQHv8PJUcsE=; b=OVkqu/r5oSDVntrT1h75hEdxk2UhgHeif6a9JbGLEqx3l42nvEEtjypKDk6enz7N61 SPeRVKmLlvSmJYCqbWZbOMf9thAw8knDdMA2tHumM+htin842332ueMSOQYls5BqoUAC bnWl6EgPeGoeMfqKq2mUQaYtEhUIQ+bEvjlj+p7JDagSfE/LUmDkJsuC6DnryDihQPaD /q7Z6WFU05yTJM/UaumFYnz0DMfJ82TQ/RdAK6kQgypNm8dNfCJ5aAbFBYFH9/SNp40g Ax2gT/OS3xtdLUHYKi6OVNWrfxo3jppMQO8w/dQBWEfAxU+K6IRPC3ETmhDG+0NqFn6w H9tA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JF2J+7vK; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-135125-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135125-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dr2-20020a170907720200b00a4df5df65a8si3656170ejc.576.2024.04.08.02.16.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 02:16:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135125-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JF2J+7vK; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-135125-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135125-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0F2181F22DD9 for ; Mon, 8 Apr 2024 09:16:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A8FA4A9B0; Mon, 8 Apr 2024 09:15:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JF2J+7vK" Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A2BD481B1 for ; Mon, 8 Apr 2024 09:15:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712567754; cv=none; b=dP0UETwfHHTSObtmVVCcg1FgvF1htq683vWeA4g82S4E87jW1df7HioiHx/GD51X0dUWgKZTfK0pcOnLtFPq/vfqf7l9xMyhiTKN0gJp/7ccp+bWVSpBHPxmQBzckhOKquA4rSlsb5DQSEaXkXoNvN2V4TWs+kE1XvLQiSv4MEk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712567754; c=relaxed/simple; bh=5fuNG4JtxWpa1aHjVE/qQXcnWqkbcXD6PJKqbjZrods=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sdscIsXASf80U9udsbTBGA+EIBC8zJoz6QSPjGOdruNiIx84OcOKWRU+c2xvaC1HJwvSwHrfmf5etdmdG/f4JitgfLCpqJcCspxpuKyr5AI8iSSkuHadOAq+kJZcTYmcvGBvZcm9X1FHUx6+C1/7WoDIpAHS41+BgFFYdJdDF4k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JF2J+7vK; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a465ddc2c09so305029666b.2 for ; Mon, 08 Apr 2024 02:15:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712567751; x=1713172551; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nPyFfFBQRvUn/lSLv41dUDu83F3iOzpaGu3TPie4BR0=; b=JF2J+7vKaLEdQCI6Cj0inP7Oh+JKB5vHikt44vGRYbCCSmyAPfws9VI/qTPO9q+7Zy T4oGGPwmpWEU3hIynvsJV1GCoLedIRWWj4lORdsmbRCFA6MjBPyQeViTcrKhjrF2VGBp mqZCa/5GtRkpy4fESynNjQX0ED4dOLaYDfrcI0ZhYyvwzwt++AmtcTWqKFCidVu3oavr CwVv5SMOn3+SUPbXxBmH8xNCMvls1875inNvEtx3M3h4gOHv4ZwLura+y8j2H2xFMo0A ugQj5y5fKP55LZuSXeks+b3NTb3Ht/d+FD5KwQlpxzIqwYzhc6yQhUhLWC70o/CEuQIn D8Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712567751; x=1713172551; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nPyFfFBQRvUn/lSLv41dUDu83F3iOzpaGu3TPie4BR0=; b=VlPYYvDEwX1TzDp3qc0nYhJ9+cjISbtaoocG0lN9PDpbiUOCWi+Yqdgt1D9TKukJas hfATBdKxGkPrgVRPR4f3aygv/nyAjhZdpL+qIK1oT9NEsJVoKaNLeeKiV0G+/xDSqWvY zkbGNYsrYUdEAd0Yvf1v1l8H8iNXfOMqWLZXuMS8zfHtJ/4txkJc4LFtCkdR+vQMMweM E6aSLqkvyrTr9WAznp/nr/t9BVNHXH7Jl1Lc7uhtRRkX71gqz9Wyqe6f6IwXAdh03fm6 fRwpQLn15GnwkrBjLbhxfizJKUj0SxkMVA/4NqnRFAV9yM1SEVumQBBjvOTH1AR8PM9C ibJA== X-Forwarded-Encrypted: i=1; AJvYcCWIqIBe6HAkx73aa8NTpabqnMGRAwLmR7X8FpkNAs+0GL4g02vp6Bbc3wPadmAQYjAYZHjZPKJmv2fgoBDVjgkhi0eHslI9nlvFyk7+ X-Gm-Message-State: AOJu0YzFeuODarm84qKItU8ZKWF7LOFqirZpS+jsSKH5wHF7+rC5Ty60 +Eu4jMzSEJjJAqEP7ig9kTThVCNFQ4h1oHx8/jde9VuTj5Mr0YnP X-Received: by 2002:a50:8d5d:0:b0:56e:3f0:a163 with SMTP id t29-20020a508d5d000000b0056e03f0a163mr8217250edt.14.1712567751480; Mon, 08 Apr 2024 02:15:51 -0700 (PDT) Received: from fedora.iskraemeco.si ([193.77.86.250]) by smtp.gmail.com with ESMTPSA id n2-20020a056402434200b0056de7bee45bsm3854201edc.18.2024.04.08.02.15.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 02:15:51 -0700 (PDT) From: Uros Bizjak To: x86@kernel.org, linux-kernel@vger.kernel.org Cc: Uros Bizjak , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Peter Zijlstra Subject: [PATCH 1/3] locking/atomic/x86: Correct the definition of __arch_try_cmpxchg128() Date: Mon, 8 Apr 2024 11:13:56 +0200 Message-ID: <20240408091547.90111-2-ubizjak@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240408091547.90111-1-ubizjak@gmail.com> References: <20240408091547.90111-1-ubizjak@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: "H. Peter Anvin" Cc: Peter Zijlstra --- 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 44b08b53ab32..c1d6cd58f809 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.44.0