From: "Daniel P. Berrange" <berrange@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PULL v1 0/2] Merge qcrypto-next 2016/07/20
Date: Thu, 21 Jul 2016 10:43:31 +0100 [thread overview]
Message-ID: <20160721094331.GE13528@redhat.com> (raw)
In-Reply-To: <CAFEAcA9+TaoZa4+tz2CJ9g5dHeM6TrPpqU=EstdYBF6DsqBcsw@mail.gmail.com>
On Wed, Jul 20, 2016 at 08:31:09PM +0100, Peter Maydell wrote:
> On 20 July 2016 at 12:32, Daniel P. Berrange <berrange@redhat.com> wrote:
> > The following changes since commit a3b343772114c8c98986508f3352a631164f913c:
> >
> > Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2016-07-19 15:08:05 +0100)
> >
> > are available in the git repository at:
> >
> > git://github.com/berrange/qemu tags/pull-qcrypto-2016-07-20-1
> >
> > for you to fetch changes up to 718083de8051736bba02f10dc4a88bd14ff6b79b:
> >
> > crypto: don't open-code qcrypto_hash_supports (2016-07-19 16:46:23 +0100)
> >
> > ----------------------------------------------------------------
> > Merge qcrypto-next 2016/07/20 v1
> >
> > ----------------------------------------------------------------
> > Daniel P. Berrange (2):
> > crypto: use glib as fallback for hash algorithm
> > crypto: don't open-code qcrypto_hash_supports
> >
>
> Fails to build with minimum-glib-version:
>
> /Users/pm215/src/qemu-for-merges/crypto/hash-glib.c:32:33: error: use
> of undeclared identifier 'G_CHECKSUM_SHA512'; did you mean
> 'G_CHECKSUM_SHA1'?
> [QCRYPTO_HASH_ALG_SHA512] = G_CHECKSUM_SHA512,
> ^~~~~~~~~~~~~~~~~
> G_CHECKSUM_SHA1
> /sw/include/glib-2.0/glib/gchecksum.h:48:3: note: 'G_CHECKSUM_SHA1'
> declared here
> G_CHECKSUM_SHA1,
>
> SHA512 doesn't exist in our minimum-supported glib version,
> I think (which has just MD5, SHA1 and SHA256).
Yay, glib docs simply say since 2.16, never mentioning that
SHA512 was not added until 2.36. Filed a bug against glib
to fix this
https://bugzilla.gnome.org/show_bug.cgi?id=769027
It is easy enough to workaround in QEMU, so will do that.
> I also get test failures on the ppc64 build:
>
> TEST: tests/test-crypto-afsplit... (pid=36787)
> /crypto/afsplit/sha256/5:
> Unexpected error in qcrypto_random_bytes() at
> /home/pm215/qemu/crypto/random-stub.c:29:
> No random byte source provided in this build
> FAIL
> GTester: last random seed: R02S49a560b2cb6ee4cfc024d35cc33004f6
> (pid=36789)
> /crypto/afsplit/sha256/5000:
> Unexpected error in qcrypto_random_bytes() at
> /home/pm215/qemu/crypto/random-stub.c:29:
> No random byte source provided in this build
> FAIL
> GTester: last random seed: R02S7e066aa40979ffe0de63a18e2e6a4bfa
> (pid=36790)
> /crypto/afsplit/sha256/big:
> Unexpected error in qcrypto_random_bytes() at
> /home/pm215/qemu/crypto/random-stub.c:29:
> No random byte source provided in this build
> FAIL
> GTester: last random seed: R02S91b927f7808472d3ae4672d177078877
> (pid=36791)
> /crypto/afsplit/sha1/1000:
> Unexpected error in qcrypto_random_bytes() at
> /home/pm215/qemu/crypto/random-stub.c:29:
> No random byte source provided in this build
> FAIL
> GTester: last random seed: R02S0a50082cedeb926cabdf8df1028d4296
> (pid=36792)
> FAIL: tests/test-crypto-afsplit
Ah fun, so afsplit used to automatically skip it tests if
no checksum impl was provided. It never bothered to check
if random byte impl was provided, since the check condition
for that matched that for checksums. Now we're always providing
a checksum impl, the lack of checking for random byte impl rears
its head. Rather than fixing the test, I'm jst going to add a
general fallback random byte source using /dev/[u]random.
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 :|
prev parent reply other threads:[~2016-07-21 9:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-20 11:32 [Qemu-devel] [PULL v1 0/2] Merge qcrypto-next 2016/07/20 Daniel P. Berrange
2016-07-20 11:32 ` [Qemu-devel] [PULL v1 1/2] crypto: use glib as fallback for hash algorithm Daniel P. Berrange
2016-07-20 11:32 ` [Qemu-devel] [PULL v1 2/2] crypto: don't open-code qcrypto_hash_supports Daniel P. Berrange
2016-07-20 19:31 ` [Qemu-devel] [PULL v1 0/2] Merge qcrypto-next 2016/07/20 Peter Maydell
2016-07-21 9:43 ` Daniel P. Berrange [this message]
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=20160721094331.GE13528@redhat.com \
--to=berrange@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/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.