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. Qu Wenruo (4): btrfs-progs: Enhance and export print_objectid function btrfs-progs: Enhance and export print_key_type function btrfs-progs: Ignore invalid key in invalid root btrfs-progs: Do extra chunk check before processing chunk item cmds-check.c | 78 ++++++++++++++++++++++++++++++++ print-tree.c | 145 ++++++++++++++++++++++++++++++----------------------------- print-tree.h | 2 + volumes.c | 8 ++-- volumes.h | 4 ++ 5 files changed, 161 insertions(+), 76 deletions(-) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
