All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/39] multipath: coverity fixes
@ 2016-06-16  9:47 Hannes Reinecke
  2016-06-16  9:47 ` [PATCH 01/39] multipathd: correctly free refwwid in cli_add_map() Hannes Reinecke
                   ` (39 more replies)
  0 siblings, 40 replies; 42+ messages in thread
From: Hannes Reinecke @ 2016-06-16  9:47 UTC (permalink / raw)
  To: Christophe Varoqui; +Cc: dm-devel

Hi all,

here's a bunch of fixes from a recent coverity run.
Nothing critical, mostly memory leaks and possible
buffer overflows. And the usual missing return value
check.

As usual, comments and reviews are welcome.

The whole patchset can be found at
github.com:/hreinecke/multipath-tools.git
branch coverity

Hannes Reinecke (39):
  multipathd: correctly free refwwid in cli_add_map()
  libmultipath: fixup string copy and comparison
  libmultipath: fixup uninitialized return value in dm_reassign_table()
  libmultipath: free pathgroup in group_by_prio()
  libmultipath: memory leak in remove_feature()
  libmultipath: memory leak in add_map_without_path()
  libmultipath: missing NULL check in set_pgfailback()
  libmultipath: remove stale references to fd_ep in uevent_listen()
  libmultipath/devmapper.c: Remove unused 'next' argument
  libmultipath/alias.c: check return value from strchr()
  libmultipath/devmapper.c: check for errors from sscanf()
  libmultipath/uevent.c: handle errors from setsockopt()
  libmultipath/discovery.c: handle errors from sscanf()
  libmultipath: drop unused variable 'diop' in libsg.c
  libmultipath: use fstat() when reading sysfs attributes
  libmultipath: fixup possible buffer overflow in alua_rtpg.c
  libmultipath: memory leak in iet.c
  libmpathcmd: limit size of the CLI buffer
  libmpathpersist: Fix possible overrun in devt2devname()
  libmpathpersist: memory leak in mpath_persistent_reserve_(in,out)()
  libmpathpersist: Pass sensebuffer as pointer
  libmpathpersist: Handle send error
  libmultipath: missing break in hds prioritizer
  kpartx: fixup fd leakage in lopart.c
  kpartx: Memory leak in get_hotplug_device()
  kpartx: fixup filedescriptor leak in set_loop()
  kpartx: do not use 'const' for mapname in get_hotplug_device()
  kpartx: Handle errors from lseek()
  kpartx/devmapper.c: Remove unused 'next' argument
  kpartx: use fstat() when reading sysfs attributes
  kpartx/lopart.c: use fstat() when reading device nodes
  libmultipath/sysfs.c: always terminate value from
    sysfs_attr_get_value()
  multipathd: missing mpath_disconnect() in uxclnt()
  multipathd: pid fd resource leak
  libmultipath: mark return value from dup() as unused
  libmultipath: Ignore errors from fcntl() in directio.c
  libmultipath: add spin_lock in tur.c
  libmultipath/devmapper.c: fixup possible buffer overflow
  libmultipath/discovery.c: Fixup possible range overflow

 kpartx/devmapper.c                    |  5 ++-
 kpartx/gpt.c                          |  5 +--
 kpartx/kpartx.c                       | 13 ++++---
 kpartx/lopart.c                       | 39 ++++++++++-----------
 libmpathcmd/mpath_cmd.c               |  2 ++
 libmpathcmd/mpath_cmd.h               |  1 +
 libmpathpersist/mpath_persist.c       | 21 +++++++++---
 libmpathpersist/mpath_pr_ioctl.c      | 35 ++++++++++---------
 libmpathpersist/mpath_updatepr.c      |  8 +++--
 libmultipath/alias.c                  |  3 +-
 libmultipath/callout.c                |  4 ++-
 libmultipath/checkers/directio.c      |  4 ++-
 libmultipath/checkers/libsg.c         |  3 --
 libmultipath/checkers/tur.c           |  4 ++-
 libmultipath/configure.c              | 10 +++---
 libmultipath/devmapper.c              | 40 +++++++++++++---------
 libmultipath/dict.c                   |  2 ++
 libmultipath/discovery.c              | 13 +++----
 libmultipath/dmparser.c               | 16 +++++----
 libmultipath/pgpolicies.c             | 14 +++++---
 libmultipath/prio.c                   |  2 +-
 libmultipath/prioritizers/alua_rtpg.c |  8 ++++-
 libmultipath/prioritizers/hds.c       |  2 ++
 libmultipath/prioritizers/iet.c       |  3 +-
 libmultipath/structs.c                |  4 ++-
 libmultipath/structs_vec.c            | 10 ++++--
 libmultipath/sysfs.c                  | 64 ++++++++++++++++++++---------------
 libmultipath/uevent.c                 | 19 +++++++----
 libmultipath/waiter.c                 |  2 +-
 multipathd/cli_handlers.c             |  2 +-
 multipathd/main.c                     |  6 +++-
 multipathd/pidfile.c                  |  6 ++--
 multipathd/uxclnt.c                   |  2 +-
 33 files changed, 226 insertions(+), 146 deletions(-)

-- 
2.6.6

^ permalink raw reply	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2016-06-20  7:32 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-16  9:47 [PATCH 00/39] multipath: coverity fixes Hannes Reinecke
2016-06-16  9:47 ` [PATCH 01/39] multipathd: correctly free refwwid in cli_add_map() Hannes Reinecke
2016-06-16  9:47 ` [PATCH 02/39] libmultipath: fixup string copy and comparison Hannes Reinecke
2016-06-16  9:47 ` [PATCH 03/39] libmultipath: fixup uninitialized return value in dm_reassign_table() Hannes Reinecke
2016-06-16  9:47 ` [PATCH 04/39] libmultipath: free pathgroup in group_by_prio() Hannes Reinecke
2016-06-16  9:47 ` [PATCH 05/39] libmultipath: memory leak in remove_feature() Hannes Reinecke
2016-06-16  9:47 ` [PATCH 06/39] libmultipath: memory leak in add_map_without_path() Hannes Reinecke
2016-06-16  9:47 ` [PATCH 07/39] libmultipath: missing NULL check in set_pgfailback() Hannes Reinecke
2016-06-16  9:47 ` [PATCH 08/39] libmultipath: remove stale references to fd_ep in uevent_listen() Hannes Reinecke
2016-06-16  9:47 ` [PATCH 09/39] libmultipath/devmapper.c: Remove unused 'next' argument Hannes Reinecke
2016-06-16  9:47 ` [PATCH 10/39] libmultipath/alias.c: check return value from strchr() Hannes Reinecke
2016-06-16  9:47 ` [PATCH 11/39] libmultipath/devmapper.c: check for errors from sscanf() Hannes Reinecke
2016-06-16  9:47 ` [PATCH 12/39] libmultipath/uevent.c: handle errors from setsockopt() Hannes Reinecke
2016-06-16  9:47 ` [PATCH 13/39] libmultipath/discovery.c: handle errors from sscanf() Hannes Reinecke
2016-06-16  9:47 ` [PATCH 14/39] libmultipath: drop unused variable 'diop' in libsg.c Hannes Reinecke
2016-06-16  9:47 ` [PATCH 15/39] libmultipath: use fstat() when reading sysfs attributes Hannes Reinecke
2016-06-16  9:47 ` [PATCH 16/39] libmultipath: fixup possible buffer overflow in alua_rtpg.c Hannes Reinecke
2016-06-16  9:47 ` [PATCH 17/39] libmultipath: memory leak in iet.c Hannes Reinecke
2016-06-16  9:47 ` [PATCH 18/39] libmpathcmd: limit size of the CLI buffer Hannes Reinecke
2016-06-16  9:47 ` [PATCH 19/39] libmpathpersist: Fix possible overrun in devt2devname() Hannes Reinecke
2016-06-16  9:47 ` [PATCH 20/39] libmpathpersist: memory leak in mpath_persistent_reserve_(in, out)() Hannes Reinecke
2016-06-16  9:47 ` [PATCH 21/39] libmpathpersist: Pass sensebuffer as pointer Hannes Reinecke
2016-06-16  9:47 ` [PATCH 22/39] libmpathpersist: Handle send error Hannes Reinecke
2016-06-16  9:47 ` [PATCH 23/39] libmultipath: missing break in hds prioritizer Hannes Reinecke
2016-06-16  9:47 ` [PATCH 24/39] kpartx: fixup fd leakage in lopart.c Hannes Reinecke
2016-06-16  9:47 ` [PATCH 25/39] kpartx: Memory leak in get_hotplug_device() Hannes Reinecke
2016-06-16  9:47 ` [PATCH 26/39] kpartx: fixup filedescriptor leak in set_loop() Hannes Reinecke
2016-06-16  9:47 ` [PATCH 27/39] kpartx: do not use 'const' for mapname in get_hotplug_device() Hannes Reinecke
2016-06-16  9:47 ` [PATCH 28/39] kpartx: Handle errors from lseek() Hannes Reinecke
2016-06-16  9:47 ` [PATCH 29/39] kpartx/devmapper.c: Remove unused 'next' argument Hannes Reinecke
2016-06-16  9:47 ` [PATCH 30/39] kpartx: use fstat() when reading sysfs attributes Hannes Reinecke
2016-06-16  9:47 ` [PATCH 31/39] kpartx/lopart.c: use fstat() when reading device nodes Hannes Reinecke
2016-06-16  9:47 ` [PATCH 32/39] libmultipath/sysfs.c: always terminate value from sysfs_attr_get_value() Hannes Reinecke
2016-06-16  9:47 ` [PATCH 33/39] multipathd: missing mpath_disconnect() in uxclnt() Hannes Reinecke
2016-06-16  9:47 ` [PATCH 34/39] multipathd: pid fd resource leak Hannes Reinecke
2016-06-16  9:47 ` [PATCH 35/39] libmultipath: mark return value from dup() as unused Hannes Reinecke
2016-06-16  9:47 ` [PATCH 36/39] libmultipath: Ignore errors from fcntl() in directio.c Hannes Reinecke
2016-06-16  9:47 ` [PATCH 37/39] libmultipath: add spin_lock in tur.c Hannes Reinecke
2016-06-16  9:47 ` [PATCH 38/39] libmultipath/devmapper.c: fixup possible buffer overflow Hannes Reinecke
2016-06-16  9:47 ` [PATCH 39/39] libmultipath/discovery.c: Fixup possible range overflow Hannes Reinecke
2016-06-20  7:09 ` [PATCH 00/39] multipath: coverity fixes Hannes Reinecke
2016-06-20  7:32   ` Christophe Varoqui

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.