diff options
author | 2021-06-18 20:09:45 +0800 | |
---|---|---|
committer | 2021-06-18 12:26:17 -0700 | |
commit | 961045004b774aae7a244fa0435f8a6a2495c234 (patch) | |
tree | de389328d3a40af609737b41b93ca0c647c30e5c /net/unix/af_unix.c | |
parent | net: dsa: sja1105: properly power down the microcontroller clock for SJA1110 (diff) | |
download | wireguard-linux-961045004b774aae7a244fa0435f8a6a2495c234.tar.xz wireguard-linux-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 <linyunsheng@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions