summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorFederico Sauter2015-03-17 17:45:28 +0100
committerSteve French2015-05-20 20:25:55 +0200
commit4afe260bab50290a05e5732570329a530ed023f3 (patch)
treef5b2c9281cd3fe80c9bfcc3679baed8155bfdc76 /init
parentFix to convert SURROGATE PAIR (diff)
downloadkernel-qcow2-linux-4afe260bab50290a05e5732570329a530ed023f3.tar.gz
kernel-qcow2-linux-4afe260bab50290a05e5732570329a530ed023f3.tar.xz
kernel-qcow2-linux-4afe260bab50290a05e5732570329a530ed023f3.zip
CIFS: Fix race condition on RFC1002_NEGATIVE_SESSION_RESPONSE
This patch fixes a race condition that occurs when connecting to a NT 3.51 host without specifying a NetBIOS name. In that case a RFC1002_NEGATIVE_SESSION_RESPONSE is received and the SMB negotiation is reattempted, but under some conditions it leads SendReceive() to hang forever while waiting for srv_mutex. This, in turn, sets the calling process to an uninterruptible sleep state and makes it unkillable. The solution is to unlock the srv_mutex acquired in the demux thread *before* going to sleep (after the reconnect error) and before reattempting the connection.
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions