]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd3d710b70fb0b2c4d613e8a3dd441840f0f9c4eb
tree4878354fc1ad7f49841254f915d6f77fc21150f6
parentae006ab7d545e92854692c088637b595d13a3b82
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: 8a006845e894 ("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