Re: [PATCH] generic debug pagealloc

From: Ingo Molnar
Date: Tue Mar 03 2009 - 11:05:24 EST



* Akinobu Mita <akinobu.mita@xxxxxxxxx> wrote:

> CONFIG_DEBUG_PAGEALLOC is now supported by x86, powerpc, sparc
> (64bit), and s390. This patch implements it for the rest of
> the architectures by filling the pages with poison byte
> patterns after free_pages() and verifying the poison patterns
> before alloc_pages().
>
> This generic one cannot detect invalid read accesses and it
> can only detect invalid write accesses after a long delay. But
> it is an feasible way for nommu architectures.

if every architecture supports it now then i guess this config
switch can go away:

> +config ARCH_SUPPORTS_DEBUG_PAGEALLOC
> + def_bool y

Ingo
--
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/