Skip to contentSkip to conversation

xfs: 4.18 fixes, part 1

GIT PULL Darrick J. Wong 1 participant 2 messages Jun 27, 2018 – Jul 26, 2018

lore
Share & tools
lore
#0 lore raw

Hi Linus,

Here are some patches for 4.18 to fix regressions, accounting problems, overflow problems, and to strengthen metadata validation to prevent corruption.

This series has been run through a full xfstests run over the weekend and through a quick xfstests run against this morning's master, with no major failures reported.

--D

The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40:

Linux 4.18-rc1 (2018-06-17 08:04:49 +0900)

are available in the Git repository at:

git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git tags/xfs-4.18-fixes-2

for you to fetch changes up to d8cb5e42378918e00eda58792f3ab86dd1e7d214:

xfs: fix fdblocks accounting w/ RMAPBT per-AG reservation (2018-06-24 12:00:12 -0700)

----------------------------------------------------------------
Changes since last update:
- More metadata validation strengthening to prevent crashes.
- Fix extent offset overflow problem when insert_range on a 512b block fs
- Fix some off-by-one errors in the realtime fsmap code
- Fix some math errors in the default resblks calculation when free space is low
- Fix a problem where stale page contents are exposed via mmap read after a zero_range at eof
- Fix accounting problems with per-ag reservations causing statfs reports to vary incorrectly

----------------------------------------------------------------
Christoph Hellwig (1):
xfs: simplify xfs_bmap_punch_delalloc_range

Darrick J. Wong (8):
xfs: allow empty transactions while frozen
xfs: don't trip over negative free space in xfs_reserve_blocks
xfs: don't allow insert-range to shift extents past the maximum offset
xfs: recheck reflink state after grabbing ILOCK_SHARED for a write
xfs: fix uninitialized field in rtbitmap fsmap backend
xfs: fix off-by-one error in xfs_rtalloc_query_range
xfs: ensure post-EOF zeroing happens after zeroing part of a file
xfs: fix fdblocks accounting w/ RMAPBT per-AG reservation

Dave Chinner (2):
xfs: More robust inode extent count validation
xfs: xfs_iflush_abort() can be called twice on cluster writeback failure

 fs/xfs/libxfs/xfs_ag_resv.c   |  31 ++++++++++--
 fs/xfs/libxfs/xfs_bmap.c      |  26 +++++++++++
 fs/xfs/libxfs/xfs_bmap.h      |   2 +
 fs/xfs/libxfs/xfs_format.h    |   5 ++
 fs/xfs/libxfs/xfs_inode_buf.c |  76 ++++++++++++++++++------------
 fs/xfs/libxfs/xfs_rtbitmap.c  |   4 +-
 fs/xfs/xfs_bmap_util.c        | 106 +++++++++++++++++++++---------------------
 fs/xfs/xfs_fsmap.c            |   4 +-
 fs/xfs/xfs_fsops.c            |   2 +-
 fs/xfs/xfs_inode.c            |  57 +++++++++--------------
 fs/xfs/xfs_iomap.c            |  15 +++++-
 fs/xfs/xfs_trans.c            |   7 ++-
 12 files changed, 205 insertions(+), 130 deletions(-)
#1 lore raw

[GIT PULL] xfs: 4.18 fixes, part 2

Hi Linus,

Here are a couple of late patches for 4.18 to fix a coding bug introduced in -rc1 and a fix for incorrect metadata verification of on-disk data.

This series has been run through a full xfstests run over the weekend and through a quick xfstests run against this morning's master, with no major failures reported.

--D

The following changes since commit d8cb5e42378918e00eda58792f3ab86dd1e7d214:

xfs: fix fdblocks accounting w/ RMAPBT per-AG reservation (2018-06-24 12:00:12 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git tags/xfs-4.18-fixes-4

for you to fetch changes up to d4a34e16555708bab5b67e679a95f055d8ef9882:

xfs: properly handle free inodes in extent hint validators (2018-07-24 11:34:52 -0700)

----------------------------------------------------------------
Changes since last update:
- Fix some uninitialized variable errors
- Fix an incorrect check in metadata verifiers

----------------------------------------------------------------
Carlos Maiolino (1):
xfs: Initialize variables in xfs_alloc_get_rec before using them

Eric Sandeen (1):
xfs: properly handle free inodes in extent hint validators

 fs/xfs/libxfs/xfs_alloc.c     | 5 +++--
 fs/xfs/libxfs/xfs_inode_buf.c | 6 ++++--
 2 files changed, 7 insertions(+), 4 deletions(-)