public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: add free space tree checks except for FREE_SPACE_BITMAP
@ 2026-03-09 22:19 Qu Wenruo
  2026-03-09 22:19 ` [PATCH 1/2] btrfs: tree-checker: introduce checks for FREE_SPACE_INFO Qu Wenruo
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Qu Wenruo @ 2026-03-09 22:19 UTC (permalink / raw)
  To: linux-btrfs; +Cc: gality369

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(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-03-13 19:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-09 22:19 [PATCH 0/2] btrfs: add free space tree checks except for FREE_SPACE_BITMAP Qu Wenruo
2026-03-09 22:19 ` [PATCH 1/2] btrfs: tree-checker: introduce checks for FREE_SPACE_INFO Qu Wenruo
2026-03-10 10:36   ` Johannes Thumshirn
2026-03-13 19:47   ` David Sterba
2026-03-09 22:19 ` [PATCH 2/2] btrfs: tree-checker: introduce checks for FREE_SPACE_EXTENT Qu Wenruo
2026-03-10 10:41   ` Johannes Thumshirn
2026-03-10 10:42 ` [PATCH 0/2] btrfs: add free space tree checks except for FREE_SPACE_BITMAP Johannes Thumshirn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox