diff --git a/net/core/filter.c b/net/core/filter.c index 9323d34d34cc..52f4359efbd2 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -3782,6 +3782,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;