[GIT PULL] vfs fixes

From: Christian Brauner
Date: Sun Mar 12 2023 - 08:19:05 EST


Hey Linus,

/* Summary */
This contains a few simple vfs fixes for v6.3. There should be nothing
exciting in here:

* When allocating pages for a watch queue failed, we didn't return an
error causing userspace to proceed even though all subsequent
notifcations would be lost. Make sure to return an error.
* Fix a misformed tree entry for the idmapping maintainers entry.
* When setting file leases from an idmapped mount via generic_setlease()
we need to take the idmapping into account otherwise taking a lease
would fail from an idmapped mount.
* Remove two redundant assignments, one in splice code and the other in
locks code, that static checkers complained about.

The watch queue and file lease fix should be backported.

/* Testing */
clang: Ubuntu clang version 15.0.2-1
gcc: gcc (Ubuntu 12.2.0-3ubuntu1) 12.2.0

All patches are based on v6.3-rc1 and have been sitting in linux-next.
No build failures or warnings were observed. All old and new tests in
fstests, selftests, and LTP pass without regressions.

/* Conflicts */
At the time of creating this PR no merge conflicts were reported from
linux-next and no merge conflicts showed up doing a test-merge with
current mainline.

The following changes since commit fe15c26ee26efa11741a7b632e9f23b01aca4cc6:

Linux 6.3-rc1 (2023-03-05 14:52:03 -0800)

are available in the Git repository at:

ssh://git@xxxxxxxxxxxxxxxxxxx/pub/scm/linux/kernel/git/vfs/idmapping.git tags/vfs.misc.v6.3-rc2

for you to fetch changes up to 42d0c4bdf753063b6eec55415003184d3ca24f6e:

filelocks: use mount idmapping for setlease permission check (2023-03-09 22:36:12 +0100)

Please consider pulling these changes from the signed vfs.misc.v6.3-rc2 tag.

Thanks!
Christian

----------------------------------------------------------------
vfs.misc.v6.3-rc2

----------------------------------------------------------------
David Disseldorp (1):
watch_queue: fix IOC_WATCH_QUEUE_SET_SIZE alloc error paths

Jiapeng Chong (2):
splice: Remove redundant assignment to ret
fs/locks: Remove redundant assignment to cmd

Lukas Bulwahn (1):
MAINTAINERS: repair a malformed T: entry in IDMAPPED MOUNTS

Seth Forshee (1):
filelocks: use mount idmapping for setlease permission check

MAINTAINERS | 4 ++--
fs/locks.c | 4 ++--
fs/splice.c | 1 -
kernel/watch_queue.c | 1 +
4 files changed, 5 insertions(+), 5 deletions(-)