From: NeilBrown Date: Fri, 3 Feb 2006 11:03:40 +0000 (-0800) Subject: [PATCH] md: Handle overflow of mdu_array_info_t->size better X-Git-Tag: v2.6.16-rc3~297 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=284ae7cab0f7335c9e0aa8992b28415ef1a54c7c;p=pandora-kernel.git [PATCH] md: Handle overflow of mdu_array_info_t->size better mdu_array_info_t->size is 'int', which isn't big enough for the size (in KB of each component in) some arrays. So rather than a random overflow, set size to -1 when it cannot be set correctly. To update aspect on an array, userspace will sometimes: get_array_info change one field set_array_info in this case, we don't want the '-1' in 'size' to change to size, or look like a size change at all. So test for that in update_array_info. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed