slub: fix high order page allocation problem with __GFP_NOFAIL
authorJoonsoo Kim <iamjoonsoo.kim@lge.com>
Wed, 12 Mar 2014 08:26:20 +0000 (17:26 +0900)
committerPekka Enberg <penberg@kernel.org>
Thu, 27 Mar 2014 12:27:34 +0000 (14:27 +0200)
commit80c3a9981a544b6e96debfbcca5190b727ecd09e
tree90e7b058d1378dfe049ae103e4e43139eed3d719
parent5087c8229986cc502c807a15f8ea416b0ef22346
slub: fix high order page allocation problem with __GFP_NOFAIL

SLUB already try to allocate high order page with clearing __GFP_NOFAIL.
But, when allocating shadow page for kmemcheck, it missed clearing
the flag. This trigger WARN_ON_ONCE() reported by Christian Casteyde.

https://bugzilla.kernel.org/show_bug.cgi?id=65991
https://lkml.org/lkml/2013/12/3/764

This patch fix this situation by using same allocation flag as original
allocation.

Reported-by: Christian Casteyde <casteyde.christian@free.fr>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slub.c