crypto: xts - Propagate NEED_FALLBACK bit
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 26 Feb 2017 04:24:10 +0000 (12:24 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 27 Feb 2017 10:09:41 +0000 (18:09 +0800)
commit89027579bc6c2febbcc9c2f9d5069adf71539e4b
tree4878354fc1ad7f49841254f915d6f77fc21150f6
parent016df0abc56ec06d0c63c5318ef53e40738dea8b
crypto: xts - Propagate NEED_FALLBACK bit

When we're used as a fallback algorithm, we should propagate
the NEED_FALLBACK bit when searching for the underlying ECB mode.

This just happens to fix a hang too because otherwise the search
may end up loading the same module that triggered this XTS creation.

Cc: stable@vger.kernel.org #4.10
Fixes: f1c131b45410 ("crypto: xts - Convert to skcipher")
Reported-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/xts.c