diff options
| author | Jian Shen <[email protected]> | 2021-03-29 11:57:46 +0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-03-29 13:21:00 -0700 |
| commit | 64ff58fa3bfcf26bc893ea425a0553b561ca5298 (patch) | |
| tree | d5fdab67efce2d1e2d8b5ea5431935c34b3b1598 /tools/perf/scripts/python/netdev-times.py | |
| parent | 989f7178b06666ec23ada614b2047c21d85b2a0a (diff) | |
net: hns3: fix use-after-free issue for hclge_add_fd_entry_common()
When new rule state is TO_ADD or ACTIVE, and there is already a
rule with same location in the fd_rule_list, the new rule will
be freed after modifying the old rule. It may cause user-after-free
issue when access rule again in hclge_add_fd_entry_common().
Fixes: fc4243b8de8b ("net: hns3: refactor flow director configuration")
Signed-off-by: Jian Shen <[email protected]>
Signed-off-by: Huazhong Tan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions