Re: [PATCH net v2 3/3] ice: avoid premature Rx buffer reuse

2020-08-25 Thread Björn Töpel
On 2020-08-25 17:49, Jakub Kicinski wrote: On Tue, 25 Aug 2020 14:13:23 +0200 Björn Töpel wrote: From: Björn Töpel 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 s

Re: [PATCH net v2 3/3] ice: avoid premature Rx buffer reuse

2020-08-25 Thread Jakub Kicinski
On Tue, 25 Aug 2020 14:13:23 +0200 Björn Töpel wrote: > From: Björn Töpel > > 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 an

[PATCH net v2 3/3] ice: avoid premature Rx buffer reuse

2020-08-25 Thread Björn Töpel
From: Björn Töpel 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