From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZK6g-0006QN-Hm for qemu-devel@nongnu.org; Fri, 26 Feb 2016 10:15:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZK6d-0003TJ-8I for qemu-devel@nongnu.org; Fri, 26 Feb 2016 10:15:02 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZK6c-0003TD-Qm for qemu-devel@nongnu.org; Fri, 26 Feb 2016 10:14:59 -0500 Date: Fri, 26 Feb 2016 20:44:52 +0530 From: Amit Shah Message-ID: <20160226151452.GQ10967@grmbl.mre> References: <20160226131554.GP10967@grmbl.mre> <56D0681A.5000705@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56D0681A.5000705@openvz.org> Subject: Re: [Qemu-devel] [PULL 0/6] migration pull List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Denis V. Lunev" Cc: Peter Maydell , Juan Quintela , qemu list , Matthew Fortune , richard.weiyang@gmail.com, "Dr. David Alan Gilbert" , Sascha Silbe On (Fri) 26 Feb 2016 [17:58:34], Denis V. Lunev wrote: > On 02/26/2016 04:15 PM, Amit Shah wrote: > >On (Fri) 26 Feb 2016 [12:23:01], Peter Maydell wrote: > >>Hi. I'm afraid this causes make check to fail: > >Oops, I should've caught that. > > > >> /i386/ahci/flush/migrate: > >> /i386/ahci/migrate/sanity: > >> /i386/ahci/migrate/dma/simple: > >> /i386/ahci/migrate/dma/halted: > >> /i386/ahci/migrate/ncq/simple: > >> /i386/ahci/migrate/ncq/halted: > >>Broken pipe > >>FAIL > >>GTester: last random seed: R02S34da744548f394684dbb7b6d11e14043 > >>(pid=56820) > >> > >>(failure seen on ppc64be, x86-64 linux, aarch64, but not aarch32 or OSX). > >AHCI tests are failing due to Denis's patches. I'm checking why. > > > > Amit > oops. Interesting :( Right - use-after-free; this on top of your patch fixes it. diff --git a/migration/migration.c b/migration/migration.c index f82fdf6..0129d9f 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -366,9 +366,8 @@ static void process_incoming_migration_bh(void *opaque) */ migrate_set_state(&mis->state, MIGRATION_STATUS_ACTIVE, MIGRATION_STATUS_COMPLETED); - migration_incoming_state_destroy(); - qemu_bh_delete(mis->bh); + migration_incoming_state_destroy(); } static void process_incoming_migration_co(void *opaque) Amit