Skip to content

Fix memory corruption in CM

Leon Romanovsky linux-rdma lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Revert "IB/cm: Mark stale CM id's whenever the mad agent was unregistered"drivers/infiniband/core/cm.c+15 -1080 replies
2/6IB/cm: Remove "mad_agent" parameter of ib_cancel_maddrivers/infiniband/core/cm.c drivers/infiniband/core/mad.c drivers/infiniband/core/sa_query.c +1 more+29 -381 reply
3/6IB/cm: Remove "mad_agent" parameter of ib_modify_maddrivers/infiniband/core/cm.c drivers/infiniband/core/mad.c include/rdma/ib_mad.h+29 -162 replies
4/6IB/cm: Clear all associated AV's ports when remove a cm devicedrivers/infiniband/core/cm.c+63 -120 replies
5/6IB/cm: Add lock protection when access av/alt_av's port of a cm_iddrivers/infiniband/core/cm.c+102 -270 replies
6/6IB/cm: Initialize av before acquire the spin lock in cm_lap_handlerdrivers/infiniband/core/cm.c+11 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH rdma-next 0/6] Fix memory corruption in CM

From: Leon Romanovsky <[email protected]>

Hi,

This series from Mark fixes long standing bug in CM migration logic, reported by Ryan [1].

Thanks

[1] https://lore.kernel.org/linux-rdma/CAFMmRNx9cg--NUnZjFM8yWqFaEtsmAWV4EogKb3a0+hnjdtJFA@mail.gmail.com/

Mark Zhang (6):
Revert "IB/cm: Mark stale CM id's whenever the mad agent was
unregistered"
IB/cm: Remove "mad_agent" parameter of ib_cancel_mad IB/cm: Remove "mad_agent" parameter of ib_modify_mad IB/cm: Clear all associated AV's ports when remove a cm device IB/cm: Add lock protection when access av/alt_av's port of a cm_id IB/cm: Initialize av before acquire the spin lock in cm_lap_handler

 drivers/infiniband/core/cm.c       | 359 ++++++++++++++++-------------
 drivers/infiniband/core/mad.c      |  17 +-
 drivers/infiniband/core/sa_query.c |   4 +-
 include/rdma/ib_mad.h              |  27 ++-
 4 files changed, 222 insertions(+), 185 deletions(-)

--
2.30.2