Re: [PATCH v3] s390/cpacf: Unpoison instruction results

From: Vasily Gorbik

Date: Wed Aug 19 2026 - 18:14:35 EST


On Fri, Aug 14, 2026 at 02:15:25PM +0200, Ilya Leoshkevich wrote:
> Stop KMSAN from complaining about CPACF outputs being uninitialized.
>
> Do not unpoison variable-length parameter blocks: mapping function
> codes (like CPACF_KIMD_SHA_256) to lengths will be ugly. So let the
> callers do this once the need arises.
>
> Also do not touch cpacf_kma(): this wrapper does not handle cc 1 and
> cc2 at the moment and has to be reworked.
>
> Reviewed-by: Harald Freudenberger <freude@xxxxxxxxxxxxx>
> Signed-off-by: Ilya Leoshkevich <iii@xxxxxxxxxxxxx>
> ---
>
> v2: https://lore.kernel.org/all/20260807122132.3592583-1-iii@xxxxxxxxxxxxx/
> v2 -> v3: Drop cpacf_kma() change, add R-b (Harald).
>
> v1: https://lore.kernel.org/linux-s390/20260806190223.3292580-1-iii@xxxxxxxxxxxxx/
> v1 -> v2: Unpoison outputs of more instructions (Sashiko).
>
> arch/s390/include/asm/cpacf.h | 6 ++++++
> 1 file changed, 6 insertions(+)

Applied, thank you!