diff options
author | Konduri Praveen <kondurip@nvidia.com> | 2017-04-27 14:40:36 +0530 |
---|---|---|
committer | Winnie Hsu <whsu@nvidia.com> | 2017-05-02 11:00:31 -0700 |
commit | b16c5fd826c790df730665dcb0835ce9631ac5e1 (patch) | |
tree | 22699b2a1f1d722e4917db38c9b2ca6c954d9cc5 /drivers/misc/phantom.c | |
parent | f93b0de608beb4d492bb45d7c264f1cf45940dc8 (diff) |
tegra-cryptodev:check valid SHA message length
SHA message length is provided from user space
through IOCTL call. If this length is not valid,
then it can lead to panic due to buffer overflow.
Fix by checking message length for SHA before
copying from user space
Bug 1883640
Change-Id: Idc5c6074784290b4622b1c23e5feb43849100cb5
Signed-off-by: Konduri Praveen <kondurip@nvidia.com>
Reviewed-on: http://git-master/r/1471180
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Diffstat (limited to 'drivers/misc/phantom.c')
0 files changed, 0 insertions, 0 deletions