summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorVadim Fedorenko <vadfed@meta.com>2023-02-02 20:13:55 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2023-02-24 21:13:18 +0300
commit3a50cf1e8e5157b82268eee7e330dbe5736a0948 (patch)
tree4003add380991e99f8fc4c1d375eef5ba858d6d5 /tools/perf/scripts/python
parente435941b1da1a0be4ff8a7ae425774c76a5ac514 (diff)
downloadlinux-3a50cf1e8e5157b82268eee7e330dbe5736a0948.tar.xz
mlx5: fix possible ptp queue fifo use-after-free
Fifo indexes are not checked during pop operations and it leads to potential use-after-free when poping from empty queue. Such case was possible during re-sync action. WARN_ON_ONCE covers future cases. There were out-of-order cqe spotted which lead to drain of the queue and use-after-free because of lack of fifo pointers check. Special check and counter are added to avoid resync operation if SKB could not exist in the fifo because of OOO cqe (skb_id must be between consumer and producer index). Fixes: 58a518948f60 ("net/mlx5e: Add resiliency for PTP TX port timestamp") Signed-off-by: Vadim Fedorenko <vadfed@meta.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions