xfrm6: fix a potential use after free in xfrm6_policy.c
authorLi RongQing <roy.qing.li@gmail.com>
Wed, 22 Oct 2014 09:09:53 +0000 (17:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Oct 2014 19:38:48 +0000 (15:38 -0400)
commit789f202326640814c52f82e80cef3584d8254623
tree540a6b000c26f001178b237ccc41010fe8aee59e
parent8751b12cd93cc37337256f650e309b8364d40b35
xfrm6: fix a potential use after free in xfrm6_policy.c

pskb_may_pull() maybe change skb->data and make nh and exthdr pointer
oboslete, so recompute the nd and exthdr

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/xfrm6_policy.c