]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm, mempool: poison elements backed by page allocator
authorDavid Rientjes <rientjes@google.com>
Tue, 7 Apr 2015 23:44:31 +0000 (09:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:44:31 +0000 (09:44 +1000)
commit490c9fbd06a89af6b0892f3e32a488abdff84faa
tree48ffc2643e79209bc10ba5e548373e915f8089b4
parent7c30fe716f61fc39290d46fd258618ce4dd18386
mm, mempool: poison elements backed by page allocator

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.

Signed-off-by: David Rientjes <rientjes@google.com>
Cc: Dave Kleikamp <shaggy@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Sebastian Ott <sebott@linux.vnet.ibm.com>
Cc: Mikulas Patocka <mpatocka@redhat.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mempool.c