Files
linux/fs/cifs
Christoph Probst 939db6fdbe cifs: fix strcat buffer overflow and reduce raciness in smb21_set_oplock_level()
commit 6a54b2e002 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-05-25 18:23:27 +02:00
..
2018-06-12 16:19:22 -07:00
2018-05-27 17:56:35 -05:00
2016-10-13 19:48:11 -05:00
2018-08-07 14:23:20 -05:00
2018-08-07 14:15:41 -05:00
2018-08-23 15:10:49 -05:00
2019-04-05 22:32:59 +02:00
2018-06-01 09:14:30 -05:00
2019-05-02 09:58:52 +02:00
2012-07-24 10:25:13 -05:00
2018-07-05 13:48:24 -05:00
2013-09-08 14:54:24 -05:00