]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm6: Fix the nexthdr offset in _decode_session6.
authorSteffen Klassert <steffen.klassert@secunet.com>
Mon, 8 Dec 2014 06:56:18 +0000 (07:56 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 8 Dec 2014 06:56:18 +0000 (07:56 +0100)
commited7589692d7ed57fc49ee1e4559ef237511e83a0
tree9469cc24b2824cea15c6a61884087359f22df6fc
parent465e5496ad3d4f6c0b0c472bcd6a384c451f8136
xfrm6: Fix the nexthdr offset in _decode_session6.

xfrm_decode_session() was originally designed for the
usage in the receive path where the correct nexthdr offset
is stored in IP6CB(skb)->nhoff. Over time this function
spread to code that is used in the output path (netfilter,
vti) where IP6CB(skb)->nhoff is not set. As a result, we
get a wrong nexthdr and the upper layer flow informations
are wrong. This can leed to incorrect policy lookups.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv6/xfrm6_policy.c