]> git.baikalelectronics.ru Git - kernel.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)
committerPavel Shilovsky <pshilov@microsoft.com>
Mon, 5 Dec 2016 19:08:55 +0000 (11:08 -0800)
commit91ba58816dd0011a48c9e24cb761142bf6f8eefa
tree3c40fb55ccc300c2f34cdcbbdfc1a715d069df38
parentab177e36b02b2e0716b34d54dcab19b8b7668096
CIFS: Fix a possible memory corruption in push locks

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