[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180712.165716.1550134204399452005.davem@davemloft.net>
Date: Thu, 12 Jul 2018 16:57:16 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: willemdebruijn.kernel@...il.com
Cc: netdev@...r.kernel.org, willemb@...gle.com
Subject: Re: [PATCH net] packet: reset network header if packet shorter
than ll reserved space
From: Willem de Bruijn <willemdebruijn.kernel@...il.com>
Date: Wed, 11 Jul 2018 12:00:45 -0400
> From: Willem de Bruijn <willemb@...gle.com>
>
> If variable length link layer headers result in a packet shorter
> than dev->hard_header_len, reset the network header offset. Else
> skb->mac_len may exceed skb->len after skb_mac_reset_len.
>
> packet_sendmsg_spkt already has similar logic.
>
> Fixes: b84bbaf7a6c8 ("packet: in packet_snd start writing at link layer allocation")
> Signed-off-by: Willem de Bruijn <willemb@...gle.com>
Applied and queued up for -stable.
Powered by blists - more mailing lists