diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2016-04-16 15:01:09 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-04-20 17:50:01 +0800 |
commit | e81f3340bba2bdcdf021aff511830e718e6e2112 (patch) | |
tree | 2fce034abb35b8caed6170cb9ebad27cc813f95f /fs/ecryptfs/Kconfig | |
parent | b3ab30a7cbdaf7ba20dddeac252cc0238312fff0 (diff) | |
download | op-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