]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - crypto/xts.c
crypto: xts - Propagate NEED_FALLBACK bit
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 26 Feb 2017 04:24:10 +0000 (12:24 +0800)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 13 Mar 2017 21:20:54 +0000 (15:20 -0600)
commit79bb7b3d22fa076f8eb4e4c93c42692d4c32bb4a
tree7a807eb340aed760dd5e31938754c1fdaef6e2fa
parentda7949281b78e09ffbc8ac2ca27d767a7db552ab
crypto: xts - Propagate NEED_FALLBACK bit

BugLink: http://bugs.launchpad.net/bugs/1672544
commit 89027579bc6c2febbcc9c2f9d5069adf71539e4b upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
crypto/xts.c