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: efc2214b6047 ("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
..
2020-05-22 22:02:34 -07:00
2020-05-22 22:02:34 -07:00
2020-07-29 08:38:54 -07:00
2020-07-29 08:38:55 -07:00
2020-07-29 08:38:54 -07:00
2020-05-27 17:03:40 -07:00
2019-11-08 12:02:14 -08:00
2020-07-29 08:38:54 -07:00
2020-08-01 08:44:04 -07:00
2020-05-22 21:44:48 -07:00
2020-10-09 13:14:19 -07:00
2020-10-09 13:14:19 -07:00
2020-05-21 22:10:04 -07:00
2020-05-21 22:10:04 -07:00
2020-08-01 08:44:04 -07:00
2020-08-01 08:44:04 -07:00
2020-08-01 08:44:04 -07:00
2020-08-01 08:44:04 -07:00
2020-10-09 13:14:19 -07:00
2020-10-09 13:14:19 -07:00