video: tegra: nvmap: fix information leak in pin/unpin
authorSri Krishna chowdary <schowdary@nvidia.com>
Fri, 3 Mar 2017 05:14:08 +0000 (10:14 +0530)
committerManish Tuteja <mtuteja@nvidia.com>
Fri, 7 Apr 2017 20:22:26 +0000 (13:22 -0700)
commit6317b094f0386dad4e98c2c8e6086eb7c4b67b8d
tree1a3a877002ae84333083fec27222a78c93ddb2a9
parent223db970ccf667067024ad8a16fa0f7198d4f589
video: tegra: nvmap: fix information leak in pin/unpin

When the NVMAP_IOC_PIN_MULT_32 and NVMAP_IOC_UNPIN_MULT_32 are
called it is possible that the op.addr is not initialized. This
can cause write to some random address thus causing corruption.

This patch fixes Google Bug 31668540

Bug 1832092
Bug 1887273

Change-Id: I4d12d1a6c777131ba1fa2a753ea640861f8e82a6
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1315807
(cherry picked from commit d25ef256594f41723eaae3ba0bb9cb4e9c4a3b4c)
Reviewed-on: http://git-master/r/1458149
Reviewed-by: Manish Tuteja <mtuteja@nvidia.com>
Tested-by: Manish Tuteja <mtuteja@nvidia.com>
drivers/video/tegra/nvmap/nvmap_ioctl.c