Patch "libceph: make sure ceph_aes_crypt() IV is aligned" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
libceph: make sure ceph_aes_crypt() IV is aligned
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
libceph-make-sure-ceph_aes_crypt-iv-is-aligned.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
124f930b8cbc4ac11236e6eb1c5f008318864588Mon Sep 17 00:00:00 2001
From: Ilya Dryomov <[email protected]>
Date: Mon, 16 Jan 2017 19:16:46 +0100
Subject: libceph: make sure ceph_aes_crypt() IV is aligned
From: Ilya Dryomov <[email protected]>
commit 124f930b8cbc4ac11236e6eb1c5f008318864588 upstream.
... otherwise the crypto stack will align it for us with a GFP_ATOMIC allocation and a memcpy() -- see skcipher_walk_first().
--- net/ceph/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ceph/crypto.c +1 -1
@@ -164,7 +164,7 @@ static int ceph_aes_crypt(const struct cSKCIPHER_REQUEST_ON_STACK (req, tfm);struct sg_table sgt;struct scatterlist prealloc_sg; -char iv[AES_BLOCK_SIZE ]; +char iv[AES_BLOCK_SIZE ]__aligned(8) ;int pad_byte =AES_BLOCK_SIZE - (in_len & (AES_BLOCK_SIZE -1 ));int crypt_len = encrypt ? in_len + pad_byte : in_len;int ret;
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/libceph-switch-ceph_x_decrypt-to-ceph_crypt.patch queue-4.9/libceph-introduce-ceph_x_encrypt_offset.patch queue-4.9/ceph-fix-endianness-of-getattr-mask-in-ceph_d_revalidate.patch queue-4.9/libceph-rename-and-align-ceph_x_authorizer-reply_buf.patch queue-4.9/libceph-ceph_x_encrypt_buflen-takes-in_len.patch queue-4.9/ceph-fix-endianness-bug-in-frag_tree_split_cmp.patch queue-4.9/libceph-introduce-ceph_crypt-for-in-place-en-decryption.patch queue-4.9/libceph-make-sure-ceph_aes_crypt-iv-is-aligned.patch queue-4.9/ceph-fix-ceph_get_caps-interruption.patch queue-4.9/libceph-old_key-in-process_one_ticket-is-redundant.patch queue-4.9/libceph-tweak-calcu_signature-a-little.patch queue-4.9/libceph-remove-now-unused-ceph_-en-de-crypt-functions.patch queue-4.9/ceph-fix-bad-endianness-handling-in-parse_reply_info_extra.patch queue-4.9/libceph-switch-ceph_x_encrypt-to-ceph_crypt.patch