From: David Lebrun <david.leb...@uclouvain.be>
Date: Wed, 23 Aug 2017 17:32:00 +0200

> +     case SEG6_IPTUN_MODE_L2ENCAP:
> +             head = sizeof(struct ipv6hdr) + 14;
> +             break;

This 14 is ETH_HLEN.

>  
> +             if (pskb_expand_head(skb, skb->mac_len, 0, GFP_ATOMIC) < 0)
> +                     return -ENOMEM;

But you seem to support arbitrary L2 MAC header sizes.

Please sort this out.

Reply via email to