Re: [RFC PATCH] ext4: validate number of meta clusters in group
From: Theodore Ts'o <tytso@mit.edu>
Date: 2016-07-11 02:52:00
Also in:
linux-fsdevel
From: Theodore Ts'o <tytso@mit.edu>
Date: 2016-07-11 02:52:00
Also in:
linux-fsdevel
On Thu, Jul 07, 2016 at 10:10:40PM +0200, Vegard Nossum wrote:
I ran into a second problem (this time it was num_clusters_in_group() returning a bogus value) with the same symptoms (random memory corruptions), the new attached patch fixes both problems by checking the values at mount time.
Can you give me a dumpe2fs -h of a file system that is causing num_clusters_in_group() to be bogus? I want to make sure I'm checking that correct base values, insteda of doing a brute force loop over all of the block groups and calling ext4_num_clusters_in_group() and ext4_num_base_meta_clusters() for all block groups. Thanks!! - Ted