]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Perform a replay check after return from async codepaths
authorSteffen Klassert <steffen.klassert@secunet.com>
Tue, 20 Sep 2011 23:38:58 +0000 (23:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Sep 2011 19:20:57 +0000 (15:20 -0400)
commitb2bf8a2803595c0357f2fe3fb66499cad9b7605e
tree7373ca2db919a39ea8f2e11416c881121ade0930
parent8e1aacbe1dee618a7bf0fa942b810add53607c99
xfrm: Perform a replay check after return from async codepaths

When asyncronous crypto algorithms are used, there might be many
packets that passed the xfrm replay check, but the replay advance
function is not called yet for these packets. So the replay check
function would accept a replay of all of these packets. Also the
system might crash if there are more packets in async processing
than the size of the anti replay window, because the replay advance
function would try to update the replay window beyond the bounds.

This pach adds a second replay check after resuming from the async
processing to fix these issues.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_input.c