]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
media: tegra: nvavp: Fix reloc offset check
authorSomu Sundaram <somasundaram@nvidia.com>
Fri, 18 Mar 2016 07:22:59 +0000 (12:52 +0530)
committerMatthew Pedro <mapedro@nvidia.com>
Tue, 5 Apr 2016 20:57:03 +0000 (13:57 -0700)
commit69291e6a08ddef8fc504d57f5e995fc336ca14c2
treeb515087f19a9d0cc576e4ef85e271b0e6993797e
parentc87e60a0b17e565fee2f065a651cab849ae8335b
media: tegra: nvavp: Fix reloc offset check

- Check whether command buffer data offset is 32-bit
  aligned
- Check whether relocation offset is 32-bit aligned
  and calculated offset is within command buffer size
- Check whether target offset is 32-bit aligned
  and derived address is within target buffer size

Bug 1741516

Change-Id: Ie5370bc1538c8cf9a702904fb88eb850baeb063d
Signed-off-by: Somu Sundaram <somasundaram@nvidia.com>
Reviewed-on: http://git-master/r/1113949
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Somu Sundaram <somasundarams@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/media/platform/tegra/nvavp/nvavp_dev.c