[GIT PULL] xfs: new code for 5.17

From: Darrick J. Wong
Date: Mon Jan 10 2022 - 17:06:22 EST


Hi Linus,

Please pull this new code for Linux 5.17. The big new feature here is
that the mount code now only bothers to try to free stale COW staging
extents if the fs unmounted uncleanly. This should reduce mount times,
particularly on filesystems supporting reflink and containing a large
number of allocation groups.

Everything else this cycle are bugfixes, as the iomap folios conversion
should be plenty enough excitement for anyone. That and I ran out of
brain bandwidth after Thanksgiving last year.

The branch merges cleanly against upstream as of a few minutes ago.
Please let me know if anything else strange happens during the merge
process. There will definitely be a second pull request coming with
at least one more bug fix and most probably a full withdrawal of the
recently troublesome ALLOCSP ioctl family.

--D

The following changes since commit 2585cf9dfaaddf00b069673f27bb3f8530e2039c:

Linux 5.16-rc5 (2021-12-12 14:53:01 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git tags/xfs-5.17-merge-2

for you to fetch changes up to 7e937bb3cbe1f6b9840a43f879aa6e3f1a5e6537:

xfs: warn about inodes with project id of -1 (2022-01-06 10:43:30 -0800)

----------------------------------------------------------------
New code for 5.17:
- Fix log recovery with da btree buffers when metauuid is in use.
- Fix type coercion problems in xattr buffer size validation.
- Fix a bug in online scrub dir leaf bestcount checking.
- Only run COW recovery when recovering the log.
- Fix symlink target buffer UAF problems and symlink locking problems
by not exposing xfs innards to the VFS.
- Fix incorrect quotaoff lock usage.
- Don't let transactions cancel cleanly if they have deferred work
items attached.
- Fix a UAF when we're deciding if we need to relog an intent item.
- Reduce kvmalloc overhead for log shadow buffers.
- Clean up sysfs attr group usage.
- Fix a bug where scrub's bmap/rmap checking could race with a quota
file block allocation due to insufficient locking.
- Teach scrub to complain about invalid project ids.

----------------------------------------------------------------
Dan Carpenter (1):
xfs: prevent a WARN_ONCE() in xfs_ioc_attr_list()

Darrick J. Wong (8):
xfs: shut down filesystem if we xfs_trans_cancel with deferred work items
xfs: fix quotaoff mutex usage now that we don't support disabling it
xfs: don't expose internal symlink metadata buffers to the vfs
xfs: only run COW extent recovery when there are no live extents
xfs: fix a bug in the online fsck directory leaf1 bestcount check
xfs: prevent UAF in xfs_log_item_in_current_chkpt
xfs: hold quota inode ILOCK_EXCL until the end of dqalloc
xfs: warn about inodes with project id of -1

Dave Chinner (2):
xfs: check sb_meta_uuid for dabuf buffer recovery
xfs: reduce kvmalloc overhead for CIL shadow buffers

Greg Kroah-Hartman (1):
xfs: sysfs: use default_groups in kobj_type

Jiapeng Chong (1):
xfs: Remove redundant assignment of mp

Yang Xu (1):
xfs: Fix comments mentioning xfs_ialloc

fs/xfs/scrub/dir.c | 15 +++++---
fs/xfs/scrub/inode.c | 14 ++++++++
fs/xfs/scrub/quota.c | 4 +--
fs/xfs/scrub/repair.c | 3 ++
fs/xfs/scrub/scrub.c | 4 ---
fs/xfs/scrub/scrub.h | 1 -
fs/xfs/xfs_buf_item_recover.c | 2 +-
fs/xfs/xfs_dquot.c | 79 +++++++++++++++----------------------------
fs/xfs/xfs_error.c | 3 +-
fs/xfs/xfs_icache.c | 3 +-
fs/xfs/xfs_ioctl.c | 2 +-
fs/xfs/xfs_ioctl.h | 5 +--
fs/xfs/xfs_iops.c | 40 +++-------------------
fs/xfs/xfs_log_cil.c | 52 ++++++++++++++++++++--------
fs/xfs/xfs_log_recover.c | 26 ++++++++++++--
fs/xfs/xfs_mount.c | 10 ------
fs/xfs/xfs_qm_syscalls.c | 11 +-----
fs/xfs/xfs_reflink.c | 5 ++-
fs/xfs/xfs_super.c | 9 -----
fs/xfs/xfs_symlink.c | 27 ++++++++++-----
fs/xfs/xfs_sysfs.c | 16 +++++----
fs/xfs/xfs_trans.c | 11 +++++-
22 files changed, 175 insertions(+), 167 deletions(-)