Commit 0bed820
Mohammad Kabat
net/mlx5e: Fix use-after-free when reverting termination table
Bugzilla: https://bugzilla.redhat.com/2112947
Upstream-status: v6.1-rc8
commit 52c795a
Author: Roi Dayan <roid@nvidia.com>
Date: Mon Nov 14 20:04:29 2022 +0200
net/mlx5e: Fix use-after-free when reverting termination table
When having multiple dests with termination tables and second one
or afterwards fails the driver reverts usage of term tables but
doesn't reset the assignment in attr->dests[num_vport_dests].termtbl
which case a use-after-free when releasing the rule.
Fix by resetting the assignment of termtbl to null.
Fixes: 10caabd ("net/mlx5e: Use termination table for VLAN push actions")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Mohammad Kabat <mkabat@redhat.com>1 parent 4c2319a commit 0bed820
File tree
1 file changed
+2
-0
lines changed- drivers/net/ethernet/mellanox/mlx5/core
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| 315 | + | |
| 316 | + | |
315 | 317 | | |
316 | 318 | | |
317 | 319 | | |
| |||
0 commit comments