ext4: zero out the unused memory region in the extent tree block
authorSriram Rajagopalan <sriramr@arista.com>
Fri, 10 May 2019 23:28:06 +0000 (19:28 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 10 May 2019 23:28:06 +0000 (19:28 -0400)
commit592acbf16821288ecdc4192c47e3774a4c48bb64
tree1b196247f70faa977aafc443bf57ecedd4490503
parentdb90f41916cf04c020062f8d8b0385942248283e
ext4: zero out the unused memory region in the extent tree block

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>
Cc: stable@kernel.org
fs/ext4/extents.c