diff --git a/net/core/filter.c b/net/core/filter.c index e4c48941d83e..98b8057e2382 100755 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -2438,6 +2438,7 @@ BPF_CALL_3(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); } bpf_compute_data_end(skb);