| To: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [BUG] overflow in net/ipv4/route.c rt_check_expire() |
| From: | Robert Olsson <Robert.Olsson@xxxxxxxxxxx> |
| Date: | Mon, 4 Apr 2005 14:29:33 +0200 |
| Cc: | Robert Olsson <Robert.Olsson@xxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, dada1@xxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <20050404103814.GA32269@xxxxxxxxxxxxxxxxxxx> |
| References: | <E1DHdsP-0003Lr-00@xxxxxxxxxxxxxxxxxxxxxxxx> <424E641A.1020609@xxxxxxxxxxxxx> <16974.41648.568927.54429@xxxxxxxxxxxx> <20050402193224.GA25157@xxxxxxxxxxxxxxxxxxx> <20050402115528.11f71a3c.davem@xxxxxxxxxxxxx> <20050403074337.GA8083@xxxxxxxxxxxxxxxxxxx> <16976.19092.562006.246545@xxxxxxxxxxxx> <20050403214521.GB15901@xxxxxxxxxxxxxxxxxxx> <16977.5791.367581.655483@xxxxxxxxxxxx> <20050404103814.GA32269@xxxxxxxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Herbert Xu writes:
> That's nasty because if you have a large cache like Eric, then you'll
> be dropping packets for quite a while :)
>
> Actually, what's so bad about seeing transients? One cost that
> I can see is that you'll be walking a chain only to conclude that
> none of the entries might match. But this is pretty cheap as long as
> we keep the chain lengths short.
>
> The other cost is that we might be creating an entry that gets flushed
> straight away. However, that's no worse than not using the cache at
> all since in that case we'll be creating one entry for each packet
> anyway.
Maybe you're right and systems seems to survive. But the transit period
should be as short as possible.
> Both of these can be avoided too if we really cared. All we need
> is one bit per chain that indicated whether it's been flushed. So
> when ip_route_* hits a chain that hasn't been flushed, it could
>
> 1) Skip the lookup step.
> 2) Create the rt entry as usual.
> 3) Flush the chain while we insert the entry and set the bit.
Yes better was thinking of something like this too.
--ro
|
| Previous by Date: | Re: take 2-2 WAS(Re: PATCH: IPSEC xfrm events, Herbert Xu |
|---|---|
| Next by Date: | Re: [Ipsec-tools-devel] Re: IPSEC: on behavior of acquire, jamal |
| Previous by Thread: | Re: [BUG] overflow in net/ipv4/route.c rt_check_expire(), Herbert Xu |
| Next by Thread: | Re: [BUG] overflow in net/ipv4/route.c rt_check_expire(), Robert Olsson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |