From: Mel Gorman Date: Tue, 16 Jun 2009 22:32:18 +0000 (-0700) Subject: page allocator: sanity check order in the page allocator slow path X-Git-Tag: v2.6.31-rc1~299^2~132 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72807a74c0172376bba6b5b27702c9f702b526e9;p=pandora-kernel.git page allocator: sanity check order in the page allocator slow path Callers may speculatively call different allocators in order of preference trying to allocate a buffer of a given size. The order needed to allocate this may be larger than what the page allocator can normally handle. While the allocator mostly does the right thing, it should not direct reclaim or wakeup kswapd with a bogus order. This patch sanity checks the order in the slow path and returns NULL if it is too large. Signed-off-by: Mel Gorman Signed-off-by: Dave Hansen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed