Skip to content
Snippets Groups Projects
Commit 7f8ca4dd authored by Zhen Kong's avatar Zhen Kong Committed by Pat Tjin
Browse files

msm: crypto: fix issues on digest buf and copy_from_user in qcedev.c


Make the digest length not larger than the size of the buffer
qcedev_areq.sha_op_req.digest; and use the checked variants of
the copy_from/to_user() APIs to avoid small race window of their
unchecked variants.

Bug: 31750232
Change-Id: I3db0c20ac5fa47ed278f3d60368c406f472430c1
Signed-off-by: default avatarZhen Kong <zkong@codeaurora.org>
Signed-off-by: default avatarWei Wang <wvw@google.com>
parent 83faf06e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment