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)
committerPekka Enberg <penberg@kernel.org>
Tue, 17 May 2011 19:18:55 +0000 (22:18 +0300)
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.

Cc: <stable@kernel.org> # 38.x
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>

No differences found