[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170928.102510.511287414213184138.davem@davemloft.net>
Date: Thu, 28 Sep 2017 10:25:10 -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: only test po->has_vnet_hdr once in
packet_snd
aFrom: Willem de Bruijn <willemdebruijn.kernel@...il.com>
Date: Tue, 26 Sep 2017 12:20:17 -0400
> From: Willem de Bruijn <willemb@...gle.com>
>
> Packet socket option po->has_vnet_hdr can be updated concurrently with
> other operations if no ring is attached.
>
> Do not test the option twice in packet_snd, as the value may change in
> between calls. A race on setsockopt disable may cause a packet > mtu
> to be sent without having GSO options set.
>
> Fixes: bfd5f4a3d605 ("packet: Add GSO/csum offload support.")
> Signed-off-by: Willem de Bruijn <willemb@...gle.com>
> Reviewed-by: Eric Dumazet <edumazet@...gle.com>
Applied and queued up for -stable.
Powered by blists - more mailing lists