linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/12] More leak and NULL pointer dereference fixes
@ 2011-11-02 14:42 Jes.Sorensen
  2011-11-02 14:42 ` [PATCH 01/12] mdadm: add missing break for UpdateSubarray Jes.Sorensen
                   ` (12 more replies)
  0 siblings, 13 replies; 15+ messages in thread
From: Jes.Sorensen @ 2011-11-02 14:42 UTC (permalink / raw)
  To: neilb; +Cc: linux-raid, dledford

From: Jes Sorensen <Jes.Sorensen@redhat.com>

Hi,

As promised, here is another batch of fixes for small memory leaks,
use of invalid file descriptors and NULL pointer dereferences.

The coverity output is starting to look a lot better by now :)

Cheers,
Jes


Jes Sorensen (12):
  mdadm: add missing break for UpdateSubarray
  ping_monitor(): check file descriptor is valid before using and
    closing it
  mdstat_read(): Check return value of dup() before using file
    descriptor
  get_component_size(): Check read() return value for error before
    using it
  array_try_spare(): open_dev() returns -1 on error, not zero
  disk_init_and_add(): Fail if opening sysfs file descriptors fail
  close_aa(): Verify file descriptors are valid before trying to close
    them
  ahci_enumerate_ports(): Don't close fd that failed to open
  unblock_monitor(): Check sra is valid before dereferencing
  Manage_ro(): Check pointer rather than dereferencing it
  fd2devname(): Don't dereference NULL pointer
  match_metadata_desc(): Fix memory leak

 Incremental.c |    2 +-
 Manage.c      |    2 +-
 managemon.c   |   21 ++++++++++++++++-----
 mdadm.c       |    1 +
 mdstat.c      |    7 ++++++-
 msg.c         |   11 +++++++++--
 super-intel.c |    8 +++++---
 super-mbr.c   |    7 ++++---
 sysfs.c       |    2 +-
 9 files changed, 44 insertions(+), 17 deletions(-)

-- 
1.7.6.4


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

end of thread, other threads:[~2011-11-03 12:40 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-02 14:42 [PATCH 00/12] More leak and NULL pointer dereference fixes Jes.Sorensen
2011-11-02 14:42 ` [PATCH 01/12] mdadm: add missing break for UpdateSubarray Jes.Sorensen
2011-11-02 14:42 ` [PATCH 02/12] ping_monitor(): check file descriptor is valid before using and closing it Jes.Sorensen
2011-11-02 14:42 ` [PATCH 03/12] mdstat_read(): Check return value of dup() before using file descriptor Jes.Sorensen
2011-11-02 14:42 ` [PATCH 04/12] get_component_size(): Check read() return value for error before using it Jes.Sorensen
2011-11-02 14:42 ` [PATCH 05/12] array_try_spare(): open_dev() returns -1 on error, not zero Jes.Sorensen
2011-11-02 14:42 ` [PATCH 06/12] disk_init_and_add(): Fail if opening sysfs file descriptors fail Jes.Sorensen
2011-11-02 14:42 ` [PATCH 07/12] close_aa(): Verify file descriptors are valid before trying to close them Jes.Sorensen
2011-11-02 14:42 ` [PATCH 08/12] ahci_enumerate_ports(): Don't close fd that failed to open Jes.Sorensen
2011-11-02 14:42 ` [PATCH 09/12] unblock_monitor(): Check sra is valid before dereferencing Jes.Sorensen
2011-11-02 14:42 ` [PATCH 10/12] Manage_ro(): Check pointer rather than dereferencing it Jes.Sorensen
2011-11-02 14:42 ` [PATCH 11/12] fd2devname(): Don't dereference NULL pointer Jes.Sorensen
2011-11-02 14:42 ` [PATCH 12/12] match_metadata_desc(): Fix memory leak Jes.Sorensen
2011-11-02 21:12 ` [PATCH 00/12] More leak and NULL pointer dereference fixes NeilBrown
2011-11-03 12:40   ` Jes Sorensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).