linux/arch/s390/lib
Vasily Gorbik 4bb06b60d9 s390/checksum: Fix csum_partial() without vector facility
Currently csum_partial() calls csum_copy() with copy=false and dst=NULL.
On machines without the vector facility, csum_copy() falls back to
cksm(dst, ...), causing the checksum to be calculated from address zero
instead of the source buffer.

The VX implementation already checksums data loaded from src. Make the
fallback do the same by passing src to cksm().

Fixes: dcd3e1de9d ("s390/checksum: provide csum_partial_copy_nocheck()")
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2026-07-15 17:35:42 +02:00
..
csum-partial.c s390/checksum: Fix csum_partial() without vector facility 2026-07-15 17:35:42 +02:00
delay.c s390: Explicitly include <linux/export.h> 2025-06-17 18:18:02 +02:00
error-inject.c s390: enable HAVE_FUNCTION_ERROR_INJECTION 2020-07-27 10:33:28 +02:00
expoline.S s390/expoline: Make modules use kernel expolines 2024-04-17 13:38:03 +02:00
find.c
Makefile s390/string: Convert memset(16|32|64)() to C 2026-06-10 16:55:21 +02:00
probes.c
spinlock.c s390: Remove superfluous newlines from inline assemblies 2025-09-29 13:52:08 +02:00
string.c s390/memmove: Optimize backward copy case 2026-06-10 16:55:21 +02:00
test_kprobes_asm.S kprobes: add testcases for s390 2021-10-04 09:49:37 +02:00
test_kprobes.c s390/lib: Add missing MODULE_DESCRIPTION() macros 2024-06-28 14:52:30 +02:00
test_kprobes.h kprobes: add testcases for s390 2021-10-04 09:49:37 +02:00
test_modules_helpers.c s390/module: test loading modules with a lot of relocations 2022-01-24 09:10:59 +01:00
test_modules.c s390/lib: Add missing MODULE_DESCRIPTION() macros 2024-06-28 14:52:30 +02:00
test_modules.h s390/module: fix building test_modules_helpers.o with clang 2022-02-06 23:30:37 +01:00
test_unwind.c s390: Remove superfluous newlines from inline assemblies 2025-09-29 13:52:08 +02:00
tishift.c s390/tishift: Convert __ashlti3(), __ashrti3(), __lshrti3() to C 2026-06-10 16:55:22 +02:00
tishift.h s390/tishift: Convert __ashlti3(), __ashrti3(), __lshrti3() to C 2026-06-10 16:55:22 +02:00
uaccess.c KVM: s390: Switch to new gmap 2026-02-04 17:00:10 +01:00