Skip to content

Commit 7a9f526

Browse files
Li RongQingdavem330
authored andcommitted
vxlan: fix a free after use
pskb_may_pull maybe change skb->data and make eth pointer oboslete, so eth needs to reload Fixes: 91269e3 ("vxlan: using pskb_may_pull as early as possible") Cc: Eric Dumazet <edumazet@google.com> Signed-off-by: Li RongQing <roy.qing.li@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 389f489 commit 7a9f526

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/net/vxlan.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,6 +1887,7 @@ static netdev_tx_t vxlan_xmit(struct sk_buff *skb, struct net_device *dev)
18871887
msg->icmph.icmp6_type == NDISC_NEIGHBOUR_SOLICITATION)
18881888
return neigh_reduce(dev, skb);
18891889
}
1890+
eth = eth_hdr(skb);
18901891
#endif
18911892
}
18921893

0 commit comments

Comments
 (0)