summaryrefslogtreecommitdiff
path: root/net/sched
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2019-12-06 06:39:02 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-18 18:08:51 +0300
commit23fbdd5d1e826454a1ce199e716e2015033212c4 (patch)
tree65abe1b24874900c2fe690bb2b67e55433e59d95 /net/sched
parent71bc12b1fb4afedf52d558a2cfb351f68831caeb (diff)
downloadlinux-23fbdd5d1e826454a1ce199e716e2015033212c4.tar.xz
gre: refetch erspan header from skb->data after pskb_may_pull()
[ Upstream commit 0e4940928c26527ce8f97237fef4c8a91cd34207 ] After pskb_may_pull() we should always refetch the header pointers from the skb->data in case it got reallocated. In gre_parse_header(), the erspan header is still fetched from the 'options' pointer which is fetched before pskb_may_pull(). Found this during code review of a KMSAN bug report. Fixes: cb73ee40b1b3 ("net: ip_gre: use erspan key field for tunnel lookup") Cc: Lorenzo Bianconi <lorenzo.bianconi@redhat.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Acked-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com> Acked-by: William Tu <u9012063@gmail.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/sched')
0 files changed, 0 insertions, 0 deletions