summaryrefslogtreecommitdiff
path: root/kernel/locking
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilov@microsoft.com>2017-05-03 09:44:58 -0700
committerBen Hutchings <ben@decadent.org.uk>2017-07-18 18:40:32 +0100
commitd1101731fbb3f945745dec3f1daf4a6ed568f8ee (patch)
tree7eadb76c4e166f1b35a95950a399d4d2f9fe3826 /kernel/locking
parent1b4e9d9bfcfc3aaf626cccf2e159c1a1b89a31d3 (diff)
CIFS: Handle mismatched open calls
commit 38bd49064a1ecb67baad33598e3d824448ab11ec upstream. A signal can interrupt a SendReceive call which result in incoming responses to the call being ignored. This is a problem for calls such as open which results in the successful response being ignored. This results in an open file resource on the server. The patch looks into responses which were cancelled after being sent and in case of successful open closes the open fids. For this patch, the check is only done in SendReceive2() RH-bz: 1403319 Signed-off-by: Sachin Prabhu <sprabhu@redhat.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com> Acked-by: Sachin Prabhu <sprabhu@redhat.com> Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com> [bwh: For 3.16, drop initialisation of smb31_operations.handle_cancelled_mid] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'kernel/locking')
0 files changed, 0 insertions, 0 deletions