]> git.baikalelectronics.ru Git - kernel.git/commit
s390/boot: fix use of expolines in the DMA code
authorAlexander Egorenkov <egorenar@linux.ibm.com>
Fri, 16 Jul 2021 20:00:22 +0000 (22:00 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 20 Jul 2021 15:59:40 +0000 (17:59 +0200)
commit72a61cab83326bd4075d012e958f2bad13dd6cd7
treeb66eda85923c2748e4322c930fea814260b07705
parent16c683edddf737555dea1d50b279fc47bb9a1cdf
s390/boot: fix use of expolines in the DMA code

The DMA code section of the decompressor must be compiled with expolines
if Spectre V2 mitigation has been enabled for the decompressed kernel.
This is required because although the decompressor's image contains
the DMA code section, it is handed over to the decompressed kernel for use.

Because the DMA code is already slow w/o expolines, use expolines always
regardless whether the decompressed kernel is using them or not. This
simplifies the DMA code by dropping the conditional compilation of
expolines.

Fixes: 55806bc3164c ("s390: use proper expoline sections for .dma code")
Cc: <stable@vger.kernel.org> # 5.2
Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/boot/text_dma.S