]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: check trunc_len in XFRMA_ALG_AUTH_TRUNC
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Tue, 11 Jan 2011 08:04:12 +0000 (08:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Jan 2011 22:03:09 +0000 (14:03 -0800)
commit5b4d9bbd0650935bba91418091d61f93da535150
tree8636aee24a084dc6b530cc8c0e06c283429d037e
parent7e73027d623fb08c8d06f9db3df9eda1e49b40f2
xfrm: check trunc_len in XFRMA_ALG_AUTH_TRUNC

Maximum trunc length is defined by MAX_AH_AUTH_LEN (in bytes)
and need to be checked when this value is set (in bits) by
the user. In ah4.c and ah6.c a BUG_ON() checks this condiftion.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_user.c