Skip to content

cifs: Improve support for native SMB symlinks

Pali Rohár linux-cifs lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 7 repliesIn review
  2. v17 patches 14 repliesSuperseded

Changes in v2 from the cover letter

- Patch which renames function was dropped
- Patch "Improve creating native symlinks pointing to directory" address issues pointed by Paulo Alcantara
- Patch "Fix parsing native symlinks directory/file type" was changed to apply fixups only for non-POSIX servers (Windows SMB/NT)
- Patch "Validate content of native symlink" was improved to check also UTF-16 buffer length of symlink

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6cifs: Improve creating native symlinks pointing to directoryfs/smb/client/reparse.c fs/smb/client/smb2inode.c fs/smb/client/smb2proto.h+164 -40 replies
2/6cifs: Fix creating native symlinks pointing to current or parent directoryfs/smb/client/cifs_unicode.c+14 -30 replies
3/6cifs: Fix parsing native symlinks relative to the exportfs/smb/client/cifsglob.h fs/smb/client/cifsproto.h fs/smb/client/inode.c +6 more+108 -280 replies
4/6cifs: Fix parsing native symlinks directory/file typefs/smb/client/inode.c fs/smb/client/smb2file.c fs/smb/client/smb2inode.c +1 more+65 -04 replies
5/6cifs: Validate content of native symlinkfs/smb/client/reparse.c+19 -02 replies
6/6cifs: Fix creating and resolving absolute NT-style symlinksfs/smb/client/fs_context.c fs/smb/client/fs_context.h fs/smb/client/reparse.c+273 -183 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/6] cifs: Improve support for native SMB symlinks

This is second version of patch series which improves support for native SMB symlinks.

Changes since v1:
- Patch which renames function was dropped
- Patch "Improve creating native symlinks pointing to directory" address issues pointed by Paulo Alcantara
- Patch "Fix parsing native symlinks directory/file type" was changed to apply fixups only for non-POSIX servers (Windows SMB/NT)
- Patch "Validate content of native symlink" was improved to check also UTF-16 buffer length of symlink

Pali Rohár (6):
cifs: Improve creating native symlinks pointing to directory
cifs: Fix creating native symlinks pointing to current or parent
directory
cifs: Fix parsing native symlinks relative to the export
cifs: Fix parsing native symlinks directory/file type
cifs: Validate content of native symlink
cifs: Fix creating and resolving absolute NT-style symlinks

 fs/smb/client/cifs_unicode.c |  17 +-
 fs/smb/client/cifsglob.h     |   1 +
 fs/smb/client/cifsproto.h    |   1 +
 fs/smb/client/fs_context.c   |  22 ++
 fs/smb/client/fs_context.h   |   2 +
 fs/smb/client/inode.c        |   6 +
 fs/smb/client/reparse.c      | 538 ++++++++++++++++++++++++++++++++---
 fs/smb/client/reparse.h      |   4 +-
 fs/smb/client/smb1ops.c      |   3 +-
 fs/smb/client/smb2file.c     |  76 ++++-
 fs/smb/client/smb2inode.c    |  13 +-
 fs/smb/client/smb2proto.h    |  11 +-
 12 files changed, 642 insertions(+), 52 deletions(-)
Signature · 1 line
2.20.1