Murphy Zhou 786292c6b9 CIFS: fix max ea value size
commit 63d37fb4ce5ae7bf1e58f906d1bf25f036fe79b2 upstream.

It should not be larger then the slab max buf size. If user
specifies a larger size, it passes this check and goes
straightly to SMB2_set_info_init performing an insecure memcpy.

Signed-off-by: Murphy Zhou <jencce.kernel@gmail.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-10-05 12:48:12 +02:00
..
2018-07-08 15:30:51 +02:00
2019-10-05 12:48:12 +02:00
2019-08-06 19:05:23 +02:00
2018-12-17 09:28:54 +01:00
2019-09-21 07:15:37 +02:00
2018-12-21 14:13:04 +01:00
2017-09-04 19:05:15 -04:00