diff options
author | Theodore Ts'o <tytso@mit.edu> | 2015-07-17 17:33:16 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2015-07-17 17:33:16 +0200 |
commit | 27977b69e493c9b259eb0490534e0f74bc325ba8 (patch) | |
tree | 69241de6fa96f6db690a1af7e6e76e2d35af93c2 /fs/ext4/ext4.h | |
parent | ext4 crypto: use a jbd2 transaction when adding a crypto policy (diff) | |
download | linux-27977b69e493c9b259eb0490534e0f74bc325ba8.tar.xz linux-27977b69e493c9b259eb0490534e0f74bc325ba8.zip |
ext4 crypto: check for too-short encrypted file names
An encrypted file name should never be shorter than an 16 bytes, the
AES block size. The 3.10 crypto layer will oops and crash the kernel
if ciphertext shorter than the block size is passed to it.
Fortunately, in modern kernels the crypto layer will not crash the
kernel in this scenario, but nevertheless, it represents a corrupted
directory, and we should detect it and mark the file system as
corrupted so that e2fsck can fix this.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
0 files changed, 0 insertions, 0 deletions