summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorJianbo Liu <jianbol@nvidia.com>2024-12-20 11:15:04 +0300
committerJakub Kicinski <kuba@kernel.org>2024-12-23 21:54:02 +0300
commit5a03b368562a7ff5f5f1f63b5adf8309cbdbd5be (patch)
treebd8a0db994664c26c352e79e3be94863f01dc9a9 /tools/perf/scripts/python/export-to-sqlite.py
parent8c6254479b3d5bd788d2b5fefaa48fb194331ed0 (diff)
downloadlinux-5a03b368562a7ff5f5f1f63b5adf8309cbdbd5be.tar.xz
net/mlx5e: Skip restore TC rules for vport rep without loaded flag
During driver unload, unregister_netdev is called after unloading vport rep. So, the mlx5e_rep_priv is already freed while trying to get rpriv->netdev, or walk rpriv->tc_ht, which results in use-after-free. So add the checking to make sure access the data of vport rep which is still loaded. Fixes: d1569537a837 ("net/mlx5e: Modify and restore TC rules for IPSec TX rules") Signed-off-by: Jianbo Liu <jianbol@nvidia.com> Reviewed-by: Saeed Mahameed <saeedm@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/20241220081505.1286093-4-tariqt@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions