commit | f3b41076ff3406a50c558f79e2180759b01c3ec0 | [log] [tgz] |
---|---|---|
author | Zhen Kong <zkong@codeaurora.org> | Mon Oct 31 15:23:19 2016 -0700 |
committer | Ariel Yin <ayin@google.com> | Wed Jan 18 22:15:37 2017 +0000 |
tree | a340edb5a8f1b8c6b3deba13ba596897ebed342f | |
parent | 783eacde1c2eb9aa5bbc14647202017ccd9a80a7 [diff] |
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: Zhen Kong <zkong@codeaurora.org> Signed-off-by: Wei Wang <wvw@google.com>