[GIT PULL] Btrfs fixes for 6.8-rc7

From: David Sterba
Date: Mon Feb 26 2024 - 11:51:20 EST


Hi,

a few more fixes for recently reported or discovered problems. Please
pull, thanks.

- fix corner case of send that would generate potentially large stream
of zeros if there's a hole at the end of the file

- fix chunk validation in zoned mode on conventional zones, it was
possible to create chunks that would not be allowed on sequential
zones

- fix validation of dev-replace ioctl filenames

- fix KCSAN warnings about access to block reserve struct members

----------------------------------------------------------------
The following changes since commit b0ad381fa7690244802aed119b478b4bdafc31dd:

btrfs: fix deadlock with fiemap and extent locking (2024-02-19 11:20:00 +0100)

are available in the Git repository at:

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

for you to fetch changes up to c7bb26b847e5b97814f522686068c5628e2b3646:

btrfs: fix data race at btrfs_use_block_rsv() when accessing block reserve (2024-02-22 12:15:12 +0100)

----------------------------------------------------------------
David Sterba (1):
btrfs: dev-replace: properly validate device names

Filipe Manana (3):
btrfs: send: don't issue unnecessary zero writes for trailing hole
btrfs: fix data races when accessing the reserved amount of block reserves
btrfs: fix data race at btrfs_use_block_rsv() when accessing block reserve

Johannes Thumshirn (1):
btrfs: zoned: don't skip block group profile checks on conventional zones

fs/btrfs/block-rsv.c | 2 +-
fs/btrfs/block-rsv.h | 32 ++++++++++++++++++++++++++++++++
fs/btrfs/dev-replace.c | 24 ++++++++++++++++++++----
fs/btrfs/send.c | 17 +++++++++++++----
fs/btrfs/space-info.c | 26 +++++++++++++-------------
fs/btrfs/zoned.c | 9 +++++++++
6 files changed, 88 insertions(+), 22 deletions(-)