Thank you RongQing for reporting this. I will take a look at it and produce a patch.
/Magnus On Thu, Jul 2, 2020 at 11:33 AM Li,Rongqing <lirongq...@baidu.com> wrote: > > 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 > > > > _______________________________________________ > Intel-wired-lan mailing list > intel-wired-...@osuosl.org > https://lists.osuosl.org/mailman/listinfo/intel-wired-lan