]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit75c0fa1abe33584a9f2eff04618ac1df38bcf3a9
tree1b196247f70faa977aafc443bf57ecedd4490503
parentd65f362a81eab4ac0ac8cdba6ed6ab3827c1e354
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