rspirv icon indicating copy to clipboard operation
rspirv copied to clipboard

Address access sanitation

Open kvark opened this issue 8 years ago • 2 comments

We need a way of modifying the SPIR-V so that no resource access goes beyond the bounds, for the sake of GPUWeb security. Some of the checks could be omitted by doing a static analysis, but a general approach could be injecting the code that queries buffers/images dimensions and reset the address offset to 0 using a dynamic check for that address to be in the bounds.

kvark avatar Aug 10 '17 16:08 kvark

@dneto0's experimental code in SPIRV-Tools: https://github.com/dneto0/SPIRV-Tools/tree/robust-access

kvark avatar Oct 11 '17 21:10 kvark

Cool! I'll take a look and find some time to working on rspirv.

Been quite absorbed by SPIR-V CodeGen in DirectXShaderCompiler recently. :)

antiagainst avatar Oct 12 '17 02:10 antiagainst