summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorChangyul Lee <lcy8047@gmail.com>2026-11-12 23:03:23 -0500
committerJakub Kicinski <kuba@kernel.org>2026-11-18 15:41:35 -0800
commitd61480a622be17e5aa981f7ef4e6a0230b1d9049 (patch)
tree519a382dfe9edeee33003e8f91ba35f051ccbcf5 /tools/perf/scripts/python/bin
parent2a324a58a084c5cfd7e5a2f55e0786bee170a4a5 (diff)
net/mlx5e: Hold sync_lock while resetting VXLAN ports
mlx5_vxlan_reset_to_default() walks vxlan->htable without sync_lock and calls mlx5_vxlan_del_port() for each user port. mlx5e_nic_disable() and mlx5e_uplink_rep_disable() call it after rtnl_unlock(), so the udp_tunnel_nic work can run mlx5e_vxlan_unset_port() at the same time. If that removes and frees the entry saved as the next one in hash_for_each_safe(), the walk then reads freed memory. Hold sync_lock over the whole walk, and add __mlx5_vxlan_del_port() for callers that already hold it. Fixes: c5eb51adf06b ("net/mlx5e: Fix VXLAN synchronization after function reload") Signed-off-by: Changyul Lee <lcy8047@gmail.com> Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/20261113040323.2090829-1-lcy8047@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions