android_kernel_motorola_sm6375/fs/ext4
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Eric Biggers 52d8e5b0ab ext4: report correct st_size for encrypted symlinks
commit 8c4bca10ceafc43b1ca0a9fab5fa27e13cbce99e upstream.

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 ext4_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: f348c25232 ("ext4 crypto: add symlink encryption")
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2021-09-12 08:56:38 +02:00
..
acl.c
acl.h
balloc.c
bitmap.c
block_validity.c
dir.c
ext4.h ext4: fix EXT4_MAX_LOGICAL_BLOCK macro 2021-08-26 08:36:11 -04:00
ext4_extents.h
ext4_jbd2.c
ext4_jbd2.h
extents.c ext4: fix kernel infoleak via ext4_extent_header 2021-07-14 16:53:03 +02:00
extents_status.c ext4: remove check for zero nr_to_scan in ext4_es_scan() 2021-07-14 16:53:03 +02:00
extents_status.h
file.c
fsmap.c
fsmap.h
fsync.c
hash.c
ialloc.c ext4: fix avefreec in find_group_orlov 2021-07-14 16:53:03 +02:00
indirect.c
inline.c ext4: fix race writing to an inline_data file while its xattrs are changing 2021-09-12 08:56:38 +02:00
inode.c ext4: fix bh ref count on error paths 2021-04-07 14:47:38 +02:00
ioctl.c
Kconfig
Makefile
mballoc.c ext4: use ext4_grp_locked_error in mb_find_extent 2021-07-14 16:53:03 +02:00
mballoc.h
migrate.c
mmp.c
move_extent.c
namei.c ext4: fix potential htree corruption when growing large_dir directories 2021-08-12 13:21:02 +02:00
page-io.c
readpage.c
resize.c
super.c ext4: return error code when ext4_fill_flex_info() fails 2021-07-14 16:53:03 +02:00
symlink.c ext4: report correct st_size for encrypted symlinks 2021-09-12 08:56:38 +02:00
sysfs.c
truncate.h
verity.c ext4: fix error handling in ext4_end_enable_verity() 2021-05-26 12:05:21 +02:00
xattr.c
xattr.h
xattr_security.c
xattr_trusted.c
xattr_user.c