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

Vasily Gorbik <[email protected]>
Newsgroups org.kernel.vger.linux-s390,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
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 <[email protected]>
> Signed-off-by: Ilya Leoshkevich <[email protected]>
> ---
> 
> v2: https://lore.kernel.org/all/[email protected]/
> v2 -> v3: Drop cpacf_kma() change, add R-b (Harald).
> 
> v1: https://lore.kernel.org/linux-s390/[email protected]/
> v1 -> v2: Unpoison outputs of more instructions (Sashiko).
> 
>  arch/s390/include/asm/cpacf.h | 6 ++++++
>  1 file changed, 6 insertions(+)

Applied, thank you!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.