summaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2016-10-13 05:30:16 +0200
committerTheodore Ts'o <tytso@mit.edu>2016-10-13 05:30:16 +0200
commitfb4454376df9d820d95452d71dd83da6971f9338 (patch)
treef2054e18f36c9968c8027097b16a4d9951fa37ba /fs/ceph
parentext4: do not advertise encryption support when disabled (diff)
downloadlinux-fb4454376df9d820d95452d71dd83da6971f9338.tar.xz
linux-fb4454376df9d820d95452d71dd83da6971f9338.zip
fscrypto: make XTS tweak initialization endian-independent
The XTS tweak (or IV) was initialized differently on little endian and big endian systems. Because the ciphertext depends on the XTS tweak, it was not possible to use an encrypted filesystem created by a little endian system on a big endian system and vice versa, even if they shared the same PAGE_SIZE. Fix this by always using little endian. This will break hypothetical big endian users of ext4 or f2fs encryption. However, all users we are aware of are little endian, and it's believed that "real" big endian users are unlikely to exist yet. So this might as well be fixed now before it's too late. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Cc: stable@vger.kernel.org
Diffstat (limited to 'fs/ceph')
0 files changed, 0 insertions, 0 deletions