Re: [PATCH v3 24/34] s390/cpumf: Unpoison STCCTM output buffer

From: Heiko Carstens
Date: Tue Jan 02 2024 - 09:43:49 EST


On Thu, Dec 14, 2023 at 12:24:44AM +0100, Ilya Leoshkevich wrote:
> stcctm() uses the "Q" constraint for dest, therefore KMSAN does not
> understand that it fills multiple doublewords pointed to by dest, not
> just one. This results in false positives.
>
> Unpoison the whole dest manually with kmsan_unpoison_memory().
>
> Reported-by: Alexander Gordeev <agordeev@xxxxxxxxxxxxx>
> Signed-off-by: Ilya Leoshkevich <iii@xxxxxxxxxxxxx>
> ---
> arch/s390/include/asm/cpu_mf.h | 6 ++++++
> 1 file changed, 6 insertions(+)

Acked-by: Heiko Carstens <hca@xxxxxxxxxxxxx>