[dm-devel] [PATCH 0/5] Memory issues found by coverity

Benjamin Marzinski bmarzins at redhat.com
Tue May 11 23:21:59 UTC 2021


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 last two patches fix memory leaks.

Benjamin Marzinski (5):
  multipathd: don't fail to remove path once the map is removed
  multipathd: remove duplicate orphan_paths in flush_map
  multipathd: make ev_remove_path return success on path removal
  multipath: free vectors in configure
  kpartx: Don't leak memory when getblock returns NULL

 kpartx/kpartx.c            |  2 ++
 libmultipath/structs_vec.c |  3 +--
 multipath/main.c           |  7 ++++++-
 multipathd/main.c          | 20 ++++++++++++--------
 4 files changed, 21 insertions(+), 11 deletions(-)

-- 
2.17.2




More information about the dm-devel mailing list