]> git.karo-electronics.de Git - karo-tx-linux.git/commit
slub: Make CONFIG_DEBUG_PAGE_ALLOC work with new fastpath
authorChristoph Lameter <cl@linux.com>
Mon, 16 May 2011 20:26:08 +0000 (15:26 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Jun 2011 00:32:13 +0000 (09:32 +0900)
commit440316e6310c2ce372e32d12c83ccc8ddcfb5028
tree2257e1a84a1286727a2b619bcf2d2336f5f22a85
parent22d82c7586eb492067805dd781f84f5a94133357
slub: Make CONFIG_DEBUG_PAGE_ALLOC work with new fastpath

commit 1393d9a1857471f816d0be1ccc1d6433a86050f6 upstream.

Fastpath can do a speculative access to a page that CONFIG_DEBUG_PAGE_ALLOC may have
marked as invalid to retrieve the pointer to the next free object.

Use probe_kernel_read in that case in order not to cause a page fault.

Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
mm/slub.c