From: Eric Biggers <ebiggers@kernel.org>
To: Tom Lendacky <thomas.lendacky@amd.com>, Gary Hook <gary.hook@amd.com>
Cc: linux-crypto@vger.kernel.org, Cfir Cohen <cfir@google.com>,
David Rientjes <rientjes@google.com>
Subject: gcm-aes-ccp self-tests failure
Date: Tue, 2 Jul 2019 09:06:14 -0700 [thread overview]
Message-ID: <20190702160614.GC895@sol.localdomain> (raw)
Hi Tom and Gary,
On latest cryptodev tree, I'm seeing the following self-test failure after I
built a kernel with the AMD CCP driver and crypto self-tests enabled, and booted
it on system with a Ryzen processor ("Threadripper 1950X"):
[ 4.378985] alg: aead: gcm-aes-ccp encryption test failed (wrong result) on test vector 2, cfg="two even aligned splits"
i.e., in some cases the AES-GCM implementation produces the wrong ciphertext
and/or authentication tag.
Is this is a known issue? When will it be fixed?
The potentially relevant bits of my Kconfig are:
CONFIG_CRYPTO_AES=y
CONFIG_CRYPTO_GCM=y
CONFIG_CRYPTO_DEV_CCP=y
CONFIG_CRYPTO_DEV_CCP_DD=y
CONFIG_CRYPTO_DEV_SP_CCP=y
CONFIG_CRYPTO_DEV_CCP_CRYPTO=y
CONFIG_CRYPTO_DEV_SP_PSP=y
# CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not set
CONFIG_DEBUG_KERNEL=y
CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y
- Eric
next reply other threads:[~2019-07-02 16:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-02 16:06 Eric Biggers [this message]
2019-07-02 17:44 ` gcm-aes-ccp self-tests failure Gary R Hook
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=20190702160614.GC895@sol.localdomain \
--to=ebiggers@kernel.org \
--cc=cfir@google.com \
--cc=gary.hook@amd.com \
--cc=linux-crypto@vger.kernel.org \
--cc=rientjes@google.com \
--cc=thomas.lendacky@amd.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox