Skip to content

Memory issues found by coverity

Benjamin Marzinski dm-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 3 repliesIn review
  2. v36 patches 2 repliesSuperseded
  3. v26 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches11 repliesSuperseded

Changes in v4 from the cover letter

0003: Handle NULL returns from strdup(). Suggested by Martin Wilck

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6multipathd: don't fail to remove path once the map is removedlibmultipath/structs_vec.c multipathd/main.c+10 -70 replies
2/6multipathd: remove duplicate orphan_paths in flush_mapmultipathd/main.c+0 -10 replies
3/6multipathd: fix ev_remove_path return code handlingmultipathd/cli_handlers.c multipathd/main.c multipathd/main.h+57 -223 replies
4/6multipath: free vectors in configuremultipath/main.c+6 -10 replies
5/6kpartx: Don't leak memory when getblock returns NULLkpartx/kpartx.c+2 -00 replies
6/6multipathd: don't rescan_path on wwid change in uev_update_pathmultipathd/main.c+0 -10 replies

Reviews trailers per patch

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

PatchMartin Wilck
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

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

Read the v4 thread

Cover letter [dm-devel] [PATCH v4 0/6] Memory issues found by coverity

This is collection of issues found by coverity. The first three patches deal with ev_remove_path() removing the path, but returning failure, causing a use-after-free error. The next two patches fix memory leaks. The final patch removes an unnecessary call to rescan_paths() from uev_update_path()

Changes from v3:
0003: Handle NULL returns from strdup(). Suggested by Martin Wilck

Changes from v2:
0003: Combined with v2 patch 0006, with changes changes in comments,
how the return codes are defined, and how they are handled, based on Martin's suggestions
0006: New patch based on Martin's suggestions about wwid change handling
in uev_update_path().

Changes from v1:
0001: changed comment based on Martin's suggestion 0004: moved location of atexit() call based on Martin's suggestion 0006: New patch, based on Martin's comments on patch 0003

Benjamin Marzinski (6):
multipathd: don't fail to remove path once the map is removed
multipathd: remove duplicate orphan_paths in flush_map
multipathd: fix ev_remove_path return code handling
multipath: free vectors in configure
kpartx: Don't leak memory when getblock returns NULL
multipathd: don't rescan_path on wwid change in uev_update_path

 kpartx/kpartx.c            |  2 ++
 libmultipath/structs_vec.c |  4 +--
 multipath/main.c           |  7 ++++-
 multipathd/cli_handlers.c  | 24 ++++++++++++++--
 multipathd/main.c          | 56 ++++++++++++++++++++------------------
 multipathd/main.h          | 14 ++++++++++
 6 files changed, 75 insertions(+), 32 deletions(-)
Signature · 6 lines
2.17.2

--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel