linux_dsm_epyc7002/drivers/gpu/host1x
Arto Merilainen 5060d8ec7c gpu: host1x: Check reloc table before usage
The firewall assumed that the user space always delivers a relocation
table when it is accessing address registers. If userspace did not
deliver a relocation table and tried to access the address registers,
the code performed bad memory accesses.

This patch modifies the firewall to check correctly that the firewall
table is available before accessing it. In addition, check_reloc() is
converted to use boolean return value (true when the reloc is valid,
false when invalid).

Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Acked-By: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
2013-06-22 12:43:52 +02:00
..
drm drm/tegra: Remove DRIVER_BUS_PLATFORM from driver_features 2013-06-22 12:43:51 +02:00
hw gpu: host1x: Add debug support 2013-04-22 12:32:46 +02:00
cdma.c gpu: host1x: Add debug support 2013-04-22 12:32:46 +02:00
cdma.h gpu: host1x: Add channel support 2013-04-22 12:32:43 +02:00
channel.c gpu: host1x: Add channel support 2013-04-22 12:32:43 +02:00
channel.h gpu: host1x: Add channel support 2013-04-22 12:32:43 +02:00
debug.c gpu: host1x: Add debug support 2013-04-22 12:32:46 +02:00
debug.h gpu: host1x: Add debug support 2013-04-22 12:32:46 +02:00
dev.c drm/tegra: Add gr2d device 2013-04-22 12:40:04 +02:00
dev.h gpu: host1x: Remove second host1x driver 2013-04-22 12:39:59 +02:00
host1x_bo.h gpu: host1x: Add channel support 2013-04-22 12:32:43 +02:00
host1x_client.h gpu: host1x: Remove second host1x driver 2013-04-22 12:39:59 +02:00
host1x.h drm/tegra: Add gr2d device 2013-04-22 12:40:04 +02:00
intr.c gpu: host1x: Add channel support 2013-04-22 12:32:43 +02:00
intr.h gpu: host1x: Add channel support 2013-04-22 12:32:43 +02:00
job.c gpu: host1x: Check reloc table before usage 2013-06-22 12:43:52 +02:00
job.h gpu: host1x: Add channel support 2013-04-22 12:32:43 +02:00
Kconfig drm/tegra: Move drm to live under host1x 2013-04-22 12:39:11 +02:00
Makefile drm/tegra: Add gr2d device 2013-04-22 12:40:04 +02:00
syncpt.c gpu: host1x: Add debug support 2013-04-22 12:32:46 +02:00
syncpt.h gpu: host1x: Add channel support 2013-04-22 12:32:43 +02:00