s390/crypto: fix scatterwalk_unmap() callers in AES-GCM
stable inclusion from stable-v5.10.122 commit ee89d7fd49de438e2eb435f9b14c0d514ff5bed6 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5W6OE Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ee89d7fd49de438e2eb435f9b14c0d514ff5bed6 -------------------------------- [ Upstream commit bd52cd5e ] 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. Fixes: bf7fa038 ("s390/crypto: add s390 platform specific aes gcm support.") Signed-off-by: NJann Horn <jannh@google.com> Acked-by: NHarald Freudenberger <freude@linux.ibm.com> Link: https://lore.kernel.org/r/20220517143047.3054498-1-jannh@google.comSigned-off-by: NHeiko Carstens <hca@linux.ibm.com> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Reviewed-by: NWei Li <liwei391@huawei.com>
Showing
想要评论请 注册 或 登录