diff options
| author | Jianbo Liu <[email protected]> | 2025-06-10 15:15:13 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-06-11 21:41:15 +0000 |
| commit | aa9c44b842096c553871bc68a8cebc7861fa192b (patch) | |
| tree | 0bc376af8dbf3e6399ba603dc0b818d2884e1f49 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
| parent | net/mlx5: HWS, make sure the uplink is the last destination (diff) | |
| download | kernel-aa9c44b842096c553871bc68a8cebc7861fa192b.tar.gz kernel-aa9c44b842096c553871bc68a8cebc7861fa192b.zip | |
net/mlx5e: Fix leak of Geneve TLV option object
Previously, a unique tunnel id was added for the matching on TC
non-zero chains, to support inner header rewrite with goto action.
Later, it was used to support VF tunnel offload for vxlan, then for
Geneve and GRE. To support VF tunnel, a temporary mlx5_flow_spec is
used to parse tunnel options. For Geneve, if there is TLV option, a
object is created, or refcnt is added if already exists. But the
temporary mlx5_flow_spec is directly freed after parsing, which causes
the leak because no information regarding the object is saved in
flow's mlx5_flow_spec, which is used to free the object when deleting
the flow.
To fix the leak, call mlx5_geneve_tlv_option_del() before free the
temporary spec if it has TLV object.
Fixes: 521933cdc4aa ("net/mlx5e: Support Geneve and GRE with VF tunnel offload")
Signed-off-by: Jianbo Liu <[email protected]>
Reviewed-by: Tariq Toukan <[email protected]>
Reviewed-by: Alex Lazar <[email protected]>
Signed-off-by: Mark Bloch <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions
