Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1643818 > unrolled thread
| Started by | Herbert Xu <herbert@gondor.apana.org.au> |
|---|---|
| First post | 2017-05-18 07:20 +0200 |
| Last post | 2017-05-18 11:30 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH 2/4] crypto: drbg wait for crypto op not signal safe Herbert Xu <herbert@gondor.apana.org.au> - 2017-05-18 07:20 +0200
Re: [PATCH 2/4] crypto: drbg wait for crypto op not signal safe Gilad Ben-Yossef <gilad@benyossef.com> - 2017-05-18 11:30 +0200
| From | Herbert Xu <herbert@gondor.apana.org.au> |
|---|---|
| Date | 2017-05-18 07:20 +0200 |
| Subject | Re: [PATCH 2/4] crypto: drbg wait for crypto op not signal safe |
| Message-ID | <tIm0V-5oe-5@gated-at.bofh.it> |
On Thu, May 11, 2017 at 02:53:43PM +0300, Gilad Ben-Yossef wrote: > drbg_kcapi_sym_ctr() was using wait_for_completion_interruptible() to > wait for completion of async crypto op but if a signal occurs it > may return before DMA ops of HW crypto provider finish, thus > corrupting the output buffer. > > Resolve this by using wait_for_completion() instead. > > Reported-by: Eric Biggers <ebiggers3@gmail.com> > Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> > CC: stable@vger.kernel.org This patch doesn't even compile. Please test your work first. Thanks, -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
[toc] | [next] | [standalone]
| From | Gilad Ben-Yossef <gilad@benyossef.com> |
|---|---|
| Date | 2017-05-18 11:30 +0200 |
| Message-ID | <tIpUR-8mm-5@gated-at.bofh.it> |
| In reply to | #1643818 |
On Thu, May 18, 2017 at 8:09 AM, Herbert Xu <herbert@gondor.apana.org.au> wrote: > On Thu, May 11, 2017 at 02:53:43PM +0300, Gilad Ben-Yossef wrote: >> drbg_kcapi_sym_ctr() was using wait_for_completion_interruptible() to >> wait for completion of async crypto op but if a signal occurs it >> may return before DMA ops of HW crypto provider finish, thus >> corrupting the output buffer. >> >> Resolve this by using wait_for_completion() instead. >> >> Reported-by: Eric Biggers <ebiggers3@gmail.com> >> Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> >> CC: stable@vger.kernel.org > > This patch doesn't even compile. Please test your work first. Sigh... I've noticed it, fixed it, compiled it and than went ahead and squashed the fix with the next patch in series instead of this one like an idiot. Please accept my apologies for wasting your time. I'll send a fixed version. Gilad > > Thanks, > -- > Email: Herbert Xu <herbert@gondor.apana.org.au> > Home Page: http://gondor.apana.org.au/~herbert/ > PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- Gilad Ben-Yossef Chief Coffee Drinker "If you take a class in large-scale robotics, can you end up in a situation where the homework eats your dog?" -- Jean-Baptiste Queru
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web