diff options
author | Christoph Probst | 2019-05-07 17:16:40 +0200 |
---|---|---|
committer | Steve French | 2019-05-08 06:24:55 +0200 |
commit | 6a54b2e002c9d00b398d35724c79f9fe0d9b38fb (patch) | |
tree | 15337da48020ddeb9265edcad0abf0255895d881 /net/ipv6/syncookies.c | |
parent | Negotiate and save preferred compression algorithms (diff) | |
download | kernel-qcow2-linux-6a54b2e002c9d00b398d35724c79f9fe0d9b38fb.tar.gz kernel-qcow2-linux-6a54b2e002c9d00b398d35724c79f9fe0d9b38fb.tar.xz kernel-qcow2-linux-6a54b2e002c9d00b398d35724c79f9fe0d9b38fb.zip |
cifs: fix strcat buffer overflow and reduce raciness in smb21_set_oplock_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 <kernel@probst.it>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Diffstat (limited to 'net/ipv6/syncookies.c')
0 files changed, 0 insertions, 0 deletions