From nobody Thu Feb 08 16:36:30 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TW2gM3L32z5B0V8; Thu, 8 Feb 2024 16:36:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TW2gL6YZ1z4Mdm; Thu, 8 Feb 2024 16:36:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707410190; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hrotmTWrPt4RHyrTZL4gE6K6B01yRfzzmIVi9lz9Hjc=; b=P8pdtytO1U1+sKOIxt1MSSbLhroiK+hcx0lL+KtPgjBJjTNpsocVEaC7e7xnnB1iR1SuVc aNir84DMb2Blakfoz+8sA6lBxIN+QTQbkRW4KgwDEb4ztLwNNjMOOTv/OwtSzSM58tN/7Q yVVYbHMRZaXRcSjjcMoYN+TYAqlfki2vp9E9KseP98qqCIzJoH2B9zx1oTk1qO6KKONjg5 OQVuTuFl00xS5aVbASb8c6bTFyvTeZg0lJH4trVH4ZdXfHOAVqfRoLsp1dY1hzb2d0BFdu 6ELlOVQGlYMFTGMwJuQvz7T9pn0XaZyglK5Fp6KQTGUGbvC4fvg4xQANyoUPGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707410190; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hrotmTWrPt4RHyrTZL4gE6K6B01yRfzzmIVi9lz9Hjc=; b=HtFtLJl2YCkkbcZ/Qi4dcugYp4CvGbgIBA1d0GClhEqzD1c1tUpy66T9KWSzfdmTOFCB/o qEbdcmM4PEzThrv1vjaI6zS5daCL/nlS9vBn3JNb1J2JoXHuTli7tOzURTlnqhBmjWs0i/ PG1mZ4vs+Pvmz0VMQr1eydX3k7oi/IvP50hIVipwf/ZuKzPQoNF5tHiEvrr6K8suPa7Vp2 rfy1NgvJn8XuexyohBHmtLPKCZrj5Z+R0yfCOZGeul05AqluwIKzIdGf6trcTdFt1MAVdG TL81sTS69/AuJanPmaTGhmJE6hu0hmEgJqtAbIq0tpnk9xx4r0K+cvbH02qfTg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707410190; a=rsa-sha256; cv=none; b=Fe7/e+IGqRohng1tqF5NrOAQC1fWhvf5jVYtTZYRfo1QmgepuxLsRPfoFMW7kVW71SDHTe VMAjcKb4aeOdF3jygRfP4xqU6/fXdV48c+yxKCOqFZ2q/6M5T/G7TsFLa3A1gF0Fk0k+fF F0R8RLD8NBGtg4+1sfraVeZhrMYh8lYqie4oIQRP2+gmpUFNDds8E54YkmAwPxDIlRtouh xBXpvMHbcoOBPTeZEXaHlksOHGgxOrRZYkZ1oPy489PA8nbueqKFo8ImyzpuSDDFTDTQCk IMeXzq09t9zTQwXOfDqX4/RtOxJN/1+8Hmvzd3s61bt7VbFCQFpIa/JIh5w3Iw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TW2gL586XzwtS; Thu, 8 Feb 2024 16:36:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 418GaUcp020631; Thu, 8 Feb 2024 16:36:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 418GaUfa020628; Thu, 8 Feb 2024 16:36:30 GMT (envelope-from git) Date: Thu, 8 Feb 2024 16:36:30 GMT Message-Id: <202402081636.418GaUfa020628@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: b5ed3ef802eb - main - ck/aarch64: Specify output operands for ck_pr_md_store_* List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b5ed3ef802ebfed6f08008bff602834b18f83a11 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=b5ed3ef802ebfed6f08008bff602834b18f83a11 commit b5ed3ef802ebfed6f08008bff602834b18f83a11 Author: Mark Johnston AuthorDate: 2024-02-08 15:53:10 +0000 Commit: Mark Johnston CommitDate: 2024-02-08 16:35:03 +0000 ck/aarch64: Specify output operands for ck_pr_md_store_* This is a backport of upstream commit d1e9f03b89: ck_pr/aarch64: Specify output operands for ck_pr_md_store_* As in commit 2f9acab, we want to specify output operand widths so that MSAN compiler instrumentation correctly updates the shadow map. In particular, LLVM's implementation depends on having type information for output operands, even when that's not otherwise necessary. Without it, KMSAN in FreeBSD generates false positives on aarch64. Reviewed by: cognet MFC after: 2 weeks Sponsored by: Klara, Inc. Sponsored by: Juniper Networks, Inc. --- sys/contrib/ck/include/gcc/aarch64/ck_pr.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/contrib/ck/include/gcc/aarch64/ck_pr.h b/sys/contrib/ck/include/gcc/aarch64/ck_pr.h index 0a473072fffd..3d269a5066c2 100644 --- a/sys/contrib/ck/include/gcc/aarch64/ck_pr.h +++ b/sys/contrib/ck/include/gcc/aarch64/ck_pr.h @@ -137,8 +137,8 @@ CK_PR_LOAD_S_64(double, double, "ldr") CK_CC_INLINE static void \ ck_pr_md_store_##S(M *target, T v) \ { \ - __asm__ __volatile__(I " %w1, [%0]" \ - : \ + __asm__ __volatile__(I " %w2, [%1]" \ + : "=m" (*(T *)target) \ : "r" (target), \ "r" (v) \ : "memory"); \ @@ -148,8 +148,8 @@ CK_PR_LOAD_S_64(double, double, "ldr") CK_CC_INLINE static void \ ck_pr_md_store_##S(M *target, T v) \ { \ - __asm__ __volatile__(I " %1, [%0]" \ - : \ + __asm__ __volatile__(I " %2, [%1]" \ + : "=m" (*(T *)target) \ : "r" (target), \ "r" (v) \ : "memory"); \