All of lore.kernel.org
 help / color / mirror / Atom feed
From: Qu Wenruo <wqu@suse.com>
To: linux-btrfs@vger.kernel.org
Subject: [PATCH 0/2] btrfs: minor fixes for handle_direct_tree_backref()
Date: Wed, 25 Nov 2026 13:45:10 +1030	[thread overview]
Message-ID: <cover.1795576387.git.wqu@suse.com> (raw)

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


             reply	other threads:[~2026-11-25  3:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25  3:15 Qu Wenruo [this message]
2026-11-25  3:15 ` [PATCH 1/2] btrfs: tree-checker: reject parent backref that goes beyond MAX_LEVEL Qu Wenruo
2026-11-26 17:08   ` Filipe Manana
2026-11-25  3:15 ` [PATCH 2/2] btrfs: backref: reject direct parent if the current level is maxed out Qu Wenruo
2026-11-26 17:08   ` Filipe Manana

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1795576387.git.wqu@suse.com \
    --to=wqu@suse.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.