aboutsummaryrefslogtreecommitdiff
path: root/arch/s390/Kconfig
diff options
context:
space:
mode:
authorGravatar Heiko Carstens <hca@linux.ibm.com> 2022-11-30 10:40:34 +0100
committerGravatar Alexander Gordeev <agordeev@linux.ibm.com> 2022-12-02 18:25:04 +0100
commitdfe843dce775f16e3d15a1bf14e5363bff2321f3 (patch)
treee9c5f13696357f8cbdf88685019e2e9b49743380 /arch/s390/Kconfig
parents390/appldata: remove power management callbacks (diff)
downloadlinux-dfe843dce775f16e3d15a1bf14e5363bff2321f3.tar.gz
linux-dfe843dce775f16e3d15a1bf14e5363bff2321f3.tar.bz2
linux-dfe843dce775f16e3d15a1bf14e5363bff2321f3.zip
s390/checksum: support GENERIC_CSUM, enable it for KASAN
This is the s390 variant of commit d911c67e10b4 ("x86: kasan: kmsan: support CONFIG_GENERIC_CSUM on x86, enable it for KASAN/KMSAN"). Even though most of the s390 specific checksum code is written in C there is still the csum_partial() inline assembly which could prevent KASAN and KMSAN from seeing all memory accesses. Therefore switch to GENERIC_CSUM if KASAN is enabled just like x86. Reviewed-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Diffstat (limited to 'arch/s390/Kconfig')
-rw-r--r--arch/s390/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig
index 0c154e8bc4f5..72d20d3f35cd 100644
--- a/arch/s390/Kconfig
+++ b/arch/s390/Kconfig
@@ -26,6 +26,10 @@ config GENERIC_BUG
config GENERIC_BUG_RELATIVE_POINTERS
def_bool y
+config GENERIC_CSUM
+ bool
+ default y if KASAN
+
config GENERIC_LOCKBREAK
def_bool y if PREEMPTION