commit | 9c4bb8a3a9b4de21753053d667310c2b7cb39916 | [log] [tgz] |
---|---|---|
author | David Gstir <david@sigma-star.at> | Sun Nov 13 22:20:48 2016 +0100 |
committer | Theodore Ts'o <tytso@mit.edu> | Sun Nov 13 20:18:16 2016 -0500 |
tree | f384bbd76dfc293f2cc66c770c5ccfdbc42c43c8 | |
parent | 0b93e1b94b86f826d18a2aaf219a53e271274d49 [diff] |
fscrypt: Let fs select encryption index/tweak Avoid re-use of page index as tweak for AES-XTS when multiple parts of same page are encrypted. This will happen on multiple (partial) calls of fscrypt_encrypt_page on same page. page->index is only valid for writeback pages. Signed-off-by: David Gstir <david@sigma-star.at> Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Theodore Ts'o <tytso@mit.edu>