Commit 605b249
smb: client: Fix match_session bug preventing session reuse
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>1 parent d5a30fd commit 605b249
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1825 | 1825 | | |
1826 | 1826 | | |
1827 | 1827 | | |
1828 | | - | |
1829 | | - | |
1830 | | - | |
| 1828 | + | |
| 1829 | + | |
1831 | 1830 | | |
1832 | 1831 | | |
1833 | 1832 | | |
| |||
1839 | 1838 | | |
1840 | 1839 | | |
1841 | 1840 | | |
1842 | | - | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
1843 | 1849 | | |
1844 | 1850 | | |
1845 | 1851 | | |
1846 | 1852 | | |
| 1853 | + | |
| 1854 | + | |
1847 | 1855 | | |
1848 | 1856 | | |
1849 | 1857 | | |
| |||
0 commit comments