Re: [PATCH] net: Check the expect of skb->data at mac header

2020-08-24 Thread David Miller
From: Miaohe Lin Date: Thu, 20 Aug 2020 08:28:22 -0400 > skb_mpls_push() and skb_mpls_pop() expect skb->data at mac header. Check > this assumption or we would get wrong mac_header and network_header. > > Signed-off-by: Miaohe Lin Both openvswitch and act_mpls.c seem to adhere to this constrai

[PATCH] net: Check the expect of skb->data at mac header

2020-08-20 Thread Miaohe Lin
skb_mpls_push() and skb_mpls_pop() expect skb->data at mac header. Check this assumption or we would get wrong mac_header and network_header. Signed-off-by: Miaohe Lin --- net/core/skbuff.c | 8 1 file changed, 8 insertions(+) diff --git a/net/core/skbuff.c b/net/core/skbuff.c index e1