commit | e81f3340bba2bdcdf021aff511830e718e6e2112 | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Sat Apr 16 15:01:09 2016 +0800 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Wed Apr 20 17:50:01 2016 +0800 |
tree | 2fce034abb35b8caed6170cb9ebad27cc813f95f | |
parent | b3ab30a7cbdaf7ba20dddeac252cc0238312fff0 [diff] |
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>