]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid10: fix two bugs affecting RAID10 reshape.
authorNeilBrown <neilb@suse.de>
Tue, 2 Jul 2013 05:58:05 +0000 (15:58 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 2 Jul 2013 23:43:28 +0000 (09:43 +1000)
commitb750a4470993b67fcbf48f5fc9dc841ceef1d105
treeaf855b75f643950b6468ca1bb03daaeb5523286b
parente3de8aab41147318b93b0b938bd2d0ba5547b072
md/raid10: fix two bugs affecting RAID10 reshape.

1/ If a RAID10 is being reshaped to a fewer number of devices
 and is stopped while this is ongoing, then when the array is
 reassembled the 'mirrors' array will be allocated too small.
 This will lead to an access error or memory corruption.

2/ A sanity test for a reshaping RAID10 array is restarted
 is slightly incorrect.

Due to the first bug, this is suitable for any -stable
kernel since 3.5 where this code was introduced.

Cc: stable@vger.kernel.org (v3.5+)
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid10.c