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 20:45:16 +0200 Message-ID: <1309891516.2545.23.camel@edumazet-laptop> References: <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> <1309884441.2271.34.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> <20110705180650.GF2959@hmsreliant.think-freely.org> <1309889634.2545.2.camel@edumazet-laptop> <1309890775.2545.17.camel@edumazet-laptop> 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]:42511 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752435Ab1GESpV (ORCPT ); Tue, 5 Jul 2011 14:45:21 -0400 Received: by wyg8 with SMTP id 8so4194373wyg.19 for ; Tue, 05 Jul 2011 11:45:20 -0700 (PDT) In-Reply-To: <1309890775.2545.17.camel@edumazet-laptop> Sender: netdev-owner@vger.kernel.org List-ID: Le mardi 05 juillet 2011 =C3=A0 20:32 +0200, Eric Dumazet a =C3=A9crit = : > Then, maybe the driver model is completely wrong, and should really > setup 512 buffers, or use less descs but set EOT on last one. >=20 > Currently it uses a 200 sliding window out of the 512 descs. >=20 >=20 One thing we could do would be to allocate a special guard buffer and set all 'out of window' descriptors to point to this guard buffer, and periodically check if buffer is dirtied by the card. (first word would be enough) (instead of setting desc->addr to NULL, set to dma_map_single(guard_buffer))