From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a19:c345:0:0:0:0:0 with SMTP id t66csp4225557lff; Mon, 13 Jan 2020 06:53:31 -0800 (PST) X-Google-Smtp-Source: APXvYqx6ku5Lir6niBmSBULw8dWqppDNNHzahOe605hqU6HZtJgxf1mjNfEl0glaqGojaxCn01Vw X-Received: by 2002:aa7:c591:: with SMTP id g17mr13421538edq.341.1578927211875; Mon, 13 Jan 2020 06:53:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578927211; cv=none; d=google.com; s=arc-20160816; b=DViaiNAfbt0bkXCxCg/ackyMxyZbjaftjHczuwsZb/93kBKWe++Eg70fNuq2FsycMF d5x3h1udNntMtm/xK8Mv4mLe6tyUOgVRUMhej+b0WBznF5ixv+OX93gdAL9rtbg5o7k0 bazrsMrgJu9sDZ7ryrdHPUkTH+SXmTw37eZT0Is2kxeL3mwfbIv5QHmRfxzCIby0GmJH 0E4ZxoG4HtfLpFSdXVLHmsBI8TiI0Qdnk2tR3k+26eayesf3UX7RUGpkuitrlNpiZhme 91FYAI67JH4+uLNke9hewZIEa3mBiPz4MDycvS4KtJn18MgLudBj0ATHoGRSQXSGJrOk 1csQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:to:from:dkim-signature; bh=c8gJ8Vjw2GM971v7+eY/mXlqOnqJ53ZXdglBXcMK7eo=; b=g2ntzSoatbGnceIl77nNXJ5Nz2pgXTpTgsiBHuGN3jWnh+kHAAJ8zx5qaepCmb8sBf /IECnqu3dqGuaDS+3dQi8qPgCpIafrXbBvFaCaktZJFqAsZl3f7LEMbqrElpO23GgzKN dyhxyLfzmd7Y8I3ZVwSbeYsYeigykiY/ywruOlr8Ztuv+VYVQjg54xcJbYl84Fu8J2hU CidL89E5SrxypUGf3GFYOcJoIpsT8VRIbU0Xpj9XKy01NIImmAZ5qUx7IWiI33VKwQup sxGUjLKG9ftYVqMWMMnaaMeEFJ7iJijpSdysfyR8PNcIFwoa4MqyivmRayxUTLEtg46K f7zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=gHW6t3bo; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id nk7si7046940ejb.76.2020.01.13.06.53.31 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Jan 2020 06:53:31 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=gHW6t3bo; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1]:51436 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ir15u-0004by-GO for alex.bennee@linaro.org; Mon, 13 Jan 2020 09:53:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44799) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ir15k-0004bg-6M for qemu-arm@nongnu.org; Mon, 13 Jan 2020 09:53:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ir15i-0003X2-Ui for qemu-arm@nongnu.org; Mon, 13 Jan 2020 09:53:20 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:32540 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ir15i-0003Vh-Rn for qemu-arm@nongnu.org; Mon, 13 Jan 2020 09:53:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578927197; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=c8gJ8Vjw2GM971v7+eY/mXlqOnqJ53ZXdglBXcMK7eo=; b=gHW6t3bojG/GYNz4rMZhkBJIY8sfaeungq0GV0ncWOs5MFmW0dZj/DJRwY8/0FQtaR0ROJ 5+bRC632gC7tLcSuUg3ML98SDXpwOTc17tAujyY/8XDwphLvByY+P089AKP4277Kwf6yio piov1GaYUEZg+9nZMP2JcqGvnRdavE4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-255-PgTAkRagMZix3UAdvFZTzQ-1; Mon, 13 Jan 2020 09:53:15 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8C4238024E2; Mon, 13 Jan 2020 14:53:13 +0000 (UTC) Received: from redhat.com (ovpn-116-99.ams2.redhat.com [10.36.116.99]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5803B60FC4; Mon, 13 Jan 2020 14:53:01 +0000 (UTC) From: Juan Quintela To: Daniel P. =?utf-8?Q?Berrang=C3=A9?= Subject: Re: [PULL 00/28] Migration pull patches In-Reply-To: <20200113132632.GD4033206@redhat.com> ("Daniel P. =?utf-8?Q?B?= =?utf-8?Q?errang=C3=A9=22's?= message of "Mon, 13 Jan 2020 13:26:32 +0000") References: <20200110173215.3865-1-quintela@redhat.com> <20200113132632.GD4033206@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Date: Mon, 13 Jan 2020 15:53:00 +0100 Message-ID: <878smbxvar.fsf@secure.laptop> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: PgTAkRagMZix3UAdvFZTzQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.120 X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: quintela@redhat.com Cc: Laurent Vivier , Peter Maydell , Thomas Huth , Eduardo Habkost , Paolo Bonzini , "Michael S. Tsirkin" , Stefan Weil , Jason Wang , QEMU Developers , "Dr. David Alan Gilbert" , qemu-arm , Corey Minyard , =?utf-8?Q?Marc-Andr=C3=A9?= Lureau , qemu-ppc , Stefan Berger , Richard Henderson , David Gibson Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: uhsZcRU/EIPH Daniel P. Berrang=C3=A9 wrote: >> I also saw this on aarch32 host (more precisely, on the >> aarch32-environment-in-aarch64-chroot setup I use for aarch32 build >> and test): >>=20 >> malloc_consolidate(): invalid chunk size >> Broken pipe >> qemu-system-i386: check_section_footer: Read section footer failed: -5 >> qemu-system-i386: load of migration failed: Invalid argument >> /home/peter.maydell/qemu/tests/libqtest.c:140: kill_qemu() tried to >> terminate QEMU process but encountered exit status 1 (expected 0) >> Aborted >> ERROR - too few tests run (expected 14, got 13) >>=20 >> The memory corruption is reproducible running just the >> /x86_64/migration/multifd/tcp subtest: >>=20 >> (armhf)pmaydell@mustang-maydell:~/qemu/build/all-a32$ >> QTEST_QEMU_BINARY=3Dx86_64-softmmu/qemu-system-x86_64 >> tests/migration-test -p /x86_64/migration/multifd/tcp >> /x86_64/migration/multifd/tcp: qemu-system-x86_64: -accel kvm: invalid >> accelerator kvm >> qemu-system-x86_64: falling back to tcg >> qemu-system-x86_64: -accel kvm: invalid accelerator kvm >> qemu-system-x86_64: falling back to tcg >> qemu-system-x86_64: multifd_send_sync_main: multifd_send_pages fail >> qemu-system-x86_64: failed to save SaveStateEntry with id(name): 3(ram) >> double free or corruption (!prev) >> Broken pipe >> qemu-system-x86_64: Unknown combination of migration flags: 0 >> qemu-system-x86_64: error while loading state section id 3(ram) >> qemu-system-x86_64: load of migration failed: Invalid argument >> /home/peter.maydell/qemu/tests/libqtest.c:140: kill_qemu() tried to >> terminate QEMU process but encountered exit status 1 (expected 0) >> Aborted >>=20 >> Here's what a valgrind run in that aarch32 setup produces: >>=20 > > Missing initialization of MultiFDInit_t msg; to all zeros I *thought* it was in. Sorry. > >> =3D=3D12102=3D=3D >> =3D=3D12102=3D=3D Thread 6 multifdsend_1: >> =3D=3D12102=3D=3D Invalid write of size 4 >> =3D=3D12102=3D=3D at 0x25CC08: multifd_send_fill_packet (ram.c:806) >> =3D=3D12102=3D=3D by 0x25CC08: multifd_send_thread (ram.c:1157) >> =3D=3D12102=3D=3D by 0x557551: qemu_thread_start (qemu-thread-posix.c= :519) >> =3D=3D12102=3D=3D by 0x53BE613: start_thread (pthread_create.c:463) >> =3D=3D12102=3D=3D by 0x54767FB: ??? (clone.S:73) >> =3D=3D12102=3D=3D Address 0x1d89c470 is 0 bytes after a block of size 8= 32 alloc'd >> =3D=3D12102=3D=3D at 0x4841BC4: calloc (vg_replace_malloc.c:711) >> =3D=3D12102=3D=3D by 0x49EE269: g_malloc0 (in >> /usr/lib/arm-linux-gnueabihf/libglib-2.0.so.0.5600.4) > > This is the same issue that was reported last time this mulitfd unit > test was proposed for merge. Back then I pointed out the likely cause. > We were allocating ram_addr_t sized quantity for an array which is > uint64_t, and ram_addr_t is probably 32-bit on this particular build. > > https://lists.gnu.org/archive/html/qemu-devel/2019-07/msg03428.html > > That suggested fix doesn't seem to have been included Thanks again. And sorry for the disturbance.