mbox series

[GIT,PULL,2/2] xfs: various fixes for 6.2

Message ID 166982875191.4097590.4367526229585431291.stg-ugh@magnolia (mailing list archive)
State New, archived
Headers show
Series [GIT,PULL,1/2] xfs: add knobs for testing iomap write race fixes | expand

Pull-request

git://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git tags/random-fixes-6.2_2022-11-30

Message

Darrick J. Wong Nov. 30, 2022, 5:22 p.m. UTC
Hi Darrick,

Please pull this branch with changes for xfs for 6.2-rc1.

As usual, I did a test-merge with the main upstream branch as of a few
minutes ago, and didn't see any conflicts.  Please let me know if you
encounter any problems.

--D

The following changes since commit 254e3459285cbf2174350bbc0051e475e1bc5196:

xfs: add debug knob to slow down write for fun (2022-11-28 17:54:49 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git tags/random-fixes-6.2_2022-11-30

for you to fetch changes up to 4c6dbfd2756bd83a0085ed804e2bb7be9cc16bc5:

xfs: attach dquots to inode before reading data/cow fork mappings (2022-11-30 08:55:18 -0800)

----------------------------------------------------------------
xfs: various fixes for 6.2

This is an assorted collection of bug fixes that have been bundled
together.  The first patch fixes a metadump corruption vector resulting
from a three-way race between a slow-running blkid process, the kernel
mounting, changing, and unmounting the fs, and xfs_db reading stale
block device pagecache contents.

The middle two patches address gcc warnings.

The final patch fixes a subtle corruption bug wherein making a delalloc
reservation on a filesystem with quotas enabled would sample the data
mapping, try to attach dquots, unlock the inode to attach the dquots,
relock the inode, and fail to reverify the sampled data.  If another
process updated the data mapping while the inode was unlocked, the
reservation would proceed with stale data and corrupt the data fork.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>

----------------------------------------------------------------
Darrick J. Wong (4):
xfs: invalidate block device page cache during unmount
xfs: use memcpy, not strncpy, to format the attr prefix during listxattr
xfs: shut up -Wuninitialized in xfsaild_push
xfs: attach dquots to inode before reading data/cow fork mappings

fs/xfs/xfs_buf.c       | 1 +
fs/xfs/xfs_iomap.c     | 8 ++++----
fs/xfs/xfs_trans_ail.c | 4 +++-
fs/xfs/xfs_xattr.c     | 2 +-
4 files changed, 9 insertions(+), 6 deletions(-)