From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRBi9-0000q4-9g for qemu-devel@nongnu.org; Mon, 08 Sep 2014 23:03:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRBi2-0000j0-0H for qemu-devel@nongnu.org; Mon, 08 Sep 2014 23:03:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRBi1-0000io-PP for qemu-devel@nongnu.org; Mon, 08 Sep 2014 23:03:09 -0400 Message-ID: <540E6DE6.2060704@redhat.com> Date: Tue, 09 Sep 2014 11:03:02 +0800 From: Jason Wang MIME-Version: 1.0 References: <1409211685-31767-1-git-send-email-jasowang@redhat.com> <20140902103832.GI29067@stefanha-thinkpad.redhat.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] net: don't use set/get_pointer() in set/get_netdev() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , Stefan Hajnoczi Cc: Markus Armbruster , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= , qemu-devel , Stefan Hajnoczi , "Michael S. Tsirkin" On 09/05/2014 12:40 AM, Peter Maydell wrote: > On 4 September 2014 17:21, Stefan Hajnoczi wrote: >> Unfortunately this patch breaks aarch64-softmmu qtests: >> GTESTER check-qtest-aarch64 >> Broken pipe >> GTester: last random seed: R02S6d8ab263ca56f8ae7a4b47bdf93fbc73 >> >> Please take a look at what is causing this. > Specifically, it breaks on all the ARM boards which have > more than one built in ethernet device. Something in your > patch is probably assuming there is only one (there's > a somewhat suspicious "[0]" array reference, for instance). > > thanks > -- PMM > The '[0]' dereference was introduced after multiqueue is supported. Since there may be multiple pairs of peers for each nic. The failure reason looks like the ncs[0] pointer should be validated before trying to access them. Will post V2. Thanks