Intel-Wired-Lan Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [bug ?] i40e_rx_buffer_flip should not be called for redirected xsk copy mode
@ 2020-07-02  9:17 Li, Rongqing
  2020-07-06  6:13 ` Magnus Karlsson
  0 siblings, 1 reply; 5+ messages in thread
From: Li, Rongqing @ 2020-07-02  9:17 UTC (permalink / raw)
  To: intel-wired-lan

Hi:

i40e_rx_buffer_flip to xsk copy mode can lead to data corruption, like the following flow:

1. first skb is not for xsk, and forwarded to another device or socket queue
2. seconds skb is for xsk, copy data to xsk memory, and page of skb->data is released
3. rx_buff is reusable since only first skb is in it, but i40e_rx_buffer_flip will make that page_offset is set to first skb data
4. then reuse rx buffer, first skb which still is living will be corrupted.

-Li RongQing

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20200702/810347e7/attachment.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-07-16  5:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-02  9:17 [Intel-wired-lan] [bug ?] i40e_rx_buffer_flip should not be called for redirected xsk copy mode Li, Rongqing
2020-07-06  6:13 ` Magnus Karlsson
2020-07-14 11:05   ` [Intel-wired-lan] 答复: " Li, Rongqing
2020-07-16  4:39     ` [Intel-wired-lan] " Magnus Karlsson
2020-07-16  5:33       ` [Intel-wired-lan] 答复: " Li, Rongqing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox