[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20181130.172546.127269245503154590.davem@davemloft.net>
Date: Fri, 30 Nov 2018 17:25:46 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: jasowang@...hat.com
Cc: mst@...hat.com, virtualization@...ts.linux-foundation.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net] virtio-net: keep vnet header zeroed after
processing XDP
From: Jason Wang <jasowang@...hat.com>
Date: Thu, 29 Nov 2018 13:53:16 +0800
> We copy vnet header unconditionally in page_to_skb() this is wrong
> since XDP may modify the packet data. So let's keep a zeroed vnet
> header for not confusing the conversion between vnet header and skb
> metadata.
>
> In the future, we should able to detect whether or not the packet was
> modified and keep using the vnet header when packet was not touched.
>
> Fixes: f600b6905015 ("virtio_net: Add XDP support")
> Reported-by: Pavel Popa <pashinho1990@...il.com>
> Signed-off-by: Jason Wang <jasowang@...hat.com>
Applied and queued up for -stable, thanks.
Powered by blists - more mailing lists