linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] patches addresses problem with memory corruption
@ 2011-01-31 15:25 Adam Kwolek
  2011-01-31 15:25 ` [PATCH 1/2] imsm: FIX: mdmon crash during 2 raid0 arrays expansion Adam Kwolek
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Adam Kwolek @ 2011-01-31 15:25 UTC (permalink / raw)
  To: neilb; +Cc: linux-raid, dan.j.williams, ed.ciechanowski, wojciech.neubauer

When for raid0 metadata is updated outside mdmon it can happen that
memory corruption occurs due to too amount of memory is allocated 
for imsm device structure.

1. imsm: FIX: mdmon crash during 2 raid0 arrays expansion
  this patch is almost the same to sent earlier except 2 changes:
   a) compilation problem
   b) size should affect anchor size also
      (added calculation changes extends space_needed variable also
       this variable is used for anchor allocation)
  so it replaces previous one.
2.  imsm: FIX: sizeof_imsm_dev() can return too small value
	size returned by sizeof_imsm_dev() describes minimum size of device
        This is correct when both device maps has the same length
        When device expands or shrinks we should return size that allows
        for storing larger device information to avoid memory corruption.

BR
Adam

---

Adam Kwolek (2):
      imsm: FIX: sizeof_imsm_dev() can return too small value
      imsm: FIX: mdmon crash during 2 raid0 arrays expansion


 super-intel.c |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

-- 
Signature

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

end of thread, other threads:[~2011-01-31 23:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-31 15:25 [PATCH 0/2] patches addresses problem with memory corruption Adam Kwolek
2011-01-31 15:25 ` [PATCH 1/2] imsm: FIX: mdmon crash during 2 raid0 arrays expansion Adam Kwolek
2011-01-31 15:25 ` [PATCH 2/2] imsm: FIX: sizeof_imsm_dev() can return too small value Adam Kwolek
2011-01-31 15:59 ` [PATCH 0/2] patches addresses problem with memory corruption Kwolek, Adam
2011-01-31 23:49   ` NeilBrown
2011-01-31 23:38 ` NeilBrown

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).