Skip to content

btrfs: add free space tree checks except for FREE_SPACE_BITMAP

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: tree-checker: introduce checks for FREE_SPACE_INFOfs/btrfs/tree-checker.c include/uapi/linux/btrfs_tree.h+47 -12 replies
2/2btrfs: tree-checker: introduce checks for FREE_SPACE_EXTENTfs/btrfs/tree-checker.c+25 -01 reply

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJohannes Thumshirn
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] btrfs: add free space tree checks except for FREE_SPACE_BITMAP

There is a fuzzed image report (*) that a bad item size for FREE_SPACE_BITMAP item can lead to various problems.

And I'm surprised that we do not have any checks for such critical tree, so let's add the proper checks for FREE_SPACE_INFO and FREE_SPACE_EXTENT items

The check for FREE_SPACE_BITMAP item is reserved for the reporter, whose initial fix is not properly put into tree-checker, and also as an example for the reporter to follow.

Qu Wenruo (2):
btrfs: tree-checker: introduce checks for FREE_SPACE_INFO
btrfs: tree-checker: introduce checks for FREE_SPACE_EXTENT

 fs/btrfs/tree-checker.c         | 70 +++++++++++++++++++++++++++++++++
 include/uapi/linux/btrfs_tree.h |  3 +-
 2 files changed, 72 insertions(+), 1 deletion(-)
Signature · 1 line
2.53.0