]> git.karo-electronics.de Git - linux-beck.git/commit
xfrm6: Fix a offset value for network header in _decode_session6
authorHajime Tazaki <tazaki@sfc.wide.ad.jp>
Wed, 4 Feb 2015 14:31:10 +0000 (23:31 +0900)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 6 Feb 2015 06:00:32 +0000 (07:00 +0100)
commitcd3bafc73d11eb51cb2d3691629718431e1768ce
treebad15e2457bb2da9d4e465a74e35b9aca7488f6b
parent59343cd7c4809cf7598789e1cd14563780ae4239
xfrm6: Fix a offset value for network header in _decode_session6

When a network-layer header has multiple IPv6 extension headers, then offset
for mobility header goes wrong. This regression breaks an xfrm policy lookup
for a particular receive packet. Binding update packets of Mobile IPv6
are all discarded without this fix.

Fixes: de3b7a06dfe1 ("xfrm6: Fix transport header offset in _decode_session6.")
Signed-off-by: Hajime Tazaki <tazaki@sfc.wide.ad.jp>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv6/xfrm6_policy.c