]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: FIX: mdmon crash during 2 raid0 arrays expansion
authorAdam Kwolek <adam.kwolek@intel.com>
Mon, 31 Jan 2011 14:25:16 +0000 (15:25 +0100)
committerNeilBrown <neilb@suse.de>
Mon, 31 Jan 2011 23:31:27 +0000 (10:31 +1100)
commit401d313b7f48ab5c4eea9d151ab10244d2c8b227
tree0f3b9fb45fd2c5749eec828fd36fb50c580c4a64
parent820eb8dba77b3b0aa7351aedf1af252a725d8f6f
imsm: FIX: mdmon crash during 2 raid0 arrays expansion

When expansion is run on 2 raid0 arrays in container no update
is sent to mdmon because mdmon is off (mdadm performs update)
Memory size for first reshaped array is allocated to satisfy memory
requirements for expanded maps.
Memory for second device is allocated using old disks number, as in
metadata there is no information about this array reshape.
When mdmon initiates second array reshape it overwrites internal
structures and crashes). There is no place to keep expanded maps.
To avoid this situation during loading metadata, allocated memory
should be performed using the maximum used disks number in particular
container.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c