Skip to content

net/mlx5: Fix HWS and DR steering memory safety bugs

Tariq Toukan linux-rdma lkml netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesApplied 2/2
  2. v13 patches 3 repliesSuperseded

Changes in v2 from the cover letter

Took patch #2 out of the series.
Patch #1: Remove empty line. Updated commit message. Patch #3 (now #2): Update commit message. Not allocating chunks in error state.
Print error once when putting pool into error state

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2net/mlx5: HWS, Handle NULL in vport destination action creationdrivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws.c+2 -00 repliesApplied
2/2net/mlx5: DR, Fix out-of-bounds write when sync to HW failsdrivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_icm_pool.c+29 -30 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAlex VeskerErez Shitrit
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net V2 0/2] net/mlx5: Fix HWS and DR steering memory safety bugs

Hi,

This series by Yevgeny fixes two memory safety bugs in the mlx5 software and hardware steering code paths.

Both are missing-check or wrong-handling problems that lead to a NULL pointer being inserted into an xarray, or an out-of-bounds write that corrupts the kernel heap.

Regards,
Tariq

V2:
Took patch #2 out of the series.
Patch #1: Remove empty line. Updated commit message. Patch #3 (now #2): Update commit message. Not allocating chunks in error state.
Print error once when putting pool into error state

V1:
https://lore.kernel.org/all/[email protected]/

Yevgeny Kliteynik (2):
net/mlx5: HWS, Handle NULL in vport destination action creation net/mlx5: DR, Fix out-of-bounds write when sync to HW fails

 .../mellanox/mlx5/core/steering/hws/fs_hws.c  |  2 ++
 .../mlx5/core/steering/sws/dr_icm_pool.c      | 32 +++++++++++++++++--
 2 files changed, 31 insertions(+), 3 deletions(-)

base-commit: aa40afa831ebfe45e40a23721711059f2ac584d4

Signature · 1 line
2.44.0