]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: force a dst reference in __xfrm_route_forward()
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 1 Jun 2010 10:04:49 +0000 (10:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jun 2010 09:26:39 +0000 (02:26 -0700)
commit6c2007b2d549d00bd056c72984096eaca804e902
tree47a177d76fa0833a324737e103d5128ad77b231b
parent6a688acca304b20de6a491b0cd7a3cde5f1417bb
xfrm: force a dst reference in __xfrm_route_forward()

Packets going through __xfrm_route_forward() have a not refcounted dst
entry, since we enabled a noref forwarding path.

xfrm_lookup() might incorrectly release this dst entry.

It's a bit late to make invasive changes in xfrm_lookup(), so lets force
a refcount in this path.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_policy.c