linux-cifs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v7 0/3] ksmbd patches included vfs changes
@ 2022-09-20 22:43 Namjae Jeon
  2022-09-20 22:43 ` [PATCH v7 1/3] ksmbd: remove internal.h include Namjae Jeon
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Namjae Jeon @ 2022-09-20 22:43 UTC (permalink / raw)
  To: viro, linux-fsdevel, linux-cifs
  Cc: smfrench, senozhatsky, tom, atteh.mailbox, Namjae Jeon

This patchset contains vfs changes that are needed to fix racy issue
in ksmbd. Added the 1/3 patch by Al's additional review comment.

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    | 145 ++++-----------
 fs/ksmbd/vfs.c        | 415 +++++++++++++++++-------------------------
 fs/ksmbd/vfs.h        |  19 +-
 fs/ksmbd/vfs_cache.c  |   5 +-
 fs/namei.c            | 103 ++++++++---
 include/linux/namei.h |   9 +
 7 files changed, 299 insertions(+), 399 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-10-02  2:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-20 22:43 [PATCH v7 0/3] ksmbd patches included vfs changes Namjae Jeon
2022-09-20 22:43 ` [PATCH v7 1/3] ksmbd: remove internal.h include Namjae Jeon
2022-09-20 22:43 ` [PATCH v7 2/3] fs: introduce lock_rename_child() helper Namjae Jeon
2022-10-02  0:21   ` Al Viro
2022-10-02  2:22     ` Namjae Jeon
2022-09-20 22:43 ` [PATCH v7 3/3] ksmbd: fix racy issue from using ->d_parent and ->d_name Namjae Jeon
2022-10-02  0:39   ` Al Viro
2022-10-02  2:21     ` Namjae Jeon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).