Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cifs: fix strcat buffer overflow and reduce raciness in smb21_set_opl…
…ock_level() Change strcat to strncpy in the "None" case to fix a buffer overflow when cinode->oplock is reset to 0 by another thread accessing the same cinode. It is never valid to append "None" to any other message. Consolidate multiple writes to cinode->oplock to reduce raciness. Signed-off-by: Christoph Probst <[email protected]> Reviewed-by: Pavel Shilovsky <[email protected]> Signed-off-by: Steve French <[email protected]> CC: Stable <[email protected]>
- Loading branch information