]> 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)
commit1fcad103ea73bdce4b60558c98cd76688b9dacb6
tree1b196247f70faa977aafc443bf57ecedd4490503
parentb4572e39186c925b874cbeca18c41f3db36bf4e7
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