Skip to content

smb: fix some bugs, move duplicate definitions to common header file, and some small cleanups

[email protected] linux-cifs lkml 2 versions – Applied

Status from this message: Applied it to #ksmbd-for-next-next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 12 repliesApplied
  2. v18 patches 15 repliesApplied

Changes in v2 from the cover letter

- update patch #2 according to Namjae's suggestions.
- add patch #6~9 to rename 'cifs_ntsd' 'cifs_sid' 'cifs_acl' 'cifs_ace' according to Namjae's suggestions.
- add patch #12 to explained why the typo 'STATUS_MCA_OCCURED' was not corrected.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/12smb/server: fix return value of smb2_open()fs/smb/server/smb2pdu.c+1 -11 reply
2/12smb/server: fix potential null-ptr-deref of lease_ctx_info in smb2_open()fs/smb/server/oplock.c fs/smb/server/smb2pdu.c+6 -61 reply
3/12smb/server: remove useless assignment of 'file_present' in smb2_open()fs/smb/server/smb2pdu.c+0 -11 reply
4/12smb/client: fix typo: GlobalMid_Sem -> GlobalMid_Lockfs/smb/client/cifsfs.c fs/smb/client/cifsglob.h+6 -60 replies
5/12smb/server: update misguided comment of smb2_allocate_rsp_buf()fs/smb/server/smb2pdu.c+1 -11 reply
6/12smb/client: rename cifs_ntsd to smb_ntsdfs/smb/client/cifsacl.c fs/smb/client/cifsacl.h fs/smb/client/cifsglob.h +6 more+43 -432 replies
7/12smb/client: rename cifs_sid to smb_sidfs/smb/client/cifsacl.c fs/smb/client/cifsacl.h fs/smb/client/cifsglob.h +4 more+63 -631 reply
8/12smb/client: rename cifs_acl to smb_aclfs/smb/client/cifsacl.c fs/smb/client/cifsacl.h+19 -191 reply
9/12smb/client: rename cifs_ace to smb_acefs/smb/client/cifsacl.c fs/smb/client/cifsacl.h fs/smb/client/cifsglob.h +2 more+41 -411 reply
10/12smb: move some duplicate definitions to common/smbacl.hfs/smb/client/cifsacl.h fs/smb/common/smbacl.h fs/smb/server/smbacl.h+123 -2000 replies
11/12smb: move SMB2 Status code to common header filefs/smb/client/smb2file.c fs/smb/client/smb2inode.c fs/smb/client/smb2maperror.c +12 more+15 -18350 replies
12/12smb: add comment to STATUS_MCA_OCCUREDfs/smb/common/smb2status.h+4 -01 reply

Reviews trailers per patch

11 of 12 patches have a Reviewed-by or Acked-by.

PatchNamjae Jeon
1/12A-b
2/12
3/12A-b
4/12R-b
5/12A-b
6/12R-b R-b
7/12R-b
8/12R-b
9/12R-b
10/12A-b
11/12A-b
12/12R-b

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

Read the v2 thread

Cover letter [PATCH v2 00/12] smb: fix some bugs, move duplicate definitions to common header file, and some small cleanups

From: ChenXiaoSong <[email protected]>

Fix some bugs in smb2_open() of smb server.

In order to maintain the code more easily, move some duplicate definitions to common header file.

Additionally, add some small cleanups to the patchset.

v1->v2:
- update patch #2 according to Namjae's suggestions.
- add patch #6~9 to rename 'cifs_ntsd' 'cifs_sid' 'cifs_acl' 'cifs_ace' according to Namjae's suggestions.
- add patch #12 to explained why the typo 'STATUS_MCA_OCCURED' was not corrected.

v1: https://lore.kernel.org/all/[email protected]/

ChenXiaoSong (12):
smb/server: fix return value of smb2_open() smb/server: fix potential null-ptr-deref of lease_ctx_info in

    smb2_open()

smb/server: remove useless assignment of 'file_present' in smb2_open() smb/client: fix typo: GlobalMid_Sem -> GlobalMid_Lock smb/server: update misguided comment of smb2_allocate_rsp_buf() smb/client: rename cifs_ntsd to smb_ntsd
smb/client: rename cifs_sid to smb_sid
smb/client: rename cifs_acl to smb_acl
smb/client: rename cifs_ace to smb_ace
smb: move some duplicate definitions to common/smbacl.h
smb: move SMB2 Status code to common header file
smb: add comment to STATUS_MCA_OCCURED

 fs/smb/client/cifsacl.c                |  224 +--
 fs/smb/client/cifsacl.h                |   99 +-
 fs/smb/client/cifsfs.c                 |    6 +-
 fs/smb/client/cifsglob.h               |   22 +-
 fs/smb/client/cifsproto.h              |   18 +-
 fs/smb/client/cifssmb.c                |    6 +-
 fs/smb/client/smb2file.c               |    2 +-
 fs/smb/client/smb2inode.c              |    6 +-
 fs/smb/client/smb2maperror.c           |    2 +-
 fs/smb/client/smb2misc.c               |    2 +-
 fs/smb/client/smb2ops.c                |   16 +-
 fs/smb/client/smb2pdu.c                |   14 +-
 fs/smb/client/smb2pdu.h                |    8 +-
 fs/smb/client/smb2proto.h              |    2 +-
 fs/smb/client/smb2transport.c          |    2 +-
 fs/smb/client/xattr.c                  |    4 +-
 fs/smb/{client => common}/smb2status.h |    6 +
 fs/smb/common/smbacl.h                 |  121 ++
 fs/smb/server/oplock.c                 |    4 +-
 fs/smb/server/server.c                 |    2 +-
 fs/smb/server/smb2misc.c               |    2 +-
 fs/smb/server/smb2pdu.c                |   17 +-
 fs/smb/server/smb_common.c             |    2 +-
 fs/smb/server/smbacl.h                 |  111 +-
 fs/smb/server/smbstatus.h              | 1822 ------------------------
 fs/smb/server/transport_rdma.c         |    2 +-
 26 files changed, 314 insertions(+), 2208 deletions(-)
 rename fs/smb/{client => common}/smb2status.h (99%)
 create mode 100644 fs/smb/common/smbacl.h
 delete mode 100644 fs/smb/server/smbstatus.h
Signature · 1 line
2.34.1