From: Stephan Mueller <smueller@chronox.de>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: linux-crypto@vger.kernel.org
Subject: Re: [PATCH v3 0/3] crypto: drbg - revamp locking
Date: Sun, 19 Apr 2015 17:35:23 +0200 [thread overview]
Message-ID: <2916811.EN7EiDNNhd@myon.chronox.de> (raw)
In-Reply-To: <20150419054931.GC11255@gondor.apana.org.au>
Am Sonntag, 19. April 2015, 13:49:31 schrieb Herbert Xu:
Hi Herbert,
> On Sat, Apr 18, 2015 at 07:35:11PM +0200, Stephan Mueller wrote:
> > Hi,
> >
> > the current implementation of the DRBG generates a shadow copy of its
> > DRBG state for each incoming request. The idea is that only a short
> > term lock is needed to spawn the shadow copy. The drawback is that
> > if multiple parallel requests come in, the generated DRBG shadow
> > states only differ by a high-resolution timer that was mixed in during
> > the shadow state generation.
> >
> > This patch now removes this shadow state and introduces a mutex
> > to serialize all requests to one DRBG instance.
> >
> > The patch was fully CAVS tested and demonstrates that the DRBG still
> > complies with the standard.
>
> All applied.
Thanks -- can you please push your tree? There is one more mutex_init missing:
in drbg_healthcheck.
This missing mutex_init will cause a segfault when booting the kernel with
fips=1
--
Ciao
Stephan
next prev parent reply other threads:[~2015-04-19 15:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-18 17:35 [PATCH v3 0/3] crypto: drbg - revamp locking Stephan Mueller
2015-04-18 17:35 ` [PATCH v3 1/3] crypto: drbg - fix drbg_generate return val check Stephan Mueller
2015-04-18 17:36 ` [PATCH v3 2/3] crypto: drbg - replace spinlock with mutex Stephan Mueller
2015-04-18 17:37 ` [PATCH v3 3/3] crypto: drbg - leave cipher handles operational Stephan Mueller
2015-04-19 5:49 ` [PATCH v3 0/3] crypto: drbg - revamp locking Herbert Xu
2015-04-19 15:35 ` Stephan Mueller [this message]
2015-04-20 0:23 ` Herbert Xu
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=2916811.EN7EiDNNhd@myon.chronox.de \
--to=smueller@chronox.de \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox