Re: [patch v2 4/4] mm, mempool: poison elements backed by page allocator

From: Andrew Morton
Date: Wed Mar 25 2015 - 17:55:30 EST


On Tue, 24 Mar 2015 16:10:01 -0700 (PDT) David Rientjes <rientjes@xxxxxxxxxx> wrote:

> Elements backed by the slab allocator are poisoned when added to a
> mempool's reserved pool.
>
> It is also possible to poison elements backed by the page allocator
> because the mempool layer knows the allocation order.
>
> This patch extends mempool element poisoning to include memory backed by
> the page allocator.
>
> This is only effective for configs with CONFIG_DEBUG_SLAB or
> CONFIG_SLUB_DEBUG_ON.
>

Maybe mempools should get KASAN treatment (as well as this)?
--
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/