Whamcloud - gitweb
e2fsck: validate fscrypt_symlink_data.len for fast symlinks too
authorEric Biggers <ebiggers@google.com>
Sat, 3 Mar 2018 00:59:18 +0000 (16:59 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 3 Mar 2018 21:39:59 +0000 (16:39 -0500)
commit22be59d16bdee1748b7d73f8c49dc4525c6cccff
tree7c1519483e577d51fcd7e505134d24ffbec285de
parent3a86e7a7c7d9d44d564ebadee134dd981118ba14
e2fsck: validate fscrypt_symlink_data.len for fast symlinks too

Both fast and slow encrypted symlinks are prefixed with the ciphertext
length field (fscrypt_symlink_data.len).  But e2fsck was only checking
it for slow symlinks.  Start checking it for fast symlinks too.  This
matches the kernel handling of encrypted symlinks.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass1.c