]> git.baikalelectronics.ru Git - kernel.git/commit
ipsec: Remove obsolete MAX_AH_AUTH_LEN
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 18 Sep 2014 08:38:18 +0000 (16:38 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 18 Sep 2014 08:54:36 +0000 (10:54 +0200)
commit8d657794fa3507f7d6ec8d97d313393b61e8f7b8
treef35811bbe3d315a6e966c3bdd25abcf4e45c7352
parente64cce8266c70f9d71352c79e687d97f512335e9
ipsec: Remove obsolete MAX_AH_AUTH_LEN

While tracking down the MAX_AH_AUTH_LEN crash in an old kernel
I thought that this limit was rather arbitrary and we should
just get rid of it.

In fact it seems that we've already done all the work needed
to remove it apart from actually removing it.  This limit was
there in order to limit stack usage.  Since we've already
switched over to allocating scratch space using kmalloc, there
is no longer any need to limit the authentication length.

This patch kills all references to it, including the BUG_ONs
that led me here.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
include/net/ah.h
net/ipv4/ah4.c
net/ipv6/ah6.c
net/xfrm/xfrm_user.c