Re: [PATCH] slab: redzone double-free detection

From: Andrew Morton
Date: Thu Apr 27 2006 - 18:36:41 EST


Pekka Enberg <penberg@xxxxxxxxxxxxxx> wrote:
>
> From: Pekka Enberg <penberg@xxxxxxxxxxxxxx>
>
> This patch adds 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.
>
> ...
>
> slab.c | 32 +++++++++++++++++++++++---------

Nice, thanks.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/