All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@kernel.org>
To: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>, stable@vger.kernel.org
Cc: Dave Hansen <dave.hansen@linux.intel.com>,
	Alyssa Milburn <alyssa.milburn@intel.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	Peter Zijlstra <peterz@infradead.org>
Subject: Re: [PATCH 6.1.y 1/6] x86/bugs: Add asm helpers for executing VERW
Date: Tue, 27 Feb 2024 09:19:13 +0100	[thread overview]
Message-ID: <5a289118-f6d2-4471-b833-1565fd51cbdd@kernel.org> (raw)
In-Reply-To: <20240226-delay-verw-backport-6-1-y-v1-1-b3a2c5b9b0cb@linux.intel.com>

On 27. 02. 24, 9:00, Pawan Gupta wrote:
> commit baf8361e54550a48a7087b603313ad013cc13386 upstream.
...
> --- a/arch/x86/include/asm/nospec-branch.h
> +++ b/arch/x86/include/asm/nospec-branch.h
> @@ -194,6 +194,17 @@
>   #endif
>   .endm
>   
> +/*
> + * Macro to execute VERW instruction that mitigate transient data sampling
> + * attacks such as MDS. On affected systems a microcode update overloaded VERW
> + * instruction to also clear the CPU buffers. VERW clobbers CFLAGS.ZF.
> + *
> + * 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

The same here. Except 6.1 (I didn't check stable-6.1) does not have:
commit 270a69c4485d7d07516d058bcc0473c90ee22185
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Wed Feb 8 18:10:52 2023 +0100

     x86/alternative: Support relocations in alternatives

yet. You likely need to backport that too.

regards,
-- 
js
suse labs


  reply	other threads:[~2024-02-27  8:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-27  8:00 [PATCH 6.1.y 0/6] Delay VERW - 6.1.y backport Pawan Gupta
2024-02-27  8:00 ` [PATCH 6.1.y 1/6] x86/bugs: Add asm helpers for executing VERW Pawan Gupta
2024-02-27  8:19   ` Jiri Slaby [this message]
2024-02-27  8:40     ` Pawan Gupta
2024-02-27  8:00 ` [PATCH 6.1.y 2/6] x86/entry_64: Add VERW just before userspace transition Pawan Gupta
2024-02-27  8:00 ` [PATCH 6.1.y 3/6] x86/entry_32: " Pawan Gupta
2024-02-27  8:00 ` [PATCH 6.1.y 4/6] x86/bugs: Use ALTERNATIVE() instead of mds_user_clear static key Pawan Gupta
2024-02-27  8:00 ` [PATCH 6.1.y 5/6] KVM/VMX: Use BT+JNC, i.e. EFLAGS.CF to select VMRESUME vs. VMLAUNCH Pawan Gupta
2024-02-27  8:00 ` [PATCH 6.1.y 6/6] KVM/VMX: Move VERW closer to VMentry for MDS mitigation Pawan Gupta
2024-02-27  8:21 ` [PATCH 6.1.y 0/6] Delay VERW - 6.1.y backport Jiri Slaby
2024-02-27  8:56   ` Pawan Gupta
2024-02-27  9:09     ` Greg KH
2024-02-29  9:53       ` Pawan Gupta

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5a289118-f6d2-4471-b833-1565fd51cbdd@kernel.org \
    --to=jirislaby@kernel.org \
    --cc=alyssa.milburn@intel.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=dave.hansen@linux.intel.com \
    --cc=pawan.kumar.gupta@linux.intel.com \
    --cc=peterz@infradead.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.