gpu: host1x: Forbid relocation address shifting in the firewall
authorDmitry Osipenko <digetx@gmail.com>
Wed, 14 Jun 2017 23:18:35 +0000 (02:18 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 15 Jun 2017 12:22:32 +0000 (14:22 +0200)
commit571cbf70c117664d142b34fa2b3b915d8374a327
tree58c09c29d12a99fa7a9f6a5a185b6363e8495310
parent47f89c10ddc439638bc0ea51a7f9872e1b7734ce
gpu: host1x: Forbid relocation address shifting in the firewall

Incorrectly shifted relocation address will cause a lower memory
corruption and likely a hang on a write or a read of an arbitrary data
in case of IOMMU absence. As of now, there is no known use for the
address shifting and adding a proper shifts / sizes validation is a much
more work. Let's forbid shifts in the firewall till a proper validation
is implemented.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Erik Faye-Lund <kusmabite@gmail.com>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/job.c