Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1672446 > unrolled thread

Re: [PATCH 1/2] crypto: caam - fix gfp allocation flags (part I)

Started byHerbert Xu <herbert@gondor.apana.org.au>
First post2017-06-22 11:10 +0200
Last post2017-06-22 11:10 +0200
Articles 1 — 1 participant

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.


Contents

  Re: [PATCH 1/2] crypto: caam - fix gfp allocation flags (part I) Herbert Xu <herbert@gondor.apana.org.au> - 2017-06-22 11:10 +0200

#1672446 — Re: [PATCH 1/2] crypto: caam - fix gfp allocation flags (part I)

FromHerbert Xu <herbert@gondor.apana.org.au>
Date2017-06-22 11:10 +0200
SubjectRe: [PATCH 1/2] crypto: caam - fix gfp allocation flags (part I)
Message-ID<tV6hI-2Cj-25@gated-at.bofh.it>
On Mon, Jun 19, 2017 at 11:44:45AM +0300, Horia Geantă wrote:
> Changes in the SW cts (ciphertext stealing) code in
> commit 0605c41cc53ca ("crypto: cts - Convert to skcipher")
> revealed a problem in the CAAM driver:
> when cts(cbc(aes)) is executed and cts runs in SW,
> cbc(aes) is offloaded in CAAM; cts encrypts the last block
> in atomic context and CAAM incorrectly decides to use GFP_KERNEL
> for memory allocation.
> 
> Fix this by allowing GFP_KERNEL (sleeping) only when MAY_SLEEP flag is
> set, i.e. remove MAY_BACKLOG flag.
> 
> We split the fix in two parts - first is sent to -stable, while the
> second is not (since there is no known failure case).
> 
> Link: http://lkml.kernel.org/g/20170602122446.2427-1-david@sigma-star.at
> Cc: <stable@vger.kernel.org> # 4.8+
> Reported-by: David Gstir <david@sigma-star.at>
> Signed-off-by: Horia Geantă <horia.geanta@nxp.com>

Patch applied.  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] | [standalone]


Back to top | Article view | linux.kernel


csiph-web