summaryrefslogtreecommitdiffstats
path: root/fs/ecryptfs/Kconfig
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2016-04-16 15:01:09 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2016-04-20 17:50:01 +0800
commite81f3340bba2bdcdf021aff511830e718e6e2112 (patch)
tree2fce034abb35b8caed6170cb9ebad27cc813f95f /fs/ecryptfs/Kconfig
parentb3ab30a7cbdaf7ba20dddeac252cc0238312fff0 (diff)
downloadop-kernel-dev-e81f3340bba2bdcdf021aff511830e718e6e2112.zip
op-kernel-dev-e81f3340bba2bdcdf021aff511830e718e6e2112.tar.gz
eCryptfs: Do not allocate hash tfm in NORECLAIM context
You cannot allocate crypto tfm objects in NORECLAIM or NOFS contexts. The ecryptfs code currently does exactly that for the MD5 tfm. This patch fixes it by preallocating the MD5 tfm in a safe context. The MD5 tfm is also reentrant so this patch removes the superfluous cs_hash_tfm_mutex. Reported-by: Nicolas Boichat <drinkcat@chromium.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'fs/ecryptfs/Kconfig')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud