All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86-64/entry: add instruction suffix to SYSRET
@ 2019-12-10 10:48 Jan Beulich
  2019-12-10 15:29 ` Andy Lutomirski
  0 siblings, 1 reply; 9+ messages in thread
From: Jan Beulich @ 2019-12-10 10:48 UTC (permalink / raw)
  To: Andy Lutomirski; +Cc: the arch/x86 maintainers, lkml

Omitting suffixes from instructions in AT&T mode is bad practice when
operand size cannot be determined by the assembler from register
operands, and is likely going to be warned about by upstream gas in the
future. Add the missing suffix here.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/arch/x86/entry/entry_64.S
+++ b/arch/x86/entry/entry_64.S
@@ -1728,7 +1728,7 @@ END(nmi)
 SYM_CODE_START(ignore_sysret)
 	UNWIND_HINT_EMPTY
 	mov	$-ENOSYS, %eax
-	sysret
+	sysretl
 SYM_CODE_END(ignore_sysret)
 #endif
 

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

end of thread, other threads:[~2019-12-19  2:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-10 10:48 [PATCH] x86-64/entry: add instruction suffix to SYSRET Jan Beulich
2019-12-10 15:29 ` Andy Lutomirski
2019-12-10 15:40   ` Jan Beulich
2019-12-12 21:43     ` Andy Lutomirski
2019-12-13  9:55       ` Jan Beulich
2019-12-13 17:49         ` Andy Lutomirski
2019-12-16 10:11           ` Jan Beulich
2019-12-16 15:23             ` Brian Gerst
2019-12-19  2:39               ` Andy Lutomirski

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.