mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [tip: x86/apic] Revert "x86/bugs: Use fixed addressing for VERW operand"
@ 2024-03-12 15:39 tip-bot2 for Dave Hansen
  0 siblings, 0 replies; only message in thread
From: tip-bot2 for Dave Hansen @ 2024-03-12 15:39 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Dave Hansen, x86, linux-kernel

The following commit has been merged into the x86/apic branch of tip:

Commit-ID:     532a0c57d7ff75e8f07d4e25cba4184989e2a241
Gitweb:        https://git.kernel.org/tip/532a0c57d7ff75e8f07d4e25cba4184989e2a241
Author:        Dave Hansen <dave.hansen@linux.intel.com>
AuthorDate:    Tue, 12 Mar 2024 07:27:57 -07:00
Committer:     Dave Hansen <dave.hansen@linux.intel.com>
CommitterDate: Tue, 12 Mar 2024 08:33:51 -07:00

Revert "x86/bugs: Use fixed addressing for VERW operand"

This was reverts commit 8009479ee919b9a91674f48050ccbff64eafedaa.

It was originally in x86/urgent, but was deemed wrong so got zapped.
But in the meantime, x86/urgent had been merged into x86/apic to
resolve a conflict.  I didn't notice the merge so didn't zap it
from x86/apic and it managed to make it up with the x86/apic
material.

The reverted commit is known to cause some KASAN problems.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
---
 arch/x86/include/asm/nospec-branch.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/nospec-branch.h b/arch/x86/include/asm/nospec-branch.h
index ab19c7f..2aa52ca 100644
--- a/arch/x86/include/asm/nospec-branch.h
+++ b/arch/x86/include/asm/nospec-branch.h
@@ -323,7 +323,7 @@
  * Note: Only the memory operand variant of VERW clears the CPU buffers.
  */
 .macro CLEAR_CPU_BUFFERS
-	ALTERNATIVE "", __stringify(verw mds_verw_sel), X86_FEATURE_CLEAR_CPU_BUF
+	ALTERNATIVE "", __stringify(verw _ASM_RIP(mds_verw_sel)), X86_FEATURE_CLEAR_CPU_BUF
 .endm
 
 #else /* __ASSEMBLY__ */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-03-12 15:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-12 15:39 [tip: x86/apic] Revert "x86/bugs: Use fixed addressing for VERW operand" tip-bot2 for Dave Hansen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®