]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/facility: Disable compile time optimization for decompressor code
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 13 Sep 2024 13:05:37 +0000 (15:05 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 13 Sep 2024 15:28:36 +0000 (17:28 +0200)
commit26d4959681e34a8479b8b7a9ef25ab27550562f6
tree80025509839dec3452bb1f810cfac50e45680519
parenta6e23fb8d3c0e3904da70beaf5d7e840a983c97f
s390/facility: Disable compile time optimization for decompressor code

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: Jason A. Donenfeld <Jason@zx2c4.com>
arch/s390/include/asm/facility.h