Re: [PATCH] s390/crypto: fix scatterwalk_unmap() callers in AES-GCM

From: Heiko Carstens
Date: Wed May 18 2022 - 07:20:12 EST


On Tue, May 17, 2022 at 04:30:47PM +0200, Jann Horn wrote:
> The argument of scatterwalk_unmap() is supposed to be the void* that was
> returned by the previous scatterwalk_map() call.
> The s390 AES-GCM implementation was instead passing the pointer to the
> struct scatter_walk.
>
> This doesn't actually break anything because scatterwalk_unmap() only uses
> its argument under CONFIG_HIGHMEM and ARCH_HAS_FLUSH_ON_KUNMAP.
>
> Note that I have not tested this patch in any way, not even compile-tested
> it.
>
> Fixes: bf7fa038707c ("s390/crypto: add s390 platform specific aes gcm support.")
> Signed-off-by: Jann Horn <jannh@xxxxxxxxxx>
> ---
> IDK which tree this has to go through - s390 or crypto?
> maybe s390 is better, since they can actually test it?

Applied to s390 tree. Thanks!