From: Karlis Peisenieks <karlis@mt.lv>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: [netfilter-core] recent in_range fix uncovered another bug?
Date: Thu, 11 Sep 2003 10:09:56 +0300 [thread overview]
Message-ID: <20030911070956.GA950@mt.lv> (raw)
In-Reply-To: <20030911061644.B23BC2C0A7@lists.samba.org>
On Thu, Sep 11, 2003 at 03:45:53PM +1000, Rusty Russell wrote:
> In message <20030910110555.GA30240@mt.lv> you write:
> > Hello!
> >
> > I came across "lockup" in conntrack code using 2.4 kernel with bridge
> > netfilter (which is standart in 2.6 kernel) patch applied. Lockup can be
> > reproduced by pinging some host over bridge interface if the host is
> > unreachable in the beginning (e.g. ARP does not resolve) and then
> > becomes reachable (ARP resolves).
>
> Hmm, I've had a patch around for this code for a while now. The code
> is simply wrong. Does this work for you?
This patch solves "lockup" problem, but what about tons of equal
conntracks?
I do not understand all logic beyond this, but perhaps tuples should get
linked in hashtable as they are created in prerouting/localout/whenever
and confirm would only increase refcount (and set appropriate bit in
status)? This way kfree_skb of packet without confirmation would throw
conntrack out anyway, but while packets are sitting somewhere in the
stack, all "retransmissions" would get "accounted" for correct
conntrack.
Think about SYN retransmission - connection can be long over, but the
duplicate (created because first syn was delayed) is still sitting
around.
Karlis
next prev parent reply other threads:[~2003-09-11 7:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-10 11:05 recent in_range fix uncovered another bug? Karlis Peisenieks
2003-09-11 5:45 ` [netfilter-core] " Rusty Russell
2003-09-11 7:09 ` Karlis Peisenieks [this message]
2003-09-11 7:15 ` Karlis Peisenieks
2003-09-11 7:50 ` Rusty Russell
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=20030911070956.GA950@mt.lv \
--to=karlis@mt.lv \
--cc=netfilter-devel@lists.netfilter.org \
--cc=rusty@rustcorp.com.au \
/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.