]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/entry/64: Add instruction suffix to SYSRET
authorJan Beulich <jbeulich@suse.com>
Mon, 16 Dec 2019 10:40:03 +0000 (11:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2023 06:49:44 +0000 (07:49 +0100)
commit8397ce73e06c987c30ebe4115226e4d9f4df0f16
treef6d30387a6e2b05288c5fd8b52fa10b2ee9d4145
parent88992ac7734ea383dfe5e080f7f00e939ba02565
x86/entry/64: Add instruction suffix to SYSRET

commit b2b1d94cdfd4e906d3936dab2850096a4a0c2017 upstream.

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.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Andy Lutomirski <luto@kernel.org>
Link: https://lkml.kernel.org/r/038a7c35-062b-a285-c6d2-653b56585844@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/entry/entry_64.S