Commit c6b363f
smb: client: Fix match_session bug preventing session reuse
commit 605b249 upstream.
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 631fe4c commit c6b363f
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1582 | 1582 | | |
1583 | 1583 | | |
1584 | 1584 | | |
1585 | | - | |
1586 | | - | |
1587 | | - | |
| 1585 | + | |
| 1586 | + | |
1588 | 1587 | | |
1589 | 1588 | | |
1590 | 1589 | | |
| |||
1597 | 1596 | | |
1598 | 1597 | | |
1599 | 1598 | | |
1600 | | - | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
1601 | 1606 | | |
1602 | 1607 | | |
1603 | 1608 | | |
1604 | 1609 | | |
| 1610 | + | |
| 1611 | + | |
1605 | 1612 | | |
1606 | 1613 | | |
1607 | 1614 | | |
| |||
0 commit comments