Eric Biggers 461b43a8f9 f2fs: report correct st_size for encrypted symlinks
The stat() family of syscalls report the wrong size for encrypted
symlinks, which has caused breakage in several userspace programs.

Fix this by calling fscrypt_symlink_getattr() after f2fs_getattr() for
encrypted symlinks.  This function computes the correct size by reading
and decrypting the symlink target (if it's not already cached).

For more details, see the commit which added fscrypt_symlink_getattr().

Fixes: cbaf042a3cc6 ("f2fs crypto: add symlink encryption")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20210702065350.209646-4-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
2021-07-25 20:01:06 -07:00
..
2021-04-10 10:36:39 -07:00
2021-01-24 14:27:20 +01:00
2021-06-23 01:09:34 -07:00
2021-03-30 18:48:56 -07:00
2021-01-27 15:20:07 -08:00
2021-05-04 18:03:38 -07:00
2021-05-04 18:03:38 -07:00
2021-04-10 10:36:39 -07:00