Skip to content

btrfs: minor fixes for handle_direct_tree_backref()

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: tree-checker: reject parent backref that goes beyond MAX_LEVELfs/btrfs/tree-checker.c+21 -31 reply
2/2btrfs: backref: reject direct parent if the current level is maxed outfs/btrfs/backref.c+11 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchFilipe Manana
1/2R-b
2/2R-b

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: minor fixes for handle_direct_tree_backref()

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(-)
Signature · 1 line
2.56.1