]> git.baikalelectronics.ru Git - kernel.git/commit
ip6_gre: fix a pontential issue in ip6erspan_rcv
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Wed, 20 Dec 2017 01:53:19 +0000 (09:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Dec 2017 18:48:39 +0000 (13:48 -0500)
commitbd06b51a356ac912d4e1bcd31589f8982ba03ba4
treec1b96a3713796fac03b1eafd434ab84375b4078a
parent56e47e862c2cbfd78ac8dea5f0a9ca06e13cfeff
ip6_gre: fix a pontential issue in ip6erspan_rcv

pskb_may_pull() can change skb->data, so we need to load ipv6h/ershdr at
the right place.

Fixes: 318c892820e0 ("ip6_gre: Add ERSPAN native tunnel support")
Cc: William Tu <u9012063@gmail.com>
Acked-by: William Tu <u9012063@gmail.com>
Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_gre.c