]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv4/ip_vti.c: VTI fix post-decryption forwarding
authorSaurabh Mohan <saurabh.mohan@vyatta.com>
Thu, 15 Nov 2012 02:08:15 +0000 (18:08 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 20:14:18 +0000 (12:14 -0800)
commitb31143d12a55f2cbb2875abf46239eb7ef417c74
tree0738d70522fe44d57f5a251e57c808d05ce4e63d
parentdc61f8a222dd360e802205bbc908b175848aa5bf
ipv4/ip_vti.c: VTI fix post-decryption forwarding

[ Upstream commit b2942004fb5c9f3304b77e187b8a1977b3626c9b ]

With the latest kernel there are two things that must be done post decryption
 so that the packet are forwarded.
 1. Remove the mark from the packet. This will cause the packet to not match
 the ipsec-policy again. However doing this causes the post-decryption check to
 fail also and the packet will get dropped. (cat /proc/net/xfrm_stat).
 2. Remove the sp association in the skbuff so that no policy check is done on
 the packet for VTI tunnels.

Due to #2 above we must now do a security-policy check in the vti rcv path
prior to resetting the mark in the skbuff.

Signed-off-by: Saurabh Mohan <saurabh.mohan@vyatta.com>
Reported-by: Ruben Herold <ruben@puettmann.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/ip_vti.c