From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2iFV-0008CM-TR for qemu-devel@nongnu.org; Wed, 29 Feb 2012 07:03:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2iFQ-0005x8-OY for qemu-devel@nongnu.org; Wed, 29 Feb 2012 07:03:13 -0500 Received: from david.siemens.de ([192.35.17.14]:15916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2iFQ-0005vn-EG for qemu-devel@nongnu.org; Wed, 29 Feb 2012 07:03:08 -0500 Message-ID: <4F4E13D6.7040205@siemens.com> Date: Wed, 29 Feb 2012 13:02:30 +0100 From: Jan Kiszka MIME-Version: 1.0 References: <0715077165dcc37924cd9113ea7ba23ddb043a22.1329493546.git.jan.kiszka@siemens.com> <4F4D52C2.7050304@weilnetz.de> In-Reply-To: <4F4D52C2.7050304@weilnetz.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/3] slirp: Fix requeuing of batchq packets in if_start List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: Zhi Yong Wu , qemu-devel@nongnu.org, Fabien Chouteau On 2012-02-28 23:18, Stefan Weil wrote: > Am 17.02.2012 16:45, schrieb Jan Kiszka: >> In case we requeued a packet that was the head of a longer session >> queue, we failed to restore this ordering. Also, we did not properly >> deal with changes to Slirp::next_m. >> >> Instead of a cumbersome roll back, this fix simply avoids any changes >> until we know if the packet was actually sent. Both fixes crashes due >> to inconsistent queues and simplifies the logic. >> >> Thanks to Zhi Yong Wu who found the reason for these crashes. >> >> CC: Zhi Yong Wu >> CC: Fabien Chouteau >> Signed-off-by: Jan Kiszka >> --- >> slirp/if.c | 35 +++++++++++++++++++---------------- >> 1 files changed, 19 insertions(+), 16 deletions(-) > > Latest QEMU crashed here 4 times with MIPS Malta > when I tried 'apt-get update' in the guest. See gdb output > below for details. > > I only got the crash with big endian MIPS, not with little > endian which is strange. > > After I reverted the above patch, MIPS Malta worked > again as before. > > So maybe we changed one crash against a new one. Could you retry with git://git.kiszka.org/qemu.git queues/slirp ? TIA, Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux