Skip to content

ksmbd patches included vfs changes

Namjae Jeon linux-cifs linux-fsdevel llvm oe-kbuild-all 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest3 patches 7 repliesIn review
  2. v73 patches 4 repliesSuperseded
  3. v63 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches4 repliesSuperseded

Changes in v8 from the cover letter

- Don't call vfs_path_lookup() to avoid repeat lookup, Instead, lookup last component after locking the parent that got from vfs_path_parent_lookup helper.

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ksmbd: remove internal.h includefs/internal.h fs/ksmbd/vfs.c include/linux/namei.h+2 -41 reply
2/3fs: introduce lock_rename_child() helperfs/namei.c include/linux/namei.h+58 -110 replies
3/3ksmbd: fix racy issue from using ->d_parent and ->d_namefs/ksmbd/smb2pdu.c fs/ksmbd/vfs.c fs/ksmbd/vfs.h +3 more+282 -3851 reply

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchChristian Brauner
1/3R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v8 thread

Cover letter [PATCH v8 0/3] ksmbd patches included vfs changes

v8:
- Don't call vfs_path_lookup() to avoid repeat lookup, Instead, lookup last component after locking the parent that got from vfs_path_parent_lookup helper.
v7:
- constify struct path.
- recreate patch-set base on recent Al's patches.
v6:
- rename __lookup_hash() to lookup_one_qstr_excl and export.
- change dget() to dget_parent() in unlink.
- lock parent of open file in smb2_open() to make file_present worthable.
v5:
- add lock_rename_child() helper.
- remove d_is_symlink() check for new_path.dentry.
- use lock_rename_child() helper instead of lock_rename().
- use dget() instead of dget_parent().
- check that old_child is still hashed.
- directly check child->parent instead of using take_dentry_name_snapshot().
v4:
- switch the order of 3/4 and 4/4 patch.
- fix vfs_path_parent_lookup() parameter description mismatch.
v3:
- use dget_parent + take_dentry_name_snapshot() to check stability of source rename in smb2_vfs_rename().
v2:
- add filename_lock to avoid racy issue from fp->filename. (Sergey Senozhatsky)
- fix warning: variable 'old_dentry' is used uninitialized (kernel test robot)

Al Viro (1):
fs: introduce lock_rename_child() helper

Namjae Jeon (2):
ksmbd: remove internal.h include
ksmbd: fix racy issue from using ->d_parent and ->d_name

 fs/internal.h         |   2 -
 fs/ksmbd/smb2pdu.c    | 147 ++++----------
 fs/ksmbd/vfs.c        | 435 ++++++++++++++++++------------------------
 fs/ksmbd/vfs.h        |  19 +-
 fs/ksmbd/vfs_cache.c  |   5 +-
 fs/namei.c            | 125 +++++++++---
 include/linux/namei.h |   9 +
 7 files changed, 342 insertions(+), 400 deletions(-)
Signature · 1 line
2.25.1