]> git.baikalelectronics.ru Git - kernel.git/commit
x86/speculation: Add RETPOLINE_AMD support to the inline asm CALL_NOSPEC variant
authorZhenzhong Duan <zhenzhong.duan@oracle.com>
Tue, 18 Sep 2018 14:45:00 +0000 (07:45 -0700)
committerBorislav Petkov <bp@suse.de>
Sun, 23 Sep 2018 13:25:28 +0000 (15:25 +0200)
commitaf9296abc3a969ce12bc0695f91738ddc0111715
tree9b8e6abde3290cfa9de9a499e192846c81311d16
parent7b48916c3c4a8a8505b4276f6f30f5adedb58896
x86/speculation: Add RETPOLINE_AMD support to the inline asm CALL_NOSPEC variant

..so that they match their asm counterpart.

Add the missing ANNOTATE_NOSPEC_ALTERNATIVE in CALL_NOSPEC, while at it.

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: David Woodhouse <dwmw@amazon.co.uk>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Wang YanQing <udknight@gmail.com>
Cc: dhaval.giani@oracle.com
Cc: srinivas.eeda@oracle.com
Link: http://lkml.kernel.org/r/c3975665-173e-4d70-8dee-06c926ac26ee@default
arch/x86/include/asm/nospec-branch.h