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 07:10:42 +0200 Message-ID: <1309842642.2720.36.camel@edumazet-laptop> References: <20110629145135.5179fb0c.akpm@linux-foundation.org> <1309707971.2523.20.camel@edumazet-laptop> <20110704130531.37cf876e@Nokia-N900> <1309787822.2247.6.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> <20110704162726.4072e715@maggie> <20110704164351.338dc12e@maggie> <1309792323.2247.33.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> <1309837443.2720.8.camel@edumazet-laptop> <1309839068.2720.15.camel@edumazet-laptop> <1309839258.2720.17.camel@edumazet-laptop> <1309839928.2720.23.camel@edumazet-laptop> <1309840708.2720.31.camel@edumazet-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: 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: Alexey Zaytsev Return-path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:58597 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751236Ab1GEFKr (ORCPT ); Tue, 5 Jul 2011 01:10:47 -0400 Received: by wwe5 with SMTP id 5so5564557wwe.1 for ; Mon, 04 Jul 2011 22:10:46 -0700 (PDT) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: Le mardi 05 juillet 2011 =C3=A0 08:57 +0400, Alexey Zaytsev a =C3=A9cri= t : > Ran tcpdump. You are right, I was wrong. Sorry for the noise. Thanks for testing ;) It would be nice to know if the memory scribbles start after or before one RFO triggers. I can see this calls b44_init_rings() without really stopping the devic= e before. This seems very suspect to me. diff --git a/drivers/net/b44.c b/drivers/net/b44.c index a69331e..b22dd4c 100644 --- a/drivers/net/b44.c +++ b/drivers/net/b44.c @@ -829,6 +829,7 @@ static int b44_rx(struct b44 *bp, int budget) } =20 bp->rx_cons =3D cons; + wmb(); bw32(bp, B44_DMARX_PTR, cons * sizeof(struct dma_desc)); =20 return received; @@ -848,6 +849,7 @@ static int b44_poll(struct napi_struct *napi, int b= udget) /* spin_unlock(&bp->tx_lock); */ } if (bp->istat & ISTAT_RFO) { /* fast recovery, in ~20msec */ + pr_err("b44: ISTAT_RFO !\n"); bp->istat &=3D ~ISTAT_RFO; b44_disable_ints(bp); ssb_device_enable(bp->sdev, 0); /* resets ISTAT_RFO */ =20