diff options
| author | 2019-06-05 10:38:38 +1000 | |
|---|---|---|
| committer | 2019-06-13 14:21:09 -0500 | |
| commit | 487317c99477d00f22370625d53be3239febabbe (patch) | |
| tree | a6da1276cdc7abd0870f9eda758115c8912f930e /include/linux/mfd/git:/ssh:/git@git.zx2c4.com | |
| parent | cifs: fix panic in smb2_reconnect (diff) | |
| download | linux-dev-487317c99477d00f22370625d53be3239febabbe.tar.xz linux-dev-487317c99477d00f22370625d53be3239febabbe.zip | |
cifs: add spinlock for the openFileList to cifsInodeInfo
We can not depend on the tcon->open_file_lock here since in multiuser mode
we may have the same file/inode open via multiple different tcons.
The current code is race prone and will crash if one user deletes a file
at the same time a different user opens/create the file.
To avoid this we need to have a spinlock attached to the inode and not the tcon.
RHBZ: 1580165
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'include/linux/mfd/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
