libceph: make sure ceph_aes_crypt() IV is aligned
authorIlya Dryomov <idryomov@gmail.com>
Mon, 16 Jan 2017 18:16:46 +0000 (19:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jan 2017 07:24:43 +0000 (08:24 +0100)
commita193c72475960dfb98a37d0fc7739a10ccd95111
tree0a4a8ad997d66c92b759cd799186b21a9fb363fe
parent6e9fa67c58ccd59df9cc21a8e9a4c4f9aea15fa8
libceph: make sure ceph_aes_crypt() IV is aligned

commit 124f930b8cbc4ac11236e6eb1c5f008318864588 upstream.

... otherwise the crypto stack will align it for us with a GFP_ATOMIC
allocation and a memcpy() -- see skcipher_walk_first().

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ceph/crypto.c