Re: kernel BUG at net/netfilter/ipset/ip_set_core.c:314

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le 30/08/2011 15:59, Jozsef Kadlecsik a écrit :
Hi,

On Tue, 30 Aug 2011, Jean-Philippe Menil wrote:

With the set bitmap ipmac, if i had one, two hundred ip,mac in a set; and do
an ipset list,
i get an:
ipset v6.8: Kernel error received: No buffer space available
followed by a kernel panic (trace attached).
If possible, could you stress-test the case with the patch below applied?

If there was a dumping error in the middle, the set-specific variable was
not zeroed out and thus the 'done' function of the dumping wrongly tried
to release the already released reference of the set.

diff --git a/kernel/net/netfilter/ipset/ip_set_core.c b/kernel/net/netfilter/ipset/ip_set_core.c
index b5d380c..c3eabfd 100644
--- a/kernel/net/netfilter/ipset/ip_set_core.c
+++ b/kernel/net/netfilter/ipset/ip_set_core.c
@@ -1148,6 +1148,7 @@ release_refcount:
  	if (ret || !cb->args[2]) {
  		pr_debug("release set %s\n", ip_set_list[index]->name);
  		ip_set_put_byindex(index);
+		cb->args[2] = 0;
  	}
  out:
  	if (nlh) {

Best regards,
Jozsef
-
E-mail  : kadlec@xxxxxxxxxxxxxxxxx, kadlec@xxxxxxxxxxxx
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
           H-1525 Budapest 114, POB. 49, Hungary
Hi,

It seems to do the trick.
I've no more panic adding two hundred ip,mac, except the error when trying to list the set.

Thanks a lot.

Regards.

--
Jean-Philippe Menil - Pôle réseau Service IRTS
DSI Université de Nantes
jean-philippe.menil@xxxxxxxxxxxxxx
Tel : 02.53.48.49.27 - Fax : 02.53.48.49.09

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux