All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: qemu-devel@nongnu.org
Cc: arei.gonglei@huawei.com, famz@redhat.com, wu.wubin@huawei.com
Subject: Re: [Qemu-devel] [PATCH] crypto: add CTR mode support
Date: Thu, 22 Sep 2016 09:16:45 +0100	[thread overview]
Message-ID: <20160922081645.GF352@redhat.com> (raw)
In-Reply-To: <20160922071646.381992.94741@ex-std-node742.prod.rhcloud.com>

On Thu, Sep 22, 2016 at 12:17:43AM -0700, no-reply@ec2-52-6-146-230.compute-1.amazonaws.com wrote:
> Hi,
> 
> Your series failed automatic build test. Please find the testing commands and
> their output below. If you have docker installed, you can probably reproduce it
> locally.

> GTESTER tests/test-crypto-cipher
> **
> ERROR:/tmp/qemu-test/src/tests/test-crypto-cipher.c:528:test_cipher: assertion failed: (err == NULL)
> GTESTER tests/test-crypto-secret
> GTESTER tests/test-qga
> GTESTER tests/test-timed-average
> GTESTER tests/test-io-task
> GTester: last random seed: R02S94c4e01f686829a0cec78fda5b9551b8
> **
> ERROR:/tmp/qemu-test/src/tests/test-crypto-cipher.c:528:test_cipher: assertion failed: (err == NULL)
> GTESTER tests/test-io-channel-socket
> GTester: last random seed: R02S2749a35e038d902a633846f61116c95d
> GTESTER tests/test-io-channel-file
> **
> ERROR:/tmp/qemu-test/src/tests/test-crypto-cipher.c:528:test_cipher: assertion failed: (err == NULL)

It seems you exposed a pre-existing bug in the test suite. It is using
qcrypto_cipher_supports() to check if the cipher algorithm is supported
before running each test case. Unfortunately this assumes that if the
algorithm is supported, then all cipher modes are also supported, which
is not true with --disable-gcrypt --disable-nettle configure flags.

So we need to extend qcrypto_cipher_supports() to take both the algorithm
and mode as parameters.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

  reply	other threads:[~2016-09-22  8:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-22  6:33 [Qemu-devel] [PATCH] crypto: add CTR mode support Gonglei
2016-09-22  7:17 ` no-reply
2016-09-22  8:16   ` Daniel P. Berrange [this message]
2016-09-22  8:41     ` Gonglei (Arei)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160922081645.GF352@redhat.com \
    --to=berrange@redhat.com \
    --cc=arei.gonglei@huawei.com \
    --cc=famz@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=wu.wubin@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.