There are many approaches when it goes about running untrusted code on typical CPU : sandboxes, fake-roots, virtualization...
What about untrusted code for GPGPU (OpenCL,cuda or already compiled one) ?
Assuming that memory on graphics card is cleared before running such third-party untrusted code,
- are there any security risks?
- What kind of risks?
- Any way to prevent them ?
- Is sandboxing possible / available on gpgpu ?
- maybe binary instrumentation?
- other techniques?
P.S. I am more interested in gpu binary code level security rather than hight-level gpgpu programming language security (But those solutions are welcome as well). What I mean is that references to gpu opcodes (a.k.a machine code) are welcome.