]> git.baikalelectronics.ru Git - kernel.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)
committerPekka Enberg <penberg@kernel.org>
Tue, 17 May 2011 19:18:55 +0000 (22:18 +0300)
commite01eaeed5b82ef3e778ace7cbf139886060aeb65
tree2bcad46d15f1dc7ea6e458f2ab4d7f17b766dd66
parent296f128e21968a8a95a7316aba9e02130c207a7a
slub: Make CONFIG_DEBUG_PAGE_ALLOC work with new fastpath

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>
mm/slub.c