At 08/30/2016 12:28 AM, David Sterba wrote:
On Mon, Aug 29, 2016 at 04:08:58PM +0800, Qu Wenruo wrote:
This patchset will fix chunk num_stripes FPE error, by introducing another 2
layers of check.
1) Check key type validation against leaf owner(for original mode)
This will prevent invalid key, like CHUNK_ITEM key in root tree, to be
passed to later check.
For original mode, it uses leaf's owner as standard.
For low memory mode, it will use root->objectid(while not in devel
branch yet)
This is an extra early check layer, which could benefit other part.
2) Check chunk item again before processing it
This is the root fix, as final defense for chunk item.
This check itself can already fix the problem.
But 1) can give more info on which is really going wrong in the fs.
Thanks for Lukas for his fuzzed images and report.
Thans for the testing and fixes. Can you please also add the images to
tests/fuzz-tests/images ?
I'll just use the image from Lukas then.
I was trying to make a new image with such specific problem only, but it
seems to need quite a lot work for corrupt-block, I'd just reuse the
fuzzed image from Lukas.
Thanks,
Qu
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html