]> 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)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 18 May 2022 07:42:16 +0000 (09:42 +0200)
commitfd2c2c4ad0e419bfc1070ab7b919c7dff7d5fd72
treeec428335568f133f8d03bd0f4575537a412746a2
parent2b326f7d26b047b7524093b6598ea2ea9e049621
net: af_key: check encryption module availability consistency

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>
net/key/af_key.c