]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/nospec: Refactor UNTRAIN_RET[_*]
authorJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 5 Sep 2023 05:05:03 +0000 (22:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:35:50 +0000 (16:35 +0200)
commit93eae88e34f65652a4b7c142fbec05ae0ae458f7
treee53672f090e718cb59e92cae2c8699f23868749d
parent820a3626f3d7ae2656098052f902ea01e2b6aa49
x86/nospec: Refactor UNTRAIN_RET[_*]

Commit e8efc0800b8b5045ba8c0d1256bfbb47e92e192a upstream.

Factor out the UNTRAIN_RET[_*] common bits into a helper macro.

Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/f06d45489778bd49623297af2a983eea09067a74.1693889988.git.jpoimboe@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/nospec-branch.h