OSDN Git Service

crypto: msm: check integer overflow on total data len in qcedev.c
authorZhen Kong <zkong@codeaurora.org>
Thu, 19 Jan 2017 22:59:44 +0000 (14:59 -0800)
committerZhen Kong <zkong@codeaurora.org>
Thu, 19 Jan 2017 23:17:39 +0000 (15:17 -0800)
commit29ba268e0eab8430160da8d0f6c854050c275231
treed13fa96c1ee3eefe5cab1ae86c68275cc33bd8ff
parent0a8e939a4e57d86da88c9856cd266447fc45ea85
crypto: msm: check integer overflow on total data len in qcedev.c

qcedev_vbuf_ablk_cipher will calculate total data length. It starts
with the value of "areq->cipher_op_req.byteoffset", which is controlled
by the user. Make change to check if this total data length has integer
overflow issue in qcedev_check_cipher_params.

Change-Id: Ice42dca6d47eb8febfe8a34e566c69e4799fab57
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
drivers/crypto/msm/qcedev.c