]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/facility: Disable compile time optimization for decompressor code
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 4 Sep 2024 09:39:24 +0000 (11:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:49 +0000 (15:11 +0200)
commit4a749c14fa2b86f9b4f6457b81ee8889cf61018c
tree2fc69ebc80b7c128ae184df0536c419200bce11c
parent297c326c3e21fb34c2f1964a59e478d782d23888
s390/facility: Disable compile time optimization for decompressor code

[ Upstream commit 0147addc4fb72a39448b8873d8acdf3a0f29aa65 ]

Disable compile time optimizations of test_facility() for the
decompressor. The decompressor should not contain any optimized code
depending on the architecture level set the kernel image is compiled
for to avoid unexpected operation exceptions.

Add a __DECOMPRESSOR check to test_facility() to enforce that
facilities are always checked during runtime for the decompressor.

Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/include/asm/facility.h