All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roberto Nibali <ratz@tac.ch>
To: Pablo Neira <pablo@eurodev.net>
Cc: Netfilter Developers <netfilter-devel@lists.netfilter.org>
Subject: Re: [PATCH] update raw patch in POM
Date: Mon, 20 Jun 2005 11:07:33 +0200	[thread overview]
Message-ID: <42B68755.8020805@tac.ch> (raw)
In-Reply-To: <42B67BEC.1090105@tac.ch>

> and Pablo's debug code (which I believe is not triggered yet):
> 
> --- linux-2.4.orig/net/ipv4/netfilter/ip_conntrack_core.c	2005-06-15
> 23:16:43.000000000 +0200
> +++ linux-2.4/net/ipv4/netfilter/ip_conntrack_core.c	2005-06-17
> 20:44:18.000000000 +0200
> @@ -1391,6 +1391,8 @@
>  		schedule();
>  		goto i_see_dead_people;
>  	}
> +	while (atomic_read(&ip_conntrack_untracked.ct_general.use) != 1)
> +		schedule();
> 
>  	kmem_cache_destroy(ip_conntrack_cachep);
>  	vfree(ip_conntrack_hash);

This results in an endless loop when calling rmmod ip_conntrack. lsmod shows
(deleted) but the process is in D state. No oops of course and now hang.

> Trace; c02b9f51 <nf_hook_slow+141/1c4>

(gdb) list *nf_hook_slow+141
0xc02ba0bd is in nf_hook_slow (netfilter.c:492).
487                             skb_checksum_help(*pskb);
488                     }
489             }
490
491             /* We may already have this, but read-locks nest anyway */
492             br_read_lock_bh(BR_NETPROTO_LOCK);
493
494     #ifdef CONFIG_NETFILTER_DEBUG
495             if (unlikely((*pskb)->nf_debug & (1 << hook))) {
496                     printk("nf_hook: hook %i already set.\n", hook);

... hmmm, weird.

> If you have other ideas, let me know. I could also need some help regarding
> debugging the stack trace. It doesn't make much sense to me right now. To
> reproduce I roughly use following procedure (not always successful):
> 
> 1. load a lot of modules (I don't know them by heart but certainly all
>    ip_conntrack* related ones)

These were the loaded modules before the oops:

# lsmod
Module                  Size  Used by
ipt_NOTRACK              944   6  (autoclean)
ipt_state                768  65  (autoclean)
ipt_LOG                 3728  29  (autoclean)
ipt_limit               1360   6  (autoclean)
iptable_raw             1440   1  (autoclean)
iptable_mangle          2416   0  (autoclean) (unused)
iptable_filter          1904   1  (autoclean)
ip_nat_ftp              2800   0  (unused)
iptable_nat            19600   1  [ip_nat_ftp]
ip_tables              12352  10  [ipt_NOTRACK ipt_state ipt_LOG ipt_limit
iptable_raw iptable_mangle iptable_filter iptable_nat]
ip_conntrack_ftp        3904   1
ip_conntrack           28832   1  [ipt_NOTRACK ipt_state ip_nat_ftp
iptable_natip_conntrack_ftp]

-- 
-------------------------------------------------------------
addr://Rathausgasse 31, CH-5001 Aarau  tel://++41 62 823 9355
http://www.terreactive.com             fax://++41 62 823 9356
-------------------------------------------------------------
terreActive AG                       Wir sichern Ihren Erfolg
-------------------------------------------------------------

  reply	other threads:[~2005-06-20  9:07 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-07 11:06 [PATCH] update raw patch in POM Roberto Nibali
2005-06-07 14:37 ` Roberto Nibali
2005-06-07 22:55   ` Pablo Neira
2005-06-08  8:23     ` Roberto Nibali
2005-06-08 12:37       ` Pablo Neira
2005-06-14 15:27         ` Roberto Nibali
2005-06-20  8:18           ` Roberto Nibali
2005-06-20  9:07             ` Roberto Nibali [this message]
2005-06-20 10:41             ` SOLVED (was: Re: [PATCH] update raw patch in POM) Roberto Nibali
2005-06-20 11:01               ` Jozsef Kadlecsik
2005-06-20 11:03                 ` SOLVED Roberto Nibali
2005-06-20 11:04                   ` SOLVED Jozsef Kadlecsik
2005-06-20 10:49             ` [PATCH] update raw patch in POM Jan Engelhardt
2005-06-20 11:03               ` Roberto Nibali
2005-06-21  0:34             ` Thomas Graf
2005-06-21  0:39               ` Thomas Graf
2005-06-21  6:46                 ` Roberto Nibali
2005-06-21  8:59                   ` Pablo Neira
2005-06-21  9:08                     ` Jozsef Kadlecsik
2005-06-21 11:18                   ` Thomas Graf
2005-06-21  0:51               ` Pablo Neira
2005-06-21 11:13                 ` Thomas Graf
2005-06-21 14:00                   ` Patrick McHardy
2005-06-21 14:17                     ` [PATCH] update raw patch in POM [2.4.x] Roberto Nibali
2005-06-21 14:47                       ` Patrick McHardy
2005-06-21 15:15                         ` Roberto Nibali
2005-06-21 15:32                           ` Patrick McHardy
2005-06-22  9:26                             ` Roberto Nibali
2005-06-22  7:04                           ` Jozsef Kadlecsik
2005-06-22  9:10                             ` Roberto Nibali
2005-06-22  9:19                               ` Jozsef Kadlecsik
2005-06-22  9:27                                 ` Roberto Nibali
2005-06-21 21:50                     ` [PATCH] update raw patch in POM Thomas Graf
2005-06-22  0:32                       ` Patrick McHardy
2005-06-22  0:52                         ` Thomas Graf
2005-06-22  3:24                           ` Pablo Neira
2005-06-22  3:55                             ` Patrick McHardy
2005-06-22  5:48                               ` Roberto Nibali
2005-06-22 11:39                               ` Roberto Nibali
2005-06-22 18:38                                 ` Patrick McHardy
2005-06-27  6:36                                   ` Roberto Nibali
2005-06-27 10:57                                     ` Patrick McHardy
2005-06-27 12:07                                       ` Roberto Nibali
2005-06-27 12:55                                         ` Patrick McHardy
2005-06-27 13:53                                           ` Roberto Nibali
2005-06-27 15:49                                             ` Patrick McHardy
2005-06-28  6:02                                               ` Roberto Nibali
2005-06-27  8:50                                   ` Roberto Nibali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42B68755.8020805@tac.ch \
    --to=ratz@tac.ch \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=pablo@eurodev.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.