[GIT PULL] Btrfs fixes for 6.2-rc5, part 2

From: David Sterba
Date: Fri Jan 20 2023 - 12:15:28 EST


Hi,

there are two more fixes and an update that's not a fix but replaces use
of write_one_page which is going to be removed (similar updates to other
filesystems go via other trees).

Please pull, thanks.

- fix potential out-of-bounds access to leaf data when seeking in an
inline file

- fix potential crash in quota when rescan races with disable

- reimplement super block signature scratching by marking page/folio
dirty and syncing block device, allow removing write_one_page

----------------------------------------------------------------
The following changes since commit 09e44868f1e03c7825ca4283256abedc95e249a3:

btrfs: do not abort transaction on failure to update log root (2023-01-12 15:43:31 +0100)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-6.2-rc4-tag

for you to fetch changes up to b7adbf9ada3513d2092362c8eac5cddc5b651f5c:

btrfs: fix race between quota rescan and disable leading to NULL pointer deref (2023-01-16 19:46:54 +0100)

----------------------------------------------------------------
Christoph Hellwig (2):
btrfs: factor out scratching of one regular super block
btrfs: stop using write_one_page in btrfs_scratch_superblock

Filipe Manana (2):
btrfs: fix invalid leaf access due to inline extent during lseek
btrfs: fix race between quota rescan and disable leading to NULL pointer deref

fs/btrfs/file.c | 13 ++++++++++---
fs/btrfs/qgroup.c | 25 +++++++++++++++++--------
fs/btrfs/volumes.c | 50 +++++++++++++++++++++++++-------------------------
3 files changed, 52 insertions(+), 36 deletions(-)