linux/drivers/net/ethernet/intel
Björn Töpel 1beb7830d3 ice: avoid premature Rx buffer reuse
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: efc2214b60 ("ice: Add support for XDP")
Reported-and-analyzed-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Tested-by: George Kuruvinakunnel <george.kuruvinakunnel@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2020-12-09 15:26:58 -08:00
..
e1000 e1000: remove unused and incorrect code 2020-10-13 19:44:01 -07:00
e1000e e1000e: Add support for Meteor Lake 2020-09-28 14:42:46 -07:00
fm10k net: intel: Remove in_interrupt() warnings 2020-09-29 14:02:54 -07:00
i40e i40e: avoid premature Rx buffer reuse 2020-12-09 15:26:58 -08:00
iavf Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-10-05 18:40:01 -07:00
ice ice: avoid premature Rx buffer reuse 2020-12-09 15:26:58 -08:00
igb igb: avoid transmit queue timeout in xdp path 2020-12-09 15:26:58 -08:00
igbvf intel-ethernet: clean up W=1 warnings in kdoc 2020-09-25 16:28:59 -07:00
igc igc: Fix returning wrong statistics 2020-11-10 15:03:14 -08:00
ixgb intel: handle unused assignments 2020-09-25 16:28:59 -07:00
ixgbe ixgbe: avoid premature Rx buffer reuse 2020-12-09 15:26:58 -08:00
ixgbevf net: intel: Remove in_interrupt() warnings 2020-09-29 14:02:54 -07:00
e100.c net: e100: Remove in_interrupt() usage and pointless GFP_ATOMIC allocation 2020-09-29 14:02:54 -07:00
Kconfig ice: implement device flash update via devlink 2020-07-28 17:07:06 -07:00
Makefile igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support 2018-10-17 12:14:54 -07:00