From: Eric Dumazet Date: Thu, 3 Jan 2013 22:18:39 +0000 (+0000) Subject: netfilter: xt_recent: avoid high order page allocations X-Git-Tag: v3.8-rc3~8^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2727de76041b2064c0b74f00a2a89678fb3efafc;p=pandora-kernel.git netfilter: xt_recent: avoid high order page allocations xt_recent can try high order page allocations and this can fail. iptables: page allocation failure: order:9, mode:0xc0d0 It also wastes about half the allocated space because of kmalloc() power-of-two roundups and struct recent_table layout. Use vmalloc() instead to save space and be less prone to allocation errors when memory is fragmented. Reported-by: Miroslav Kratochvil Reported-by: Dave Jones Reported-by: Harald Reindl Signed-off-by: Eric Dumazet Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed