From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiIIf-0007Im-RG for qemu-devel@nongnu.org; Thu, 08 May 2014 02:59:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WiIIU-0002pA-Iq for qemu-devel@nongnu.org; Thu, 08 May 2014 02:59:25 -0400 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]:42635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiIIU-0002os-BF for qemu-devel@nongnu.org; Thu, 08 May 2014 02:59:14 -0400 Received: by mail-pa0-f53.google.com with SMTP id kp14so2309137pab.26 for ; Wed, 07 May 2014 23:59:13 -0700 (PDT) Date: Thu, 8 May 2014 06:59:22 +0000 From: "Edgar E. Iglesias" Message-ID: <20140508065921.GH7381@hostname> References: <1396218189-14422-1-git-send-email-samuel.thibault@ens-lyon.org> <1396218189-14422-2-git-send-email-samuel.thibault@ens-lyon.org> <20140507221509.GA3302@type.youpi.perso.aquilenet.fr> <20140508061018.GB7523@hostname> <20140508065033.GT6261@type.youpi.perso.aquilenet.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20140508065033.GT6261@type.youpi.perso.aquilenet.fr> Subject: Re: [Qemu-devel] [PATCH, DoS] slirp (arp): do not special-case bogus IP addresses List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Samuel Thibault Cc: qemu-devel@nongnu.org On Thu, May 08, 2014 at 08:50:33AM +0200, Samuel Thibault wrote: > Edgar E. Iglesias, le Thu 08 May 2014 06:10:18 +0000, a écrit : > > The search part looks OK to me but when adding to the arp table, don't > > you at least want to avoid adding mappings for 0.0.0.0/32? > > I don't see the gain, actually. It would mean burning some CPU all the > time just to save a small potential memory loss and CPU burning in the > rare case when the guest behaves oddly. > > > to avoid for ex garps to pollute the cache with invalid entries? > > Only one entry will be created and updated by garps. The guest already > has a lot of ways to pollute the cache :) Hi, I was under the impression that entries for 0.0.0.0 are strictly invalid (not about performance). I might be wrong though. Cheers, Edgar