"kernel/git@git.tuxist.de:jan.koester/linux.git" did not exist on "704adfb5a9978462cd861f170201ae2b5e3d3a80"
gre: refetch erspan header from skb->data after pskb_may_pull()
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: cb73ee40 ("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>
Loading
Please sign in to comment