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: Mon, 04 Jul 2011 16:53:52 +0200 Message-ID: <1309791232.2247.27.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Alexey Zaytsev , 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: Michael =?ISO-8859-1?Q?B=FCsch?= Return-path: Received: from mail-wy0-f174.google.com ([74.125.82.174]:49198 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755628Ab1GDOyH (ORCPT ); Mon, 4 Jul 2011 10:54:07 -0400 Received: by wyg8 with SMTP id 8so3452781wyg.19 for ; Mon, 04 Jul 2011 07:54:06 -0700 (PDT) In-Reply-To: <20110704164351.338dc12e@maggie> Sender: netdev-owner@vger.kernel.org List-ID: Le lundi 04 juillet 2011 =C3=A0 16:43 +0200, Michael B=C3=BCsch a =C3=A9= crit : > On Mon, 4 Jul 2011 16:27:26 +0200 > Michael B=C3=BCsch wrote: > > We do this in b43, which has exactly the same DMA engine. >=20 > (Ok, it turns out we don't do this in b43 (We only do it on the TX si= de). > But that's a bug. We should do a wmb() on the RX side before advanci= ng the > descriptor ring pointer.) Also it appears rx_ring (or tx_ring ) are not necessarily 4K aligned if kzalloc() path is taken. (SL?B DEBUG -> kzalloc(4096) might not be 4K aligned)