diff --git a/net/core/filter.c b/net/core/filter.c index cae56d08a67079bb2fa0335eec6afbd4c91c6ced..65ab4e21c087f6854cd0af2f15571db6db47887f 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -3784,6 +3784,7 @@ static inline int __bpf_skb_change_head(struct sk_buff *skb, u32 head_room, __skb_push(skb, head_room); memset(skb->data, 0, head_room); skb_reset_mac_header(skb); + skb_reset_mac_len(skb); } return ret;