]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfd7414a551e41bf7a087824637f90400b76b076e
tree6b113252bb7d07752f61e8983e72fca1649d71aa
parentc53ded1757e9619539458421a6df06d0538ca5c9
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