]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
CIFS: Fix a possible memory corruption in push locks
authorPavel Shilovsky <pshilov@microsoft.com>
Wed, 30 Nov 2016 00:14:43 +0000 (16:14 -0800)
committerSasha Levin <alexander.levin@verizon.com>
Fri, 13 Jan 2017 01:56:55 +0000 (20:56 -0500)
commit51fce08b64ec4d8cb2cc91eb08a84caf29dcd272
treeeef6ff3a9bfd0915b6f2a7107f8f024045994720
parent7f16769173dfa6c3f616602d633452eda4b0c1fc
CIFS: Fix a possible memory corruption in push locks

[ Upstream commit e3d240e9d505fc67f8f8735836df97a794bbd946 ]

If maxBuf is not 0 but less than a size of SMB2 lock structure
we can end up with a memory corruption.

Cc: Stable <stable@vger.kernel.org>
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
fs/cifs/smb2file.c