Commit ca24634
smb: client: Fix match_session bug preventing session reuse
[ Upstream commit 605b249 ]
Fix a bug in match_session() that can causes the session to not be
reused in some cases.
Reproduction steps:
mount.cifs //server/share /mnt/a -o credentials=creds
mount.cifs //server/share /mnt/b -o credentials=creds,sec=ntlmssp
cat /proc/fs/cifs/DebugData | grep SessionId | wc -l
mount.cifs //server/share /mnt/b -o credentials=creds,sec=ntlmssp
mount.cifs //server/share /mnt/a -o credentials=creds
cat /proc/fs/cifs/DebugData | grep SessionId | wc -l
Cc: stable@vger.kernel.org
Reviewed-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: Henrique Carvalho <henrique.carvalho@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 5a49a52 commit ca24634
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1873 | 1873 | | |
1874 | 1874 | | |
1875 | 1875 | | |
1876 | | - | |
1877 | | - | |
1878 | | - | |
| 1876 | + | |
| 1877 | + | |
1879 | 1878 | | |
1880 | 1879 | | |
1881 | 1880 | | |
| |||
1887 | 1886 | | |
1888 | 1887 | | |
1889 | 1888 | | |
1890 | | - | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
1891 | 1897 | | |
1892 | 1898 | | |
1893 | 1899 | | |
1894 | 1900 | | |
| 1901 | + | |
| 1902 | + | |
1895 | 1903 | | |
1896 | 1904 | | |
1897 | 1905 | | |
| |||
0 commit comments