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.0 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 CF069C433E0 for ; Fri, 29 Jan 2021 09:54:31 +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 3431E64DFF for ; Fri, 29 Jan 2021 09:54:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3431E64DFF 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]:35188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5QTw-00050M-Rw for qemu-devel@archiver.kernel.org; Fri, 29 Jan 2021 04:54:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5QTL-0004aY-44 for qemu-devel@nongnu.org; Fri, 29 Jan 2021 04:53:47 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:53661) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1l5QTJ-0003PC-A3 for qemu-devel@nongnu.org; Fri, 29 Jan 2021 04:53:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611914024; 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=l+5ypflzp11oJOOWvOuxz6LW6Y71tZOR0DB98Gy9+pI=; b=LLGlnI4swbDcBc3wRZ+/NaJFJGeSWL/l4EKENHD3mKLoI9FmkX6Rj9JzSbriPxxNhVE/Dt yMt30E9et9Uu3wMJMfNmkGwZNLbXwkGOVr8RHtMLcZgWtj/fQK/Iu8kU2law+Ohrw2slzL H5vcg39xYNJqVBk0bR7spQxTcqagTG4= 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-590-V1ePHfxuMaKUGx4dWGDFcw-1; Fri, 29 Jan 2021 04:53:33 -0500 X-MC-Unique: V1ePHfxuMaKUGx4dWGDFcw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 692ED94DC3; Fri, 29 Jan 2021 09:53:32 +0000 (UTC) Received: from redhat.com (ovpn-115-94.ams2.redhat.com [10.36.115.94]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C11F61DB; Fri, 29 Jan 2021 09:53:30 +0000 (UTC) Date: Fri, 29 Jan 2021 09:53:27 +0000 From: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= To: Roman Bolshakov Subject: Re: macOS (Big Sur, Apple Silicon) 'make check' fails in test-crypto-tlscredsx509 Message-ID: <20210129095327.GC4001740@redhat.com> References: <20210126163647.GJ3640294@redhat.com> <20210127121723.GI3653144@redhat.com> <0de4a2a8-577d-a46e-3a66-1f9a9e589a4d@weilnetz.de> <20210127165330.GT3653144@redhat.com> <72e44724-94ca-43f0-aea1-2554c43cc4c3@weilnetz.de> <20210127181731.GX3653144@redhat.com> <27c01eba-ebc1-9b8e-d7ea-38ad9b4350d9@weilnetz.de> <20210127185917.GB3653144@redhat.com> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.14.6 (2020-07-11) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=berrange@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=63.128.21.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -29 X-Spam_score: -3.0 X-Spam_bar: --- X-Spam_report: (-3.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.252, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Reply-To: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= Cc: Stefan Weil , Alexander Graf , QEMU Developers , Peter Maydell Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Fri, Jan 29, 2021 at 11:43:32AM +0300, Roman Bolshakov wrote: > On Wed, Jan 27, 2021 at 06:59:17PM +0000, Daniel P. Berrangé wrote: > > On Wed, Jan 27, 2021 at 07:56:16PM +0100, Stefan Weil wrote: > > > Am 27.01.21 um 19:17 schrieb Daniel P. Berrangé: > > > > > > > On Wed, Jan 27, 2021 at 06:05:08PM +0100, Stefan Weil wrote: > > > > > Am 27.01.21 um 17:53 schrieb Daniel P. Berrangé: > > > > > > > > > > > In $QEMU.git/crypto/init.c can you uncomment the "#define DEBUG_GNUTLS" > > > > > > line and then re-build and re-run the test case. > > > > > > > > > > > > There's a bunch of debug logs in code paths from gnutls_x509_crt_privkey_sign > > > > > > that might give us useful info. > > > > > > > > > > > > Regards, > > > > > > Daniel > > > > > > > > > > % LANG=C.UTF-8 tests/test-crypto-tlscredsx509 > > > > > # random seed: R02S9b95072a368ad370cdd4c780b8074596 > > > > > 3: ASSERT: mpi.c[wrap_nettle_mpi_print]:60 > > > > > 3: ASSERT: mpi.c[wrap_nettle_mpi_print]:60 > > > > > 2: signing structure using RSA-SHA256 > > > > > 3: ASSERT: common.c[_gnutls_x509_der_encode]:855 > > > > > 3: ASSERT: sign.c[_gnutls_x509_pkix_sign]:174 > > > > > 3: ASSERT: x509_write.c[gnutls_x509_crt_privkey_sign]:1834 > > > > > 3: ASSERT: x509_write.c[gnutls_x509_crt_sign2]:1152 > > > > > Bail out! FATAL-CRITICAL: Failed to sign certificate ASN1 parser: Value is > > > > > not valid. > > > > So it shows its failing inside a asn1_der_coding call, but I can't see > > > > why it would fail, especially if the same test suite passes fine on > > > > macOS x86_64 hosts. > > > > > > > > > It returns ASN1_MEM_ERROR, so the input vector is too small. > > > > Hmm, that's odd - "Value is not valid" corresponds to > > ASN1_VALUE_NOT_VALID error code. > > > > Hi Daniel, Stefan, > > It's interesting that "make check" of libtasn1 fails with three tests > and two of them produce VALUE_NOT_VALID error. > > The failing tests are: > FAIL: Test_parser > FAIL: Test_tree > FAIL: copynode That's interesting. Assuming 'make check' for libtasn1 succeeeds on x86_64 macOS, then I'm inclined to blame this whole problem on libtasn1 not QEMU. Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|