android_kernel_samsung_msm8226/fs/ext4
Sriram Rajagopalan 0c49e53d6f ext4: zero out the unused memory region in the extent tree block
commit 592acbf16821288ecdc4192c47e3774a4c48bb64 upstream.

This commit zeroes out the unused memory region in the buffer_head
corresponding to the extent metablock after writing the extent header
and the corresponding extent node entries.

This is done to prevent random uninitialized data from getting into
the filesystem when the extent block is synced.

This fixes CVE-2019-11833.

Signed-off-by: Sriram Rajagopalan <sriramr@arista.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
Change-Id: Ie670aab0f8f039ba6a1b258efe1ae440e0f544d9
2020-01-06 08:40:44 +01:00
..
Kconfig ext4: load the crc32c driver if necessary 2020-01-06 08:40:37 +01:00
Makefile
acl.c BACKPORT: posix_acl: Clear SGID bit when setting file permissions 2019-08-06 12:23:27 +02:00
acl.h
balloc.c ext4: only look at the bg_flags field if it is valid 2020-01-06 08:40:37 +01:00
bitmap.c ext4: calculate and verify checksums for inode bitmaps 2020-01-06 08:40:37 +01:00
block_validity.c
dir.c misc: Import SM-G900H kernel source code 2019-08-02 15:14:10 +02:00
ext4.h ext4: calculate and verify checksums for inode bitmaps 2020-01-06 08:40:37 +01:00
ext4_extents.h ext4: verify the depth of extent tree in ext4_find_extent() 2020-01-06 08:40:40 +01:00
ext4_jbd2.c ext4: calculate and verify superblock checksum 2020-01-06 08:40:37 +01:00
ext4_jbd2.h ext4: calculate and verify superblock checksum 2020-01-06 08:40:37 +01:00
extents.c ext4: zero out the unused memory region in the extent tree block 2020-01-06 08:40:44 +01:00
file.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
fsync.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
hash.c
ialloc.c ext4: fix check to prevent initializing reserved inodes 2020-01-06 08:40:37 +01:00
indirect.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
inode.c ext4: calculate and verify inode checksums 2020-01-06 08:40:37 +01:00
ioctl.c ext4: calculate and verify inode checksums 2020-01-06 08:40:37 +01:00
mballoc.c ext4: only look at the bg_flags field if it is valid 2020-01-06 08:40:37 +01:00
mballoc.h
migrate.c
mmp.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
move_extent.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
namei.c ext4: calculate and verify superblock checksum 2020-01-06 08:40:37 +01:00
page-io.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
resize.c ext4: calculate and verify checksums for inode bitmaps 2020-01-06 08:40:37 +01:00
super.c ext4: fix check to prevent initializing reserved inodes 2020-01-06 08:40:37 +01:00
super_ misc: Import SM-G900H kernel source code 2019-08-02 15:14:10 +02:00
symlink.c
truncate.h
xattr.c ext4: always verify the magic number in xattr blocks 2020-01-06 08:40:37 +01:00
xattr.h ext4: change on-disk layout to support extended metadata checksumming 2020-01-06 08:40:37 +01:00
xattr_security.c
xattr_trusted.c
xattr_user.c