Commit fb0800c
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 7dc9abf commit fb0800c
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1884 | 1884 | | |
1885 | 1885 | | |
1886 | 1886 | | |
1887 | | - | |
1888 | | - | |
1889 | | - | |
| 1887 | + | |
| 1888 | + | |
1890 | 1889 | | |
1891 | 1890 | | |
1892 | 1891 | | |
| |||
1898 | 1897 | | |
1899 | 1898 | | |
1900 | 1899 | | |
1901 | | - | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
1902 | 1908 | | |
1903 | 1909 | | |
1904 | 1910 | | |
1905 | 1911 | | |
| 1912 | + | |
| 1913 | + | |
1906 | 1914 | | |
1907 | 1915 | | |
1908 | 1916 | | |
| |||
0 commit comments