x86-64/entry: add instruction suffix to SYSRET
Subsystems (2)
PATCH v2 1/1 x86-64/entry: add instruction suffix to SYSRET
ignore_sysret contains an unsuffixed 'sysret' instruction. gas correctly interprets this as sysretl, but leaving it up to gas to guess when there is no register operand that implies a size is bad practice, and upstream gas is likely to warn about this in the future. Use 'sysretl' explicitly. This does not change the assembled output.
---
v2: Use re-written description from Andy.
arch/x86/entry/entry_64.S +1 -1
@@ -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
[tip: x86/asm] x86/entry/64: Add instruction suffix to SYSRET
The following commit has been merged into the x86/asm branch of tip:
The following commit has been merged into the x86/asm branch of tip:
Commit-ID: b2b1d94cdfd4e906d3936dab2850096a4a0c2017 Gitweb: https://git.kernel.org/tip/b2b1d94cdfd4e906d3936dab2850096a4a0c2017 Author: Jan Beulich <[email protected]> AuthorDate: Mon, 16 Dec 2019 11:40:03 +01:00 Committer: Borislav Petkov <[email protected]> CommitterDate: Thu, 09 Jan 2020 12:33:43 +01:00
x86/entry/64: Add instruction suffix to SYSRET
ignore_sysret() contains an unsuffixed SYSRET instruction. gas correctly interprets this as SYSRETL, but leaving it up to gas to guess when there is no register operand that implies a size is bad practice, and upstream gas is likely to warn about this in the future. Use SYSRETL explicitly. This does not change the assembled output.
--- arch/x86/entry/entry_64.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/entry/entry_64.S +1 -1
@@ -1728,7 +1728,7 @@ SYM_CODE_END(nmi) SYM_CODE_START(ignore_sysret) UNWIND_HINT_EMPTY mov $-ENOSYS, %eax - sysret + sysretl SYM_CODE_END(ignore_sysret) #endif