From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1SPJLA-0007fR-Bs for mharc-grub-devel@gnu.org; Tue, 01 May 2012 16:06:28 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPJL7-0007f1-Nv for grub-devel@gnu.org; Tue, 01 May 2012 16:06:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPJL4-0001Pa-T1 for grub-devel@gnu.org; Tue, 01 May 2012 16:06:25 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:56584) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPJL4-0001PG-KA for grub-devel@gnu.org; Tue, 01 May 2012 16:06:22 -0400 Received: by werj55 with SMTP id j55so3448093wer.0 for ; Tue, 01 May 2012 13:06:20 -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=FiTT+Z0MB0yFQ1CFis7XhU+u+4bLWDKIibPfQ/WUft4=; b=MmItFEixpua1yBjfaXmGwDJ+nJrgs56RpbdkQ3AAyXeN1sjEcypO5XEGn3S2KRp+bv mlohgoLlvPKCsKO9+xMI078mkGQqqDtX7JUtrJ2AjLSypGee2lun9dQ1mgnPrGy3sFLs 9aBmHGJ95u/QYn8UTi153C60LuaaDbhk8bXa1yVl2Rl/+OeDR++XpCp6oynMmHx1JSuu yAhxPMZ1RDvaZ2MhogdoA7rsPDHj2AqWXJKNkQYlMA5jTcGbyrdMQQlXHM3zDKNaL1lC HMFWQpc72GC3vXc2h1IWITJKKju+LJzuEM94GhctJy1EWBEW7/g0EDuXjiFOsSYI24PX gaHw== Received: by 10.180.78.40 with SMTP id y8mr7665661wiw.15.1335902780617; Tue, 01 May 2012 13:06:20 -0700 (PDT) Received: from debian.x201.phnet (9-234.197-178.cust.bluewin.ch. [178.197.234.9]) by mx.google.com with ESMTPS id ff2sm61301390wib.9.2012.05.01.13.06.17 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 01 May 2012 13:06:19 -0700 (PDT) Message-ID: <4FA04234.2060002@gmail.com> Date: Tue, 01 May 2012 22:06:12 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120329 Icedove/10.0.3 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: Mysterious memory corruption bug References: <4FA034B2.2030400@gmail.com> <4FA03FF2.30607@gmail.com> In-Reply-To: X-Enigmail-Version: 1.4.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig8D7582CBEDAE6E8E67AC7A15" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.169 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:06:27 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8D7582CBEDAE6E8E67AC7A15 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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. This way if the card DMAs the packet to the same buffer it won't corrupt anything. --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig8D7582CBEDAE6E8E67AC7A15 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+gQjUACgkQNak7dOguQgnzkAD+K4BlkNwKSEq183ziFOcB8iIr HR+WNs5TfkpU6vOSC4YBAKgH2zY3x6+RmQlbl+jJAPAdHVMGkad1ra4EuB9mBSC1 =lz4d -----END PGP SIGNATURE----- --------------enig8D7582CBEDAE6E8E67AC7A15--