linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ix86: relax a pvops stub clobber specification
@ 2017-02-03  8:58 Jan Beulich
  2017-03-01  9:46 ` [tip:x86/asm] x86/entry/32: Relax " tip-bot for Jan Beulich
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2017-02-03  8:58 UTC (permalink / raw)
  To: mingo, tglx, hpa; +Cc: linux-kernel

The code at .Lrestore_nocheck does not make any assumptions on register
values, so all registers can be clobbered on code paths leading there.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
 arch/x86/entry/entry_32.S |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 4.10-rc6/arch/x86/entry/entry_32.S
+++ 4.10-rc6-ix86-relax-clobber/arch/x86/entry/entry_32.S
@@ -585,7 +585,7 @@ ENTRY(iret_exc	)
 	 * will soon execute iret and the tracer was already set to
 	 * the irqstate after the IRET:
 	 */
-	DISABLE_INTERRUPTS(CLBR_EAX)
+	DISABLE_INTERRUPTS(CLBR_ANY)
 	lss	(%esp), %esp			/* switch to espfix segment */
 	jmp	.Lrestore_nocheck
 #endif

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-01  9:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-03  8:58 [PATCH] ix86: relax a pvops stub clobber specification Jan Beulich
2017-03-01  9:46 ` [tip:x86/asm] x86/entry/32: Relax " tip-bot for Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).