[Intel-wired-lan] [PATCH net 2/3] ixgbe: avoid premature Rx buffer reuse

Li,Rongqing lirongqing at baidu.com
Tue Aug 25 09:55:44 UTC 2020



> -----Original Message-----
> From: Björn Töpel [mailto:bjorn.topel at gmail.com]
> Sent: Tuesday, August 25, 2020 5:16 PM
> To: jeffrey.t.kirsher at intel.com; intel-wired-lan at lists.osuosl.org
> Cc: Björn Töpel <bjorn.topel at intel.com>; magnus.karlsson at intel.com;
> magnus.karlsson at gmail.com; netdev at vger.kernel.org;
> maciej.fijalkowski at intel.com; piotr.raczynski at intel.com;
> maciej.machnikowski at intel.com; Li,Rongqing <lirongqing at baidu.com>
> Subject: [PATCH net 2/3] ixgbe: avoid premature Rx buffer reuse
> 
> From: Björn Töpel <bjorn.topel at intel.com>
> 
> The page recycle code, incorrectly, relied on that a page fragment could not be
> freed inside xdp_do_redirect(). This assumption leads to that page fragments
> that are used by the stack/XDP redirect can be reused and overwritten.
> 
> To avoid this, store the page count prior invoking xdp_do_redirect().
> 
> Fixes: 6453073987ba ("ixgbe: add initial support for xdp redirect")
> Signed-off-by: Björn Töpel <bjorn.topel at intel.com>

Reported-and-analyzed-by: Li RongQing <lirongqing at baidu.com>

Thanks

-Li



More information about the Intel-wired-lan mailing list