Christoph Probst 6a54b2e002 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>
2019-05-07 23:24:55 -05:00
..
2018-06-12 16:19:22 -07:00
2019-05-07 23:24:55 -05:00
2019-05-07 23:24:55 -05:00
2019-03-14 19:32:36 -05:00
2019-05-07 23:24:55 -05:00
2019-03-06 21:55:12 -06:00
2019-03-04 20:05:34 -06:00
2018-12-28 10:05:58 -06:00
2018-08-07 14:15:41 -05:00
2019-03-14 19:32:36 -05:00
2019-05-07 23:24:55 -05:00
2019-01-24 09:37:33 -06:00
2013-09-08 14:54:24 -05:00