From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3DAECC4CECE for ; Mon, 14 Oct 2019 09:54:11 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 12AA120663 for ; Mon, 14 Oct 2019 09:54:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 12AA120663 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:46334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJx3K-0003ZU-A0 for qemu-devel@archiver.kernel.org; Mon, 14 Oct 2019 05:54:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37258) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJx2P-0002zU-Iz for qemu-devel@nongnu.org; Mon, 14 Oct 2019 05:53:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJx2O-0007UA-Al for qemu-devel@nongnu.org; Mon, 14 Oct 2019 05:53:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39048) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iJx2O-0007Sf-2T for qemu-devel@nongnu.org; Mon, 14 Oct 2019 05:53:12 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8180D307CDC0; Mon, 14 Oct 2019 09:53:10 +0000 (UTC) Received: from [10.36.116.28] (ovpn-116-28.ams2.redhat.com [10.36.116.28]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7C1515DA2C; Mon, 14 Oct 2019 09:53:09 +0000 (UTC) Subject: Re: [Bug 1847232] [NEW] qemu TCG in s390x mode issue with calculating HASH To: Ivan Warren , Cornelia Huck , Bug 1847232 <1847232@bugs.launchpad.net> References: <157053356610.22354.6751604707489617887.malonedeb@gac.canonical.com> <20191008141135.11f5a065.cohuck@redhat.com> <61ce859f-0817-0eba-7eb8-2c16b3e73889@redhat.com> <7a661e58-72df-94bc-4712-f306ce5ee7c6@vmfacility.fr> From: David Hildenbrand Organization: Red Hat GmbH Message-ID: <8ada8acb-d2ce-a09d-6c9a-b758360edcb2@redhat.com> Date: Mon, 14 Oct 2019 11:53:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: <7a661e58-72df-94bc-4712-f306ce5ee7c6@vmfacility.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Mon, 14 Oct 2019 09:53:10 +0000 (UTC) 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: 209.132.183.28 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 08.10.19 16:11, Ivan Warren wrote: >=20 > On 10/8/2019 3:35 PM, David Hildenbrand wrote: >> On 08.10.19 14:11, Cornelia Huck wrote: >>> On Tue, 08 Oct 2019 11:19:25 -0000 >>> Ivan Warren via wrote: >>> >>>> Public bug reported: >>>> >>>> When using go on s390x on Debian x64 (buster) (host) and debian s390= x >>>> (sid) (guest) I run into the following problem : >>>> >>>> The following occurs while trying to build a custom project : >>>> >>>> go: github.com/FactomProject/basen@v0.0.0-20150613233007-fe3947df716= e: >>>> Get >>>> https://proxy.golang.org/github.com/%21factom%21project/basen/@v/v0.= 0.0-20150613233007-fe3947df716e.mod: >>>> local error: tls: bad record MAC >>>> >>>> Doing a git bisect I find that this problem only occurs on and after >>>> commit 08ef92d556c584c7faf594ff3af46df456276e1b >>>> >>>> Before that commit, all works fine. Past this commit, build always >>>> fails. >>> What version are you using? Current master? >>> >>> Can you please share your command line? >>> >>>> Without any proof, It looks like a hash calculation bug related to u= sing >>>> z/Arch vector facilities... >>> Not an unreasonable guess, cc:ing David in case he has seen that befo= re. >>> >> Can you reproduce with "-cpu qemu,vx=3Doff" added to the QEMU command >> line? Could be some fallout from vector instruction support. Currently >> ill, will have a look when I'm feeling better. >=20 > Reposted with a reply all... (sorry for the duplicates) >=20 > So it does ! >=20 >=20 > My qemu command line is now (forget the odd funny networking things..) >=20 > qemu-system-s390x \ > =C2=A0=C2=A0=C2=A0 -drive > file=3DDEB002.IMG.NEW,discard=3Dunmap,cache=3Dwriteback,id=3Ddrive-0,if= =3Dnone \ > =C2=A0=C2=A0=C2=A0 -device virtio-scsi-ccw,id=3Dvirtio-scsi-0 \ > =C2=A0=C2=A0=C2=A0 -device scsi-hd,id=3Dscsi-hd-0,drive=3Ddrive-0 \ > =C2=A0=C2=A0=C2=A0 -m 8G \ > =C2=A0=C2=A0=C2=A0 -net nic,macaddr=3D52:54:00:00:00:02 \ > =C2=A0=C2=A0=C2=A0 -net tap,ifname=3Dtaparm,script=3Dno \ > =C2=A0=C2=A0=C2=A0 -nographic -accel tcg,thread=3Dmulti \ > =C2=A0=C2=A0=C2=A0 -monitor unix:ms,server,nowait \ > =C2=A0=C2=A0=C2=A0 -cpu qemu,vx=3Doff \=C2=A0 ##### THAT WAS ADDED as= instructed - without it > everything goes kaput ! > =C2=A0=C2=A0=C2=A0 -smp 12 >=20 > And using the latest bleeding edge qemu from github, my build works (th= e > problem goes away). >=20 > So the z/Arch vector instructions may have a glitch is a venue to > consider.. Probably one that couldn't be screened through conventional > methods. >=20 > I'm not that versed into z/Arch vector instruction, but if there > anything I can help with, I will ! I'll have to reproduce, can you outline the steps needed to trigger=20 this? (never had to build a go project before #luckyme ( ;) )). It looks=20 like https://github.com/FactomProject/basen is getting pulled in from=20 some other project? Thanks! --=20 Thanks, David / dhildenb From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C77CC4CECE for ; Mon, 14 Oct 2019 10:02:47 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2FBF5207FF for ; Mon, 14 Oct 2019 10:02:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2FBF5207FF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bugs.launchpad.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:46390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJxBe-0007ib-4k for qemu-devel@archiver.kernel.org; Mon, 14 Oct 2019 06:02:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38161) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJxAJ-0006zi-6f for qemu-devel@nongnu.org; Mon, 14 Oct 2019 06:01:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJxAD-0008L4-Sh for qemu-devel@nongnu.org; Mon, 14 Oct 2019 06:01:23 -0400 Received: from indium.canonical.com ([91.189.90.7]:39970) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iJxAB-00088R-6M for qemu-devel@nongnu.org; Mon, 14 Oct 2019 06:01:17 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.86_2 #2 (Debian)) id 1iJxA6-0002P2-E1 for ; Mon, 14 Oct 2019 10:01:10 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 675892E802D for ; Mon, 14 Oct 2019 10:01:10 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 14 Oct 2019 09:53:08 -0000 From: David Hildenbrand <1847232@bugs.launchpad.net> To: qemu-devel@nongnu.org X-Launchpad-Notification-Type: bug X-Launchpad-Bug: product=qemu; status=New; importance=Undecided; assignee=None; X-Launchpad-Bug-Tags: s390x X-Launchpad-Bug-Information-Type: Public X-Launchpad-Bug-Private: no X-Launchpad-Bug-Security-Vulnerability: no X-Launchpad-Bug-Commenters: davidhildenbrand ivmn X-Launchpad-Bug-Reporter: Ivan Warren (ivmn) X-Launchpad-Bug-Modifier: David Hildenbrand (davidhildenbrand) References: <157053356610.22354.6751604707489617887.malonedeb@gac.canonical.com> <61ce859f-0817-0eba-7eb8-2c16b3e73889@redhat.com> <7a661e58-72df-94bc-4712-f306ce5ee7c6@vmfacility.fr> Message-Id: <8ada8acb-d2ce-a09d-6c9a-b758360edcb2@redhat.com> Subject: Re: [Bug 1847232] [NEW] qemu TCG in s390x mode issue with calculating HASH X-Launchpad-Message-Rationale: Subscriber (QEMU) @qemu-devel-ml X-Launchpad-Message-For: qemu-devel-ml Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="af2eefe214bd95389a09b7c956720881bab16807"; Instance="production-secrets-lazr.conf" X-Launchpad-Hash: f565de9d72854df3614f36e595dccc25f3694365 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 91.189.90.7 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bug 1847232 <1847232@bugs.launchpad.net> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Message-ID: <20191014095308.LpuohJsGmdUEe-7qYFiI9hKIu7Cc3xFmf4NEu6Y4Fks@z> On 08.10.19 16:11, Ivan Warren wrote: > = > On 10/8/2019 3:35 PM, David Hildenbrand wrote: >> On 08.10.19 14:11, Cornelia Huck wrote: >>> On Tue, 08 Oct 2019 11:19:25 -0000 >>> Ivan Warren via wrote: >>> >>>> Public bug reported: >>>> >>>> When using go on s390x on Debian x64 (buster) (host) and debian s390x >>>> (sid) (guest) I run into the following problem : >>>> >>>> The following occurs while trying to build a custom project : >>>> >>>> go: github.com/FactomProject/basen@v0.0.0-20150613233007-fe3947df716e: >>>> Get >>>> https://proxy.golang.org/github.com/%21factom%21project/basen/@v/v0.0.= 0-20150613233007-fe3947df716e.mod: >>>> local error: tls: bad record MAC >>>> >>>> Doing a git bisect I find that this problem only occurs on and after >>>> commit 08ef92d556c584c7faf594ff3af46df456276e1b >>>> >>>> Before that commit, all works fine. Past this commit, build always >>>> fails. >>> What version are you using? Current master? >>> >>> Can you please share your command line? >>> >>>> Without any proof, It looks like a hash calculation bug related to usi= ng >>>> z/Arch vector facilities... >>> Not an unreasonable guess, cc:ing David in case he has seen that before. >>> >> Can you reproduce with "-cpu qemu,vx=3Doff" added to the QEMU command >> line? Could be some fallout from vector instruction support. Currently >> ill, will have a look when I'm feeling better. > = > Reposted with a reply all... (sorry for the duplicates) > = > So it does ! > = > = > My qemu command line is now (forget the odd funny networking things..) > = > qemu-system-s390x \ > =C2=A0=C2=A0=C2=A0 -drive > file=3DDEB002.IMG.NEW,discard=3Dunmap,cache=3Dwriteback,id=3Ddrive-0,if= =3Dnone \ > =C2=A0=C2=A0=C2=A0 -device virtio-scsi-ccw,id=3Dvirtio-scsi-0 \ > =C2=A0=C2=A0=C2=A0 -device scsi-hd,id=3Dscsi-hd-0,drive=3Ddrive-0 \ > =C2=A0=C2=A0=C2=A0 -m 8G \ > =C2=A0=C2=A0=C2=A0 -net nic,macaddr=3D52:54:00:00:00:02 \ > =C2=A0=C2=A0=C2=A0 -net tap,ifname=3Dtaparm,script=3Dno \ > =C2=A0=C2=A0=C2=A0 -nographic -accel tcg,thread=3Dmulti \ > =C2=A0=C2=A0=C2=A0 -monitor unix:ms,server,nowait \ > =C2=A0=C2=A0=C2=A0 -cpu qemu,vx=3Doff \=C2=A0 ##### THAT WAS ADDED as i= nstructed - without it > everything goes kaput ! > =C2=A0=C2=A0=C2=A0 -smp 12 > = > And using the latest bleeding edge qemu from github, my build works (the > problem goes away). > = > So the z/Arch vector instructions may have a glitch is a venue to > consider.. Probably one that couldn't be screened through conventional > methods. > = > I'm not that versed into z/Arch vector instruction, but if there > anything I can help with, I will ! I'll have to reproduce, can you outline the steps needed to trigger = this? (never had to build a go project before #luckyme ( ;) )). It looks = like https://github.com/FactomProject/basen is getting pulled in from = some other project? Thanks! -- = Thanks, David / dhildenb -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1847232 Title: qemu TCG in s390x mode issue with calculating HASH Status in QEMU: New Bug description: When using go on s390x on Debian x64 (buster) (host) and debian s390x (sid) (guest) I run into the following problem : The following occurs while trying to build a custom project : go: github.com/FactomProject/basen@v0.0.0-20150613233007-fe3947df716e: Get https://proxy.golang.org/github.com/%21factom%21project/basen/@v/v0.0.0-2= 0150613233007-fe3947df716e.mod: local error: tls: bad record MAC Doing a git bisect I find that this problem only occurs on and after commit 08ef92d556c584c7faf594ff3af46df456276e1b Before that commit, all works fine. Past this commit, build always fails. Without any proof, It looks like a hash calculation bug related to using z/Arch vector facilities... To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1847232/+subscriptions