ipv6: l2tp: fix a potential issue in l2tp_ip6_recv
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Sun, 3 Apr 2016 14:09:24 +0000 (22:09 +0800)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:12:48 +0000 (13:12 +0000)
commitd851aa75b43fb8526957ce255e5f34b4894fa9d5
treeeceb08654fd3bfa052421ee836b418f5bd3abb4d
parent32e2aa62a5dee4b631b9813c86506b3f1b0ce50b
ipv6: l2tp: fix a potential issue in l2tp_ip6_recv

commit be447f305494e019dfc37ea4cdf3b0e4200b4eba upstream.

pskb_may_pull() can change skb->data, so we have to load ptr/optr at the
right place.

Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
net/l2tp/l2tp_ip6.c