diff options
author | 2020-08-25 19:27:36 +0200 | |
---|---|---|
committer | 2020-12-09 15:26:58 -0800 | |
commit | 1beb7830d3b285b28f7cde3644d59d2590a47e51 (patch) | |
tree | f96bf44dd20630a55a31d733ea85802d1fb2780e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ixgbe: avoid premature Rx buffer reuse (diff) | |
download | linux-dev-1beb7830d3b285b28f7cde3644d59d2590a47e51.tar.xz linux-dev-1beb7830d3b285b28f7cde3644d59d2590a47e51.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions