Merge tag 'random-fixes-6.2_2022-11-30' of git://git.kernel.org/pub/scm/linux/kernel...
authorDarrick J. Wong <djwong@kernel.org>
Wed, 30 Nov 2022 17:25:25 +0000 (09:25 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 30 Nov 2022 17:25:25 +0000 (09:25 -0800)
commit4b4d11bbeca4e3ebb235c8c3c875a986a8c90427
treed8ece4c5b58fbe344aff2d152602249c965d11a3
parentcd14f15b0e64b4dffa50ec6914093336fb1ac285
parent4c6dbfd2756bd83a0085ed804e2bb7be9cc16bc5
Merge tag 'random-fixes-6.2_2022-11-30' of git://git./linux/kernel/git/djwong/xfs-linux into xfs-6.2-mergeC

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>
* tag 'random-fixes-6.2_2022-11-30' of git://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux:
  xfs: attach dquots to inode before reading data/cow fork mappings
  xfs: shut up -Wuninitialized in xfsaild_push
  xfs: use memcpy, not strncpy, to format the attr prefix during listxattr
  xfs: invalidate block device page cache during unmount