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)
committerWinnie Hsu <whsu@nvidia.com>
Wed, 21 Jun 2017 23:52:34 +0000 (16:52 -0700)
commitd45c4c5cae287106a349c4f85d12c45920147fb0
tree702ca7445ee94207097eb5d2c3e7d2ca89039bba
parent707cd5f568f3521090d31dec663f54d7fca08347
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

Change-Id: I4d12d1a6c777131ba1fa2a753ea640861f8e82a6
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/1314406
(cherry picked from commit da0c43534bb61e2e0849e297d389517d5e4ed168)
Reviewed-on: http://git-master/r/1504673
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
drivers/video/tegra/nvmap/nvmap_ioctl.c