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.3 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 5282FC4360C for ; Tue, 8 Oct 2019 14:30:46 +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 1C18C205C9 for ; Tue, 8 Oct 2019 14:30:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=vmfacility.fr header.i=@vmfacility.fr header.b="GsJ8t/eR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1C18C205C9 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=vmfacility.fr Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:56648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHqVg-0001r0-6d for qemu-devel@archiver.kernel.org; Tue, 08 Oct 2019 10:30:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48064) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHqDL-0002mX-P0 for qemu-devel@nongnu.org; Tue, 08 Oct 2019 10:11:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iHqDK-0006Bw-1S for qemu-devel@nongnu.org; Tue, 08 Oct 2019 10:11:47 -0400 Received: from db04.iswnet.net ([2001:bc8:3515:300::1]:50266 helo=db04.ivansoftware.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iHqDI-00069s-FN for qemu-devel@nongnu.org; Tue, 08 Oct 2019 10:11:45 -0400 Received: from [IPv6:2a01:cb19:678:2500:7d70:200c:232c:5ea] (unknown [IPv6:2a01:cb19:678:2500:7d70:200c:232c:5ea]) by db04.ivansoftware.com (Postfix) with ESMTPSA id 049D0BE35EF; Tue, 8 Oct 2019 16:11:40 +0200 (CEST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.101.2 at db04 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=vmfacility.fr; s=mail; t=1570543900; bh=lDVRMXnHBDh2JWbrMHWlDcSZbJGfmNsbYtVt3De5I38=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=GsJ8t/eReSIs/iZUbRJbeGJBmLUwDforwruEW5gQyZ/YQ3C9NmP9f+69WDUcWHbNa rGCgM+2+mN3yCYGMqQdiHh4XjhnHViNqzpAhQfVXvPNMPejscRa5+fRhPsiS4L/wyb Inxg1IcDIPdvcIZsnqBt1d2F7k7uFGACtpdGSaRWW+HfbxFgRh5eEQRwttUQGnVGTC BCq44ePETj0cyRh19wSgnXzkNPt4Rx/43SvZ5cSOWPjiTqPHWLhkXQcyal34y/Kmxy x81603dwr+8WTZnHyEQJ8GglCA6kepgqGoAOsZH+AuRopwG/AJan/82MzGgqzJzS9O PK3QlXXQCr+5A== Subject: Re: [Bug 1847232] [NEW] qemu TCG in s390x mode issue with calculating HASH To: David Hildenbrand , Cornelia Huck , Bug 1847232 <1847232@bugs.launchpad.net> Cc: qemu-devel@nongnu.org References: <157053356610.22354.6751604707489617887.malonedeb@gac.canonical.com> <20191008141135.11f5a065.cohuck@redhat.com> <61ce859f-0817-0eba-7eb8-2c16b3e73889@redhat.com> From: Ivan Warren Message-ID: <7a661e58-72df-94bc-4712-f306ce5ee7c6@vmfacility.fr> Date: Tue, 8 Oct 2019 16:11:38 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <61ce859f-0817-0eba-7eb8-2c16b3e73889@redhat.com> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="------------ms050600060405090406020207" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:bc8:3515:300::1 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: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" This is a cryptographically signed message in MIME format. --------------ms050600060405090406020207 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US 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= =2E0-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 us= ing >>> z/Arch vector facilities... >> Not an unreasonable guess, cc:ing David in case he has seen that befor= e. >> > 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=20 file=3DDEB002.IMG.NEW,discard=3Dunmap,cache=3Dwriteback,id=3Ddrive-0,if=3D= none \ =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 in= structed - without it=20 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=20 consider.. Probably one that couldn't be screened through conventional=20 methods. I'm not that versed into z/Arch vector instruction, but if there=20 anything I can help with, I will ! --Ivan --------------ms050600060405090406020207 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC CykwggURMIID+aADAgECAhABSzGLseyYaS5Q+y8WzDO3MA0GCSqGSIb3DQEBCwUAMIGWMQsw CQYDVQQGEwJHQjEbM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YIKoZIhvcNAwICAUAwBwYFKw4DAgcwDQYIKoZIhvcNAwICASgwgbwGCSsGAQQBgjcQBDGB rjCBqzCBljELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G A1UEBxMHU2FsZm9yZDEYMBYGA1UEChMPU2VjdGlnbyBMaW1pdGVkMT4wPAYDVQQDEzVTZWN0 aWdvIFJTQSBDbGllbnQgQXV0aGVudGljYXRpb24gYW5kIFNlY3VyZSBFbWFpbCBDQQIQAUsx i7HsmGkuUPsvFswztzCBvgYLKoZIhvcNAQkQAgsxga6ggaswgZYxCzAJBgNVBAYTAkdCMRsw GQYDVQQIExJHcmVhdGVyIE1hbmNoZXN0ZXIxEDAOBgNVBAcTB1NhbGZvcmQxGDAWBgNVBAoT D1NlY3RpZ28gTGltaXRlZDE+MDwGA1UEAxM1U2VjdGlnbyBSU0EgQ2xpZW50IEF1dGhlbnRp Y2F0aW9uIGFuZCBTZWN1cmUgRW1haWwgQ0ECEAFLMYux7JhpLlD7LxbMM7cwDQYJKoZIhvcN AQEBBQAEggEAVje5MQUA324HiCBTTt0rySCLLpHgBOETyBTdXP9iK9L9NjW3QSOUTqGvTJjb shYSr3FQ8pVKJOIdAYcMey6tn7BfOCFVHjstpOW0i8ld857tt9PJeAwJK7S86miBdHOOF8AK qamJWtkPi3TQCTMmENaDx4ddQ4146VfynRonAVNAIlKOO8br0dJJ4Uk7t/TPbVDMXS1ihmbc ZOGbpiylJlCtYJGCPy/UOeXXgGXbpsbGSCZKoHoSquyBfKhe9PIQBIYROEynXupjVfluABIF RTbqJIiFgm6Rok6WUpwQ0msh44RL2UtAIvFEzjzSNisalnhEd/WPJU2CkTDQ34Sq4gAAAAAA AA== --------------ms050600060405090406020207-- 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 59725C4360C for ; Tue, 8 Oct 2019 14:38:00 +0000 (UTC) Received: from lists.gnu.org (unknown [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 DD73020659 for ; Tue, 8 Oct 2019 14:37:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DD73020659 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=nongnu.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:56744 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHqcg-0000qq-6m for qemu-devel@archiver.kernel.org; Tue, 08 Oct 2019 10:37:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49268) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHqM7-000348-OV for qemu-devel@nongnu.org; Tue, 08 Oct 2019 10:20:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iHqM6-0004Al-6r for qemu-devel@nongnu.org; Tue, 08 Oct 2019 10:20:51 -0400 Received: from indium.canonical.com ([91.189.90.7]:56940) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iHqM6-00048q-0W for qemu-devel@nongnu.org; Tue, 08 Oct 2019 10:20:50 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.86_2 #2 (Debian)) id 1iHqM4-0006Iz-1P for ; Tue, 08 Oct 2019 14:20:48 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id DCB552E80CC for ; Tue, 8 Oct 2019 14:20:47 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 08 Oct 2019 14:11:38 -0000 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: Ivan Warren (ivmn) References: <157053356610.22354.6751604707489617887.malonedeb@gac.canonical.com> <61ce859f-0817-0eba-7eb8-2c16b3e73889@redhat.com> Message-Id: <7a661e58-72df-94bc-4712-f306ce5ee7c6@vmfacility.fr> 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: 0b7cc24fa8a045dda92ce6ff2bf83760e884d7c2 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: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Reply-to: Ivan Warren From: Ivan Warren via Message-ID: <20191008141138.PHotTTv2uDkKZj3h63YxtLXkgKpnO9BNJtggLSCc9C4@z> 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 using >>> 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=3Dn= one \ =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 inst= ructed - 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 ! --Ivan -- = 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