CIFS: fix max ea value size
authorMurphy Zhou <jencce.kernel@gmail.com>
Sat, 21 Sep 2019 11:26:00 +0000 (19:26 +0800)
committerSteve French <stfrench@microsoft.com>
Tue, 24 Sep 2019 04:28:59 +0000 (23:28 -0500)
commit63d37fb4ce5ae7bf1e58f906d1bf25f036fe79b2
tree6b113252bb7d07752f61e8983e72fca1649d71aa
parent8559ad8e89185ca55d8c9ef1e0b20f58578a4055
CIFS: fix max ea value size

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>
fs/cifs/xattr.c