[GIT PULL] vfs: fixes for 5.18-rc1

From: Darrick J. Wong
Date: Fri Apr 01 2022 - 21:03:56 EST


Hi Linus,

Please pull this branch of VFS bugfixes for 5.18-rc1. The erofs
developers felt that FIEMAP should handle ranged requests starting at
s_maxbytes by returning EFBIG instead of passing the filesystem
implementation a nonsense 0-byte request.

Not sure why they keep tagging this 'iomap', but the VFS shouldn't be
asking for information about ranges of a file that the filesystem
already declared that it does not support.

As usual, I did a test-merge with upstream master 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 7e57714cd0ad2d5bb90e50b5096a0e671dec1ef3:

Linux 5.17-rc6 (2022-02-27 14:36:33 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git tags/vfs-5.18-merge-1

for you to fetch changes up to 49df34221804cfd6384135b28b03c9461a31d024:

fs: fix an infinite loop in iomap_fiemap (2022-03-30 09:49:28 -0700)

----------------------------------------------------------------
Fixes for 5.18-rc1:
- Fix a potential infinite loop in FIEMAP by fixing an off by one error
when comparing the requested range against s_maxbytes.

----------------------------------------------------------------
Guo Xuenan (1):
fs: fix an infinite loop in iomap_fiemap

fs/ioctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)