From nobody Sat Dec 25 11:56:02 2021 X-Original-To: dev-commits-src-branches@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 545A618F37BD; Sat, 25 Dec 2021 11:56:08 +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 4JLj7S4Mx5z4lRW; Sat, 25 Dec 2021 11:56:04 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 165801686F; Sat, 25 Dec 2021 11:56:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BPBu2GH007181; Sat, 25 Dec 2021 11:56:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BPBu2V4007180; Sat, 25 Dec 2021 11:56:02 GMT (envelope-from git) Date: Sat, 25 Dec 2021 11:56:02 GMT Message-Id: <202112251156.1BPBu2V4007180@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 2cd533b0af50 - stable/12 - Fix clang's internal assembler adding unwanted prefix to VIA xstore List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 2cd533b0af50e0bc24ef034ecfe2c679d51426b4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640433365; 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=WwqRPnz45NI0P9K7jrrWLbBlpW2zaWb7TAR6/i2OK+M=; b=kz9nzwpJREcN8stEQsO//YaxKMYCCK9+c1CzXH3luPNMVCoMFicCcDgXnXniAdQeQzypo9 nGUFXvp4g/BMtGMGoUV3pUON0Uq+orjadfijWlLE8kN+Bqh0PW8/QZLcFeE5hso74+gqMB VS9USaAwCEPynIxTNqCSIpq3yClkKWMDYWA0tKeko4ZioyW7Hdixppsv+fQmft/B8gfC7L kIiVZ3fRzMtDoSwT3C4H0vmEBUDppvtCn7VGMzinh8T6qeFpHQfvMAU4Q1yTnCVJ2D79e4 XH+15d0VH+SYNVMqznxnit+cLapyWvyUkwtDfx41ue3j3PjEl4paV5J+GfloQg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640433365; a=rsa-sha256; cv=none; b=DMTDD7nvUCD2XJM5O9JV0JKIiFBnYQW29NoTAXJOpgLwuEj8dfwHeShRN5qOkhUavI3u0R DVG3AuwCgpA/WhT/DwkHPJQ7xvFMZ00XlRRRfcomN06qx9kniG2wCJqaYmjDxOm65HeSxo CdYFBh+4ZSj/7j4A64CT7u7YzSrdqQuCzw65v6XwoqGky5QbX/enPvI03W0Tq41V0P3/4c pWuUY4/mbbsqinCx1i1GpZZad5ab54HqGodTOTHntmm/X42Wm0otMgKvC0HtQj9Icyaq1W 2N+o32KR9dfrrsSIkNBh7dnZs1haktxQhyGj6zK+em53nX2oUTx2h83tiOXjww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=2cd533b0af50e0bc24ef034ecfe2c679d51426b4 commit 2cd533b0af50e0bc24ef034ecfe2c679d51426b4 Author: Dimitry Andric AuthorDate: 2021-10-23 18:19:26 +0000 Commit: Dimitry Andric CommitDate: 2021-12-25 11:51:30 +0000 Fix clang's internal assembler adding unwanted prefix to VIA xstore Merge commit 2d8c18fbbdd1 from llvm git (by Jessica Clarke): [X86] Don't add implicit REP prefix to VIA PadLock xstore Commit 8fa3e8fa1492 added an implicit REP prefix to all VIA PadLock instructions, but GNU as doesn't add one to xstore, only all the others. This resulted in a kernel panic regression in FreeBSD upon updating to LLVM 11 (https://bugs.freebsd.org/259218) which includes the commit in question. This partially reverts that commit. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D112355 MFC after: 3 days (cherry picked from commit 4b9725184e315596aa401cecb230033c6d6d5f29) --- contrib/llvm-project/llvm/lib/Target/X86/X86InstrSystem.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/llvm-project/llvm/lib/Target/X86/X86InstrSystem.td b/contrib/llvm-project/llvm/lib/Target/X86/X86InstrSystem.td index eb8740896e5d..89b6dbdab5dc 100644 --- a/contrib/llvm-project/llvm/lib/Target/X86/X86InstrSystem.td +++ b/contrib/llvm-project/llvm/lib/Target/X86/X86InstrSystem.td @@ -585,7 +585,7 @@ def XRSTORS64 : RI<0xC7, MRM3m, (outs), (ins opaquemem:$dst), //===----------------------------------------------------------------------===// // VIA PadLock crypto instructions let Defs = [RAX, RDI], Uses = [RDX, RDI], SchedRW = [WriteSystem] in - def XSTORE : I<0xa7, MRM_C0, (outs), (ins), "xstore", []>, TB, REP; + def XSTORE : I<0xa7, MRM_C0, (outs), (ins), "xstore", []>, TB; def : InstAlias<"xstorerng", (XSTORE)>;