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

From: Alexander Potapenko
Date: Wed Dec 20 2023 - 06:05:20 EST


On Thu, Dec 14, 2023 at 12:37 AM Ilya Leoshkevich <iii@xxxxxxxxxxxxx> 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>
Reviewed-by: Alexander Potapenko <glider@xxxxxxxxxx>