]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: read overflow in is_valid_oplock_break()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 6 Sep 2018 09:47:01 +0000 (12:47 +0300)
committerSteve French <stfrench@microsoft.com>
Wed, 12 Sep 2018 22:13:34 +0000 (17:13 -0500)
commitc617337182be21538b06f3ba1761d6b286c2f06f
tree1e6fd772fd570b6d27dd02ce1a31029d0939e7b0
parentd1ca1112ee75f4148901fc5f83c199f2fadba4d1
cifs: read overflow in is_valid_oplock_break()

We need to verify that the "data_offset" is within bounds.

Reported-by: Dr Silvio Cesare of InfoSect <silvio.cesare@gmail.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
fs/cifs/misc.c