From: Dmitry Osipenko Date: Wed, 14 Jun 2017 23:18:36 +0000 (+0300) Subject: gpu: host1x: Forbid RESTART opcode in the firewall X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ef81624994845a50e90c6a0ff57f17d1c96bff78;p=linux.git gpu: host1x: Forbid RESTART opcode in the firewall The RESTART opcode terminates the gather and restarts the CDMA fetching from a specified word << 2 relative to the CDMA start address. That shouldn't be allowed to be done by userspace. Signed-off-by: Dmitry Osipenko Reviewed-by: Erik Faye-Lund Reviewed-by: Mikko Perttunen Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/host1x/job.c b/drivers/gpu/host1x/job.c index a911de6386b47..54230ec4f81e3 100644 --- a/drivers/gpu/host1x/job.c +++ b/drivers/gpu/host1x/job.c @@ -495,7 +495,6 @@ static int validate(struct host1x_firewall *fw, struct host1x_job_gather *g) goto out; break; case 4: - case 5: case 14: break; default: