]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: nosharesock should not share socket with future sessions
authorShyam Prasad N <sprasad@microsoft.com>
Sat, 6 Nov 2021 11:31:53 +0000 (11:31 +0000)
committerSteve French <stfrench@microsoft.com>
Sun, 7 Nov 2021 05:09:37 +0000 (00:09 -0500)
commite8c317dbf8dcbbe05d9c5cc7fd9bac66af7290f3
treefba6794d8dfa142d4dca0b8477318da4b01b4206
parent6720c86bab2dd3192f9b101f6e91e8c0e6eccbb9
cifs: nosharesock should not share socket with future sessions

Today, when a new mount is done with nosharesock, we ensure
that we don't select an existing matching session. However,
we don't mark the connection as nosharesock, which means that
those could be shared with future sessions.

Fixed it with this commit. Also printing this info in DebugData.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifs_debug.c
fs/cifs/cifsglob.h
fs/cifs/connect.c