summaryrefslogtreecommitdiff
path: root/lib/assoc_array.c
diff options
context:
space:
mode:
authorJian Shen <shenjian15@huawei.com>2021-03-29 11:57:46 +0800
committerDavid S. Miller <davem@davemloft.net>2021-03-29 13:21:00 -0700
commit64ff58fa3bfcf26bc893ea425a0553b561ca5298 (patch)
treed5fdab67efce2d1e2d8b5ea5431935c34b3b1598 /lib/assoc_array.c
parent989f7178b06666ec23ada614b2047c21d85b2a0a (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 <shenjian15@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/assoc_array.c')
0 files changed, 0 insertions, 0 deletions