[PATCH] IPV6: XFRM: Fix decoding session with preceding extension header(s).
authorYOSHIFUJI Hideaki / \e$B5HF#1QL@\e(B <yoshfuji@linux-ipv6.org>
Wed, 19 Apr 2006 02:14:23 +0000 (11:14 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 24 Apr 2006 16:56:04 +0000 (09:56 -0700)
commitfa39df2ff7f6102f1f37d3cf1f68243534d56253
tree8bf826bec4226a109bed0a1e9df1f9434b91d92d
parent7f43bdca496e120844c74cafde2f5a2cdee4ac4d
[PATCH] IPV6: XFRM: Fix decoding session with preceding extension header(s).

[IPV6] XFRM: Fix decoding session with preceding extension header(s).

We did not correctly decode session with preceding extension
header(s).  This was because we had already pulled preceding
headers, skb->nh.raw + 40 + 1 - skb->data was minus, and
pskb_may_pull() failed.

We now have IP6CB(skb)->nhoff and skb->h.raw, and we can
start parsing / decoding upper layer protocol from current
position.

Tracked down by Noriaki TAKAMIYA <takamiya@po.ntts.co.jp>
and tested by Kazunori Miyazawa <kazunori@miyazawa.org>.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv6/xfrm6_policy.c