]> git.baikalelectronics.ru Git - kernel.git/commit
x86/asm/32: Fix ANNOTATE_UNRET_SAFE use on 32-bit
authorJiri Slaby <jslaby@suse.cz>
Wed, 13 Jul 2022 09:50:46 +0000 (11:50 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 13 Jul 2022 10:43:26 +0000 (12:43 +0200)
commitb1639cb798a01762cb938e83b90c9365cb22651a
tree8f3aa3b8a88ee79de8036333077f53246f5dab86
parent4aa13c02807082e767241b21281236ea196d4194
x86/asm/32: Fix ANNOTATE_UNRET_SAFE use on 32-bit

The build on x86_32 currently fails after commit

  da2203420944 (objtool: Update Retpoline validation)

with:

  arch/x86/kernel/../../x86/xen/xen-head.S:35: Error: no such instruction: `annotate_unret_safe'

ANNOTATE_UNRET_SAFE is defined in nospec-branch.h. And head_32.S is
missing this include. Fix this.

Fixes: da2203420944 ("objtool: Update Retpoline validation")
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/63e23f80-033f-f64e-7522-2816debbc367@kernel.org
arch/x86/kernel/head_32.S