From: Pekka Enberg Date: Fri, 23 Jun 2006 09:03:24 +0000 (-0700) Subject: [PATCH] slab: redzone double-free detection X-Git-Tag: v2.6.18-rc1~1081^2~188 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58ce1fd5805647a58a050bbbbd2252ea5ecb47b3;p=pandora-kernel.git [PATCH] slab: redzone double-free detection At present our slab debugging tells us that it detected a double-free or corruption - it does not distinguish between them. Sometimes it's useful to be able to differentiate between these two types of information. Add double-free detection to redzone verification when freeing an object. As explained by Manfred, when we are freeing an object, both redzones should be RED_ACTIVE. However, if both are RED_INACTIVE, we are trying to free an object that was already free'd. Signed-off-by: Manfred Spraul Signed-off-by: Pekka Enberg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed