Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: minor fixes for handle_direct_tree_backref()
@ 2026-11-25  3:15 Qu Wenruo
  2026-11-25  3:15 ` [PATCH 1/2] btrfs: tree-checker: reject parent backref that goes beyond MAX_LEVEL Qu Wenruo
  2026-11-25  3:15 ` [PATCH 2/2] btrfs: backref: reject direct parent if the current level is maxed out Qu Wenruo
  0 siblings, 2 replies; 3+ messages in thread
From: Qu Wenruo @ 2026-11-25  3:15 UTC (permalink / raw)
  To: linux-btrfs

The first one is a tree-checker enhancement to catch a tree block whose
level is already maxed out, but still has a parent that is not itself.
This should help us to detect such rare corruption early.

The second is a similar hardening at runtime, for
handle_direct_tree_backref(), which is also reported by Sashiko.

Qu Wenruo (2):
  btrfs: tree-checker: reject parent backref that goes beyond MAX_LEVEL
  btrfs: backref: reject direct parent if the current level is maxed out

 fs/btrfs/backref.c      | 11 +++++++++++
 fs/btrfs/tree-checker.c | 24 +++++++++++++++++++++---
 2 files changed, 32 insertions(+), 3 deletions(-)

-- 
2.56.1


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

end of thread, other threads:[~2026-11-25  3:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25  3:15 [PATCH 0/2] btrfs: minor fixes for handle_direct_tree_backref() Qu Wenruo
2026-11-25  3:15 ` [PATCH 1/2] btrfs: tree-checker: reject parent backref that goes beyond MAX_LEVEL Qu Wenruo
2026-11-25  3:15 ` [PATCH 2/2] btrfs: backref: reject direct parent if the current level is maxed out Qu Wenruo

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