Thread (2 messages) flat view 2 messages, 2 authors, 2013-01-04

Re: [PATCH] netfilter: xt_recent: avoid high order page allocations

From: Pablo Neira Ayuso <pablo@netfilter.org>
Date: 2013-01-04 19:23:16
Also in: netfilter-devel

On Fri, Jan 04, 2013 at 12:18:39AM -0800, Eric Dumazet wrote:
From: Eric Dumazet <edumazet@google.com>

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.
Applied, thanks Eric!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help