]> git.karo-electronics.de Git - karo-tx-linux.git/commit
netfilter: Fix potential crash in nft_hash walker
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Mar 2015 23:52:14 +0000 (10:52 +1100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 13 Mar 2015 11:03:00 +0000 (12:03 +0100)
commitd8bdff59cea141d2e5f7e98c1b11d3e0271640bd
tree7583f9e998d590a2e82bed495f9c59b08816b9ef
parent78146572b9cd20452da47951812f35b1ad4906be
netfilter: Fix potential crash in nft_hash walker

When we get back an EAGAIN from rhashtable_walk_next we were
treating it as a valid object which obviously doesn't work too
well.

Luckily this is hard to trigger so it seems nobody has run into
it yet.

This patch fixes it by redoing the next call when we get an EAGAIN.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_hash.c