mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 19:12:36 +00:00
When CONFIG_EXPOLINE_EXTERN is used expoline thunks are generated
from arch/s390/lib/expoline.S and postlinked into every module.
This is also true for external modules. Add expoline.o build to
the modules_prepare target.
Fixes: 1d2ad08480 ("s390/nospec: add an option to use thunk-extern")
Reported-by: Joe Lawrence <[email protected]>
Tested-by: Sumanth Korikkar <[email protected]>
Acked-by: Sumanth Korikkar <[email protected]>
Tested-by: C. Erastus Toe <[email protected]>
Tested-by: Joe Lawrence <[email protected]>
Link: https://lore.kernel.org/r/patch-1.thread-d13b6c.git-a2387a74dc49.your-ad-here.call-01656331067-ext-4899@work.hours
Signed-off-by: Vasily Gorbik <[email protected]>
Signed-off-by: Alexander Gordeev <[email protected]>
13 lines
238 B
ArmAsm
13 lines
238 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#include <asm/nospec-insn.h>
|
|
#include <linux/linkage.h>
|
|
|
|
.macro GEN_ALL_BR_THUNK_EXTERN
|
|
.irp r1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
|
|
GEN_BR_THUNK_EXTERN %r\r1
|
|
.endr
|
|
.endm
|
|
|
|
GEN_ALL_BR_THUNK_EXTERN
|