From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1SPJUz-0002SY-Kh for mharc-grub-devel@gnu.org; Tue, 01 May 2012 16:16:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41504) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPJUw-0002RS-Dw for grub-devel@gnu.org; Tue, 01 May 2012 16:16:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPJUu-00057q-LI for grub-devel@gnu.org; Tue, 01 May 2012 16:16:33 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:61522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPJUu-00057U-CA for grub-devel@gnu.org; Tue, 01 May 2012 16:16:32 -0400 Received: by wibhj13 with SMTP id hj13so3006939wib.12 for ; Tue, 01 May 2012 13:16:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; bh=+5wQGwisGwPzuAfz7BVt9vLQxLg+4Hq+vAX39QcMc9o=; b=kKy58q/wHl2uZQPLlnnd4U2iBI9MDhhqiJcccG2mdzyjPov/A0dfU/a5yqbP3Lb+pF kHpsyY58inbhrSBCazysWySfGJEGGjGiZhrNH/Cp2xoZzaroEuOwB2YLAFXz98D9oBjG h8n78QQ76w8fQnOdBffzxZmbIgOd0jqPiG8fAw7tw5t5dryThBHseW63NL3E5+JAH/LB 9kMibOy0NkVjFONrz4+NdteVqBW0sjwOOj+iXn8aeqghHNtnOVdVnsokDhkCFk37zebj ulkq3c+3094cUb+FApfzVOU4IHUZx4yZ9R9Ur36eo1iV1rOnBo71qedduKV7h6f+8dLh HHtg== Received: by 10.216.215.33 with SMTP id d33mr3837231wep.59.1335903390221; Tue, 01 May 2012 13:16:30 -0700 (PDT) Received: from fedora.x201.phnet (69-234.197-178.cust.bluewin.ch. [178.197.234.69]) by mx.google.com with ESMTPS id ff9sm38927342wib.2.2012.05.01.13.16.27 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 01 May 2012 13:16:29 -0700 (PDT) Message-ID: <4FA0448F.2040901@gmail.com> Date: Tue, 01 May 2012 22:16:15 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: Mysterious memory corruption bug References: <4FA034B2.2030400@gmail.com> <4FA03FF2.30607@gmail.com> <4FA04234.2060002@gmail.com> In-Reply-To: X-Enigmail-Version: 1.4 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig55867F37550026251E3F084E" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.171 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 May 2012 20:16:36 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig55867F37550026251E3F084E Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 01.05.2012 22:09, Bean wrote: > On Wed, May 2, 2012 at 4:06 AM, Vladimir '=CF=86-coder/phcoder' Serbine= nko > wrote: >> On 01.05.2012 22:02, Bean wrote: >>> Hi, >>> >>> Yeah, I have a patch that save the buffer for later use when there is= >>> no data, it can solve the unnecessary alloc/free loop. >> No, what I mean: allocate a buffer once for every card and then do >> send/recv with only this buffer and copy to/from it when necessary. Th= is >> way if the card DMAs the packet to the same buffer it won't corrupt >> anything. > Hi, > > It's not ok with fragmentation, since there could be multiple ethernet > packet for an ip packet, we need to store the buffer for assembling. We use the buffer I said only for actual calls. It's copied to newly-allocated packet as soon as the call returns. --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig55867F37550026251E3F084E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk+gRJgACgkQNak7dOguQgkTFwD+IF/r9bU317XrmH9Pt1hzM6RL 8s+BZnbDfcwrAh/IF2EA/AreL/FvAy/1mVxJOC+RSBu4R0fvTM85ZfulxZAg73/n =2hBF -----END PGP SIGNATURE----- --------------enig55867F37550026251E3F084E--