From: Al Viro <viro@ZenIV.linux.org.uk>
To: Krzysztof Oledzki <ole@ans.pl>
Cc: Arjan van de Ven <arjan@infradead.org>,
netdev@vger.kernel.org, kaber@trash.net
Subject: Re: Warning when unloading the nf_conntack module (regression?)
Date: Mon, 4 Aug 2008 22:56:49 +0100 [thread overview]
Message-ID: <20080804215649.GZ28946@ZenIV.linux.org.uk> (raw)
In-Reply-To: <Pine.LNX.4.64.0808042258370.29400@bizon.gios.gov.pl>
On Mon, Aug 04, 2008 at 11:16:07PM +0200, Krzysztof Oledzki wrote:
> Solves partially: no more WARNING, however entries are still missing &
> duplicated:
>
> # sysctl -a 2>/dev/null|grep net.netfilter
> net.netfilter.nf_conntrack_generic_timeout = 600
> net.netfilter.nf_conntrack_acct = 1
> net.netfilter.nf_conntrack_generic_timeout = 600
> net.netfilter.nf_conntrack_acct = 1
Very interesting. Could you see at which point duplicates appear? I.e.
in which sequence do you get registrations, at least on the level of "this
module is loaded first, no duplicates, this one comes after, etc."
... ah, hell. I see what's going on. The trouble is in
nf_conntrack_standalone; you get a table that has _both_ net.netfilter.* and
net.nf_conntrack_max, which means that it's attached to unified tree at
net; if we already have something with net.netfilter, you've got trouble -
which entry net.netfilter will come from?
_All_ this crap comes from lousy historical API; it's too much for this
cycle, but for .28 I'm going to clean that mess up. For now, split that
table in two and register them separately. I.e. register nf_ct_sysctl_table[]
at nf_net_netfilter_sysctl_path *and* remove the "netfilter" entry from
nf_ct_netfilter_table[].
I'm really going down right now; will follow up after I get some sleep...
next prev parent reply other threads:[~2008-08-04 21:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-03 21:37 Warning when unloading the nf_conntack module (regression?) Arjan van de Ven
2008-08-03 21:46 ` Krzysztof Oledzki
2008-08-04 18:33 ` Krzysztof Oledzki
2008-08-04 18:40 ` Krzysztof Oledzki
2008-08-04 19:41 ` Krzysztof Oledzki
2008-08-04 20:00 ` Al Viro
2008-08-04 20:30 ` Al Viro
2008-08-04 21:16 ` Krzysztof Oledzki
2008-08-04 21:56 ` Al Viro [this message]
2008-08-04 22:04 ` Krzysztof Oledzki
2008-08-05 1:08 ` Krzysztof Oledzki
2008-08-05 4:46 ` Al Viro
2008-08-05 12:10 ` Krzysztof Oledzki
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=20080804215649.GZ28946@ZenIV.linux.org.uk \
--to=viro@zeniv.linux.org.uk \
--cc=arjan@infradead.org \
--cc=kaber@trash.net \
--cc=netdev@vger.kernel.org \
--cc=ole@ans.pl \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).