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

Elements backed by the page allocator might not be directly mapped into
lowmem, so do k{,un}map_atomic() before poisoning and verifying contents
to map into lowmem and return the virtual adddress.

Signed-off-by: David Rientjes <rientjes@google.com>
Reported-by: Andrey Ryabinin <a.ryabinin@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mempool.c