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>
-
mentioned in commit c070688b
-
mentioned in commit 78e397a4
-
mentioned in commit 86f15300
-
mentioned in commit ec23b25e
-
mentioned in commit bafa2363
-
mentioned in commit 0b4d6953
-
mentioned in commit a1639a82
-
mentioned in commit e1e04cc2
-
mentioned in commit 44b3d409
-
mentioned in commit 55ad2309
-
mentioned in commit 2b05bf5d
-
mentioned in commit 0d27567f
-
mentioned in commit eb47e612
-
mentioned in commit d34c3044
Please register or sign in to comment