Re: DDoS attack causing bad effect on conntrack searches

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul E. McKenney
Date: Thursday, April 22, 2010 - 8:51 am

On Thu, Apr 22, 2010 at 04:53:49PM +0200, Eric Dumazet wrote:

So this situation uses SLAB_DESTROY_BY_RCU to quickly recycle deleted
elements?  (Not obvious from the code, but my ignorance of the networking
code is such that many things in that part of the kernel are not obvious
to me, I am afraid.)

Otherwise, of course you would simply allow deleted elements to continue
pointing where they did previously, so that concurrent readers would not
miss anything.

Of course, the same potential might arise on insertion, but it is usually
OK to miss an element that was inserted after you started searching.


Ah...  Is there also a resize operation?  Herbert did do a resizable
hash table recently, but I was under the impression that (1) it was in
some other part of the networking stack and (2) it avoided the need to
restart readers.


Or maybe the DoS attack is injecting so many new conntracks that a large
fraction of the hash chains are being modified at any given time?

							Thanx, Paul
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
DDoS attack causing bad effect on conntrack searches, Jesper Dangaard Brouer, (Thu Apr 22, 5:58 am)
Re: DDoS attack causing bad effect on conntrack searches, Patrick McHardy, (Thu Apr 22, 6:17 am)
Re: DDoS attack causing bad effect on conntrack searches, Jesper Dangaard Brouer, (Thu Apr 22, 6:31 am)
Re: DDoS attack causing bad effect on conntrack searches, Paul E. McKenney, (Thu Apr 22, 8:51 am)
Re: DDoS attack causing bad effect on conntrack searches, Paul E. McKenney, (Thu Apr 22, 9:34 am)
Re: DDoS attack causing bad effect on conntrack searches, Jesper Dangaard Brouer, (Thu Apr 22, 1:38 pm)
Re: DDoS attack causing bad effect on conntrack searches, Jesper Dangaard Brouer, (Thu Apr 22, 2:28 pm)
Re: DDoS attack causing bad effect on conntrack searches, Eric Dumazet, (Thu Apr 22, 10:44 pm)
Re: DDoS attack causing bad effect on conntrack searches, Jan Engelhardt, (Fri Apr 23, 12:23 am)
Re: DDoS attack causing bad effect on conntrack searches, Eric Dumazet, (Fri Apr 23, 12:46 am)
Re: DDoS attack causing bad effect on conntrack searches, Jan Engelhardt, (Fri Apr 23, 12:55 am)
Re: DDoS attack causing bad effect on conntrack searches, Jesper Dangaard Brouer, (Fri Apr 23, 1:40 am)
Re: DDoS attack causing bad effect on conntrack searches, Patrick McHardy, (Fri Apr 23, 3:35 am)
Re: DDoS attack causing bad effect on conntrack searches, Patrick McHardy, (Fri Apr 23, 3:36 am)
Re: DDoS attack causing bad effect on conntrack searches, Patrick McHardy, (Fri Apr 23, 3:55 am)
Re: DDoS attack causing bad effect on conntrack searches, Patrick McHardy, (Fri Apr 23, 3:56 am)
Re: DDoS attack causing bad effect on conntrack searches, Patrick McHardy, (Fri Apr 23, 4:06 am)
Re: DDoS attack causing bad effect on conntrack searches, Jesper Dangaard Brouer, (Fri Apr 23, 5:45 am)
Re: DDoS attack causing bad effect on conntrack searches, Patrick McHardy, (Fri Apr 23, 6:57 am)
Re: DDoS attack causing bad effect on conntrack searches, Jesper Dangaard Brouer, (Sat Apr 24, 4:11 am)
Re: DDoS attack causing bad effect on conntrack searches, Jesper Dangaard Brouer, (Mon Apr 26, 7:36 am)
Re: DDoS attack causing bad effect on conntrack searches, Eric Dumazet, (Mon May 31, 10:05 pm)
Re: DDoS attack causing bad effect on conntrack searches, Patrick McHardy, (Tue Jun 1, 3:18 am)
Re: DDoS attack causing bad effect on conntrack searches, Patrick McHardy, (Tue Jun 1, 3:41 am)
[PATCH nf-next-2.6] conntrack: IPS_UNTRACKED bit, Eric Dumazet, (Fri Jun 4, 9:25 am)
[PATCH nf-next-2.6 2/2] conntrack: per_cpu untracking, Eric Dumazet, (Fri Jun 4, 1:15 pm)
Re: [PATCH nf-next-2.6] conntrack: IPS_UNTRACKED bit, Patrick McHardy, (Tue Jun 8, 7:12 am)
Re: [PATCH nf-next-2.6 2/2] conntrack: per_cpu untracking, Patrick McHardy, (Tue Jun 8, 7:29 am)
Re: [PATCH nf-next-2.6 2/2] conntrack: per_cpu untracking, Patrick McHardy, (Wed Jun 9, 5:45 am)