]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jul 2021 11:30:58 +0000 (13:30 +0200)
commit4a7adafe340d4c3c60ee0d01940da7a6e18cedb5
treecbb264b3fb83bfbd3c5fe877df6c918326cc4644
parentc1e647a249bf6dfab72b40ad859baacab9a7bb58
s390/boot: fix use of expolines in the DMA code

commit 463f36c76fa4ec015c640ff63ccf52e7527abee0 upstream.

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: c0af9cf0d13d ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/boot/text_dma.S