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)
commit097f5863b1a0c9901f180bbd56ae7d630655faaa
tree1e6fd772fd570b6d27dd02ce1a31029d0939e7b0
parent2d204ee9d671327915260071c19350d84344e096
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