linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] s390/fpu: Fix kmsan false-positive report
@ 2025-11-06 16:08 Aleksei Nikiforov
  2025-11-06 16:08 ` [PATCH 1/2] instrumented.h: Add function instrument_write_after Aleksei Nikiforov
  2025-11-06 16:08 ` [PATCH 2/2] s390/fpu: Fix kmsan in fpu_vstl function Aleksei Nikiforov
  0 siblings, 2 replies; 7+ messages in thread
From: Aleksei Nikiforov @ 2025-11-06 16:08 UTC (permalink / raw)
  To: Alexander Potapenko
  Cc: Marco Elver, Dmitry Vyukov, Andrew Morton, kasan-dev, linux-mm,
	linux-kernel, linux-s390, Heiko Carstens, Vasily Gorbik,
	Alexander Gordeev, Christian Borntraeger, Sven Schnelle,
	Thomas Huth, Juergen Christ, Ilya Leoshkevich, Aleksei Nikiforov

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-11-07 15:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-06 16:08 [PATCH 0/2] s390/fpu: Fix kmsan false-positive report Aleksei Nikiforov
2025-11-06 16:08 ` [PATCH 1/2] instrumented.h: Add function instrument_write_after Aleksei Nikiforov
2025-11-06 16:08 ` [PATCH 2/2] s390/fpu: Fix kmsan in fpu_vstl function Aleksei Nikiforov
2025-11-07 10:26   ` Alexander Potapenko
2025-11-07 10:49     ` Heiko Carstens
2025-11-07 13:32       ` Alexander Potapenko
2025-11-07 15:33         ` Aleksei Nikiforov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox