summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2013-01-03 22:18:39 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2013-01-04 20:14:42 +0100
commit2727de76041b2064c0b74f00a2a89678fb3efafc (patch)
tree57b15dc3cb1e39d7079c60bcf4d76ce34cdb0084 /drivers/net
parent757ae316fb35811cfd8c67de0e0b8680ec4c1f37 (diff)
downloadlinux-stable-2727de76041b2064c0b74f00a2a89678fb3efafc.tar.gz
linux-stable-2727de76041b2064c0b74f00a2a89678fb3efafc.tar.bz2
linux-stable-2727de76041b2064c0b74f00a2a89678fb3efafc.zip
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 <exa.exa@gmail.com> Reported-by: Dave Jones <davej@redhat.com> Reported-by: Harald Reindl <h.reindl@thelounge.net> Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions