Skip to content

cifs.ko fixes

Paulo Alcantara linux-cifs llvm oe-kbuild-all stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7cifs: fix potential race when tree connecting ipcfs/cifs/dfs.c+50 -70 replies
2/7cifs: fix potential use-after-free bugs in TCP_Server_Info::hostnamefs/cifs/cifs_debug.c fs/cifs/cifs_debug.h fs/cifs/connect.c +1 more+23 -130 replies
3/7cifs: protect session status check in smb2_reconnect()fs/cifs/smb2pdu.c+11 -40 replies
4/7cifs: protect access of TCP_Server_Info::{origin,leaf}_fullpathfs/cifs/cifsglob.h fs/cifs/connect.c fs/cifs/dfs.c +2 more+43 -200 replies
5/7cifs: print smb3_fs_context::source when mountingfs/cifs/cifsfs.c+6 -80 replies
6/7cifs: avoid potential races when handling multiple dfs tconsfs/cifs/cifsglob.h fs/cifs/connect.c fs/cifs/dfs.c +2 more+82 -810 replies
7/7cifs: fix sharing of DFS connectionsfs/cifs/cifsglob.h fs/cifs/cifsproto.h fs/cifs/connect.c +3 more+150 -810 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] cifs.ko fixes

Hi Steve,

Follow a series of bugfixes that were mostly found by doing some stress testing over the reconnect paths. I was able to find most of the issues by hard-coding the DFS cache ttl to 10 seconds which made it running several times on every reconnect test.

Please review and test.

Paulo Alcantara (7):
cifs: fix potential race when tree connecting ipc
cifs: fix potential use-after-free bugs in TCP_Server_Info::hostname
cifs: protect session status check in smb2_reconnect()
cifs: protect access of TCP_Server_Info::{origin,leaf}_fullpath
cifs: print smb3_fs_context::source when mounting
cifs: avoid potential races when handling multiple dfs tcons
cifs: fix sharing of DFS connections

 fs/cifs/cifs_debug.c |   7 ++-
 fs/cifs/cifs_debug.h |  12 ++--
 fs/cifs/cifsfs.c     |  14 ++---
 fs/cifs/cifsglob.h   |  23 ++++---
 fs/cifs/cifsproto.h  |  44 ++++++++++++-
 fs/cifs/connect.c    | 145 ++++++++++++++++++++++++-------------------
 fs/cifs/dfs.c        | 137 ++++++++++++++++++++++++++++++----------
 fs/cifs/dfs.h        |  13 +++-
 fs/cifs/dfs_cache.c  | 137 ++++++++++++++++++----------------------
 fs/cifs/dfs_cache.h  |   9 +++
 fs/cifs/ioctl.c      |   2 +-
 fs/cifs/sess.c       |   7 ++-
 fs/cifs/smb2pdu.c    |  19 ++++--
 13 files changed, 360 insertions(+), 209 deletions(-)
Signature · 1 line
2.40.1