aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorHoria Geantă <[email protected]>2017-06-19 11:44:45 +0300
committerHerbert Xu <[email protected]>2017-06-22 16:47:22 +0800
commit42cfcafb91dabb0f9d9e08396c39824535948c67 (patch)
treedd4b5c603f4893b7a7714f33149ee1703d318652 /net/unix/af_unix.c
parentb61929c654f2e725644935737c4c1ea9c741e2f8 (diff)
crypto: caam - fix gfp allocation flags (part I)
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/[email protected] Cc: <[email protected]> # 4.8+ Reported-by: David Gstir <[email protected]> Signed-off-by: Horia Geantă <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions