Skip to content

Double free fixes and NULL pointer checks

Shinas Rasheed lkml netdev 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 6 repliesIn review
  2. v37 patches 3 repliesSuperseded
  3. v27 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches1 replySuperseded

Changes in v4 from the cover letter

- Removed unnecessary protective code from octep_disable_msix() and improved commit message

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7octeon_ep: Add checks to fix double free crashesdrivers/net/ethernet/marvell/octeon_ep/octep_main.c drivers/net/ethernet/marvell/octeon_ep/octep_tx.c+12 -43 replies
2/7octeon_ep: Fix null dereferences to IQ/OQ pointersdrivers/net/ethernet/marvell/octeon_ep/octep_main.c+3 -00 replies
3/7octeon_ep: add protective null checks in napi callbacks for cn9k cardsdrivers/net/ethernet/marvell/octeon_ep/octep_cn9k_pf.c+8 -11 reply
4/7octeon_ep: add protective null checks in napi callbacks for cnxk cardsdrivers/net/ethernet/marvell/octeon_ep/octep_cnxk_pf.c+8 -11 reply
5/7octeon_ep_vf: Fix null dereferences to IQ/OQ pointersdrivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c+3 -00 replies
6/7octeon_ep_vf: add protective null checks in napi callbacks for cn9k cardsdrivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_cn9k.c+7 -11 reply
7/7octeon_ep_vf: add protective null checks in napi callbacks for cnxk cardsdrivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_cnxk.c+11 -10 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH net v4 0/7] Double free fixes and NULL pointer checks

Fix double frees which happen on reset scenarios, and add NULL pointer checks for when rare cases might trigger dereferences of such.

Changes:
V4:
- Removed unnecessary protective code from octep_disable_msix() and improved commit message

V3: https://lore.kernel.org/all/[email protected]/
- Added back "fixes" to the Changes listed

V2: https://lore.kernel.org/all/[email protected]/
- Added more context in commit messages and split patches for each commit fix

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

Shinas Rasheed (6):
octeon_ep: Fix null dereferences to IQ/OQ pointers
octeon_ep: add protective null checks in napi callbacks for cn9k cards
octeon_ep: add protective null checks in napi callbacks for cnxk cards
octeon_ep_vf: Fix null dereferences to IQ/OQ pointers
octeon_ep_vf: add protective null checks in napi callbacks for cn9k
cards
octeon_ep_vf: add protective null checks in napi callbacks for cnxk
cards

Vimlesh Kumar (1):
octeon_ep: Add checks to fix double free crashes

 .../ethernet/marvell/octeon_ep/octep_cn9k_pf.c  |  9 ++++++++-
 .../ethernet/marvell/octeon_ep/octep_cnxk_pf.c  |  9 ++++++++-
 .../net/ethernet/marvell/octeon_ep/octep_main.c | 17 +++++++++++++----
 .../net/ethernet/marvell/octeon_ep/octep_tx.c   |  2 ++
 .../marvell/octeon_ep_vf/octep_vf_cn9k.c        |  8 +++++++-
 .../marvell/octeon_ep_vf/octep_vf_cnxk.c        | 12 +++++++++++-
 .../marvell/octeon_ep_vf/octep_vf_main.c        |  3 +++
 7 files changed, 52 insertions(+), 8 deletions(-)
Signature · 1 line
2.25.1