Commit da87a376 authored by Thomas Bartschies's avatar Thomas Bartschies Committed by Zheng Zengkai
Browse files

net: af_key: check encryption module availability consistency

stable inclusion
from stable-v5.10.120
commit ac8d5eb26c9edeb139af1e02e1d3743aa2e1fcd7
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5L6BR

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ac8d5eb26c9edeb139af1e02e1d3743aa2e1fcd7



--------------------------------

[ Upstream commit 015c44d7 ]

Since the recent introduction supporting the SM3 and SM4 hash algos for IPsec, the kernel
produces invalid pfkey acquire messages, when these encryption modules are disabled. This
happens because the availability of the algos wasn't checked in all necessary functions.
This patch adds these checks.

Signed-off-by: default avatarThomas Bartschies <thomas.bartschies@cvk.de>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent 7c0412ce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment