Skip to content

Prepare for fsnotify pre-content permission events

Amir Goldstein linux-fsdevel 3 versions – Applied

Status from this message: Applied to the vfs.rw branch of the vfs/vfs.git tree.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 4 repliesApplied
  2. v25 patches 5 repliesSuperseded
  3. v14 patches 20 repliesApplied

Changes in v3 from the cover letter

- Fixes to splice helpers return type
- Add RVBs from Jan

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/5splice: return type ssize_t from all helpersfs/internal.h fs/overlayfs/copy_up.c fs/read_write.c +3 more+81 -813 replies
2/5fs: use splice_copy_file_range() inline helperfs/ceph/file.c fs/fuse/file.c fs/nfs/nfs4file.c +5 more+22 -480 replies
3/5fsnotify: split fsnotify_perm() into two hooksinclude/linux/fsnotify.h security/security.c+21 -170 replies
4/5fsnotify: assert that file_start_write() is not held in permission hooksinclude/linux/fsnotify.h+7 -00 replies
5/5fsnotify: optionally pass access range in file permission hooksfs/open.c fs/read_write.c fs/readdir.c +3 more+35 -120 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchJan KaraJosef BacikDavid Howells
1/5R-b R-b
2/5R-b
3/5R-b R-b
4/5R-b R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/5] Prepare for fsnotify pre-content permission events

Hi Christian,

This v3 of pre-content event prep patches addresses some comments and replaces the v1 patches [1] that are currently applied to vfs.rw.

I started with a new cleanup patch for ssize_t return type that you suggested.

Patch 2 has a fix for a build error reported by kernel tests robot (moved MAX_RW_COUNT capping to splice_file_range()), so I did not retain Josef's RVB from v1 on this patch.

Patches 3,4 are unchanged and retain the RVBs from v1.

Patch 5 changes the fsnotify hook name, so I did not retain Josef's RVB from v1. Jan has already reviewed v2.

Thanks,
Amir.

Changes since v2:
- Fixes to splice helpers return type
- Add RVBs from Jan

Changes since v1 [1]:
- Move MAX_RW_COUNT capping to splice_file_range() to fix build error
- Cleanup splice helpers return type
- Change fsnotify hook name to fsnotify_file_area_perm()
- Add RVBs

[1] https://lore.kernel.org/r/[email protected]/

Amir Goldstein (5):
splice: return type ssize_t from all helpers
fs: use splice_copy_file_range() inline helper
fsnotify: split fsnotify_perm() into two hooks
fsnotify: assert that file_start_write() is not held in permission
hooks
fsnotify: optionally pass access range in file permission hooks

 fs/ceph/file.c           |   4 +-
 fs/fuse/file.c           |   5 +-
 fs/internal.h            |   8 +--
 fs/nfs/nfs4file.c        |   5 +-
 fs/open.c                |   4 ++
 fs/overlayfs/copy_up.c   |   2 +-
 fs/read_write.c          |  46 ++++------------
 fs/readdir.c             |   4 ++
 fs/remap_range.c         |   8 ++-
 fs/smb/client/cifsfs.c   |   5 +-
 fs/splice.c              | 110 ++++++++++++++++++++-------------------
 include/linux/fs.h       |   3 --
 include/linux/fsnotify.h |  50 ++++++++++++------
 include/linux/splice.h   |  50 ++++++++++--------
 io_uring/splice.c        |   4 +-
 security/security.c      |  10 +---
 16 files changed, 163 insertions(+), 155 deletions(-)
Signature · 1 line
2.34.1