]> git.baikalelectronics.ru Git - kernel.git/commit
net: af_key: check encryption module availability consistency
authorThomas Bartschies <thomas.bartschies@cvk.de>
Wed, 18 May 2022 06:32:18 +0000 (08:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Jun 2022 06:43:36 +0000 (08:43 +0200)
commitc76d626b2ed79a9e811690eca375ffb9177f38f0
treed340205450f03b8f4f2fc9ec85fb7a6d2f3da113
parentfd87c558a4714c7c220230893f334d42b4613031
net: af_key: check encryption module availability consistency

[ Upstream commit fd2c2c4ad0e419bfc1070ab7b919c7dff7d5fd72 ]

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: Thomas Bartschies <thomas.bartschies@cvk.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/key/af_key.c