diff options
| author | Yunsheng Lin <[email protected]> | 2021-06-18 12:09:45 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-06-18 19:26:17 +0000 |
| commit | 961045004b774aae7a244fa0435f8a6a2495c234 (patch) | |
| tree | de389328d3a40af609737b41b93ca0c647c30e5c /net/unix/af_unix.c | |
| parent | net: dsa: sja1105: properly power down the microcontroller clock for SJA1110 (diff) | |
| download | kernel-961045004b774aae7a244fa0435f8a6a2495c234.tar.gz kernel-961045004b774aae7a244fa0435f8a6a2495c234.zip | |
net: hns3: fix reuse conflict of the rx page
In the current rx page reuse handling process, the rx page buffer may
have conflict between driver and stack in high-pressure scenario.
To fix this problem, we need to check whether the page is only owned
by driver at the begin and at the end of a page to make sure there is
no reuse conflict between driver and stack when desc_cb->page_offset
is rollbacked to zero or increased.
Fixes: fa7711b888f2 ("net: hns3: optimize the rx page reuse handling process")
Signed-off-by: Yunsheng Lin <[email protected]>
Signed-off-by: Guangbin Huang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
