News for hackers. Stuff that matters.
Re:Wgpu-0.10 released: WebGPU implementation now in pure Rust by nextaccountic on Thursday August 19, 2021 @04:15AM (#28231543)
The commenter said about DoS but what about the fact that GPU memory isn't protected? What if two different shaders run at the same time at the gpu - will one be able to read the other's private memory?

There are GPUs that support IOMMU but they cost a fortune. (or is IOMMU a separate feature than just having virtual memory for GPU memory?)

Running user-supplied shaders seems like a security nightmare.

Re:Wgpu-0.10 released: WebGPU implementation now in pure Rust by garaetjjte on Thursday August 19, 2021 @07:28AM (#28232548)
All modern GPUs have MMUs that prevent shaders from accessing arbitrary memory. In rare cases where it is absent (like VC4 on Raspberry Pi) driver needs to statically analyze shaders and ensure that all memory accesses are clamped.