aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x/debug.c
diff options
context:
space:
mode:
authorDmitry Osipenko <[email protected]>2017-06-14 23:18:37 +0000
committerThierry Reding <[email protected]>2017-06-15 12:23:50 +0000
commit0f563a4bf66e5182f0882efee398f7e6bc0bb1be (patch)
tree3197816e7ddebd5d8360c6aae439d20a956b6a95 /drivers/gpu/host1x/debug.c
parentgpu: host1x: Forbid RESTART opcode in the firewall (diff)
downloadkernel-0f563a4bf66e5182f0882efee398f7e6bc0bb1be.tar.gz
kernel-0f563a4bf66e5182f0882efee398f7e6bc0bb1be.zip
gpu: host1x: Forbid unrelated SETCLASS opcode in the firewall
Several channels could be made to write the same unit concurrently via the SETCLASS opcode, trusting userspace is a bad idea. It should be possible to drop the per-client channel reservation and add a per-unit locking by inserting MLOCK's to the command stream to re-allow the SETCLASS opcode, but it will be much more work. Let's forbid the unit-unrelated class changes for now. Signed-off-by: Dmitry Osipenko <[email protected]> Reviewed-by: Erik Faye-Lund <[email protected]> Reviewed-by: Mikko Perttunen <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/gpu/host1x/debug.c')
0 files changed, 0 insertions, 0 deletions