]> git.baikalelectronics.ru Git - kernel.git/commit
s390: remove unused expoline to BC instructions
authorVasily Gorbik <gor@linux.ibm.com>
Thu, 24 Feb 2022 15:43:23 +0000 (16:43 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 7 Mar 2022 23:33:01 +0000 (00:33 +0100)
commitf53f71b9f8d817f640ea3329f2b3fac28c26f682
treee573714529488f67c303de288ceed8f164cc2e88
parentcbd59a8bbff406befa80c731c8c27023be2833fe
s390: remove unused expoline to BC instructions

This reverts commit b39f7f80a314 ("s390: extend expoline to BC
instructions"). Expolines to BC instructions were added to be utilized
by commit 36758afe596b ("s390: use expoline thunks in the BPF JIT"). But
corresponding code has been removed by commit ed20d00e804e ("bpf, s390x:
remove ld_abs/ld_ind"). And compiler does not generate such expolines as
well.

Compared to regular expolines, expolines to BC instructions contain
displacement and all possible variations cannot be generated in advance,
making kpatch support more complicated. So, remove those to avoid
future usages.

Acked-by: Heiko Carstens <hca@linux.ibm.com>
Acked-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/nospec-insn.h
arch/s390/kernel/nospec-branch.c