[GIT PULL] Btrfs fixes for 6.17-rc7, part 2

From: David Sterba

Date: Sun Sep 21 2025 - 00:35:54 EST


Hi,

please pull a few short fixes for btrfs. Thanks.

- in tree-checker, fix wrong size of check for inode ref item

- in ref-verify, handle combination of mount options that allow
partially damaged extent tree (reported by syzbot)

- additional validation of compression mount option to catch invalid
string as level

----------------------------------------------------------------
The following changes since commit 80eb65ccf6f72dc37b972583fe71cd8a50ff7e51:

btrfs: annotate block group access with data_race() when sorting for reclaim (2025-09-15 05:25:43 +0200)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git tags/for-6.17-rc6-tag

for you to fetch changes up to b98b208300573f4ab29507f81194a6030b208444:

btrfs: reject invalid compression level (2025-09-18 13:18:49 +0200)

----------------------------------------------------------------
David Sterba (1):
btrfs: ref-verify: handle damaged extent root tree

Qu Wenruo (2):
btrfs: tree-checker: fix the incorrect inode ref size check
btrfs: reject invalid compression level

fs/btrfs/compression.c | 22 +++++++++++++---------
fs/btrfs/compression.h | 2 +-
fs/btrfs/ref-verify.c | 9 ++++++++-
fs/btrfs/super.c | 27 +++++++++++++++++++--------
fs/btrfs/tree-checker.c | 4 ++--
5 files changed, 43 insertions(+), 21 deletions(-)