Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[XFRM]: Algorithm lookup using .compat name

Installing an IPsec SA using old algorithm names (.compat) does not work
if the algorithm is not already loaded. When not using the PF_KEY
interface, algorithms are not preloaded in xfrm_probe_algs() and
installing a IPsec SA fails.

Signed-off-by: Martin Willi <martin@strongswan.org>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Martin Willi and committed by
David S. Miller
b836267a cb4db4c2

+2 -1
+2 -1
net/xfrm/xfrm_algo.c
··· 399 399 if (!probe) 400 400 break; 401 401 402 - status = crypto_has_alg(name, type, mask | CRYPTO_ALG_ASYNC); 402 + status = crypto_has_alg(list[i].name, type, 403 + mask | CRYPTO_ALG_ASYNC); 403 404 if (!status) 404 405 break; 405 406