From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [Bugme-new] [Bug 38102] New: BUG kmalloc-2048: Poison overwritten Date: Tue, 05 Jul 2011 18:47:21 +0200 Message-ID: <1309884441.2271.34.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> References: <1309839928.2720.23.camel@edumazet-laptop> <1309840708.2720.31.camel@edumazet-laptop> <1309842642.2720.36.camel@edumazet-laptop> <1309844009.2720.39.camel@edumazet-laptop> <1309845573.2720.41.camel@edumazet-laptop> <20110705160531.GC2959@hmsreliant.think-freely.org> <1309882352.2271.19.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> <20110705164202.GD2959@hmsreliant.think-freely.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Alexey Zaytsev , Michael =?ISO-8859-1?Q?B=FCsch?= , Andrew Morton , netdev@vger.kernel.org, Gary Zambrano , bugme-daemon@bugzilla.kernel.org, "David S. Miller" , Pekka Pietikainen , Florian Schirmer , Felix Fietkau , Michael Buesch To: Neil Horman Return-path: Received: from mail-wy0-f174.google.com ([74.125.82.174]:46597 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755903Ab1GEQrg (ORCPT ); Tue, 5 Jul 2011 12:47:36 -0400 Received: by wyg8 with SMTP id 8so4127899wyg.19 for ; Tue, 05 Jul 2011 09:47:35 -0700 (PDT) In-Reply-To: <20110705164202.GD2959@hmsreliant.think-freely.org> Sender: netdev-owner@vger.kernel.org List-ID: Le mardi 05 juillet 2011 =C3=A0 12:42 -0400, Neil Horman a =C3=A9crit : > On Tue, Jul 05, 2011 at 06:12:32PM +0200, Eric Dumazet wrote: > > So all descriptors before prod are guaranteed to be ready for host > > consume... Fact that a dma access is running on 'next descriptor' s= hould > > be irrelevant. > >=20 > But we handle more than one descriptor per b44_rx call - theres a whi= le loop in > there where we do advance to the next descriptor. Yes, but we advance up to 'prod', which is the very last safe descriptor. If hardware advertises descriptor X being ready to be handled by host, while DMA on this X descriptor is not yet finished, this would be a really useless hardware ;)