Commit 7baaa32
committed
net/mlx5e: SHAMPO, Fix invalid WQ linked list unlink
jira VULN-39249
jira VULN-39248
cve CVE-2024-44970
commit-author Dragos Tatulea <dtatulea@nvidia.com>
commit fba8334
When all the strides in a WQE have been consumed, the WQE is unlinked
from the WQ linked list (mlx5_wq_ll_pop()). For SHAMPO, it is possible
to receive CQEs with 0 consumed strides for the same WQE even after the
WQE is fully consumed and unlinked. This triggers an additional unlink
for the same wqe which corrupts the linked list.
Fix this scenario by accepting 0 sized consumed strides without
unlinking the WQE again.
Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://lore.kernel.org/r/20240603212219.1037656-4-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit fba8334)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 8a3eb05 commit 7baaa32
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2122 | 2122 | | |
2123 | 2123 | | |
2124 | 2124 | | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
2125 | 2128 | | |
2126 | 2129 | | |
2127 | 2130 | | |
| |||
0 commit comments