btrfs: minor fixes for handle_direct_tree_backref()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | btrfs: tree-checker: reject parent backref that goes beyond MAX_LEVELfs/ | +21 | 1 reply | |
| 2/2 | btrfs: backref: reject direct parent if the current level is maxed outfs/ | +11 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Filipe Manana |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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