[PATCH 0/2] s390/fpu: Fix kmsan false-positive report

Aleksei Nikiforov
2025-11-06T16:09:13Z

A false-positive kmsan report is detected when running ping command.

An inline assembly instruction 'vstl' can write varied amount of bytes
depending on value of one of arguments. clang generates kmsan write helper
call depending on inline assembly constraints. Constraints are evaluated
compile-time, but value of argument is known only at runtime.

Due to this, clang cannot generate kmsan write helper call with correct
size and a kmsan helper is implemented and called to correct this and
remove false-positive report.

Aleksei Nikiforov (2):
instrumented.h: Add function instrument_write_after
s390/fpu: Fix kmsan in fpu_vstl function

arch/s390/include/asm/fpu-insn.h | 2 ++
include/linux/instrumented.h | 14 ++++++++++++++
2 files changed, 16 insertions(+)

--
2.43.7