4 ms·
> iirc AVX2's masks on AMD can still fault for masked out elements wait, wat? Do you mean _mm_maskload_ps and _mm_maskstore_ps would segfault, where they shoul
by p0nce 4y ago
> iirc AVX2's masks on AMD can still fault for masked out elements
wait, wat? Do you mean _mm_maskload_ps and _mm_maskstore_ps would segfault, where they should not by-spec?
- janwas 4y agoYes, they theoretically could. The AMD manual contains this language: Exception and trap behavior for elements not selected for loading or storing from/to memory is implementation dependent. For instance, a given implementation may signal a data breakpoint or a page fault for doublewords that are zero-masked and not actually written.
- p0nce 4y agoWell this makes the instruction useless unless all memory pointed to makes no page fault.
- p0nce 4y agoOh god it's worse than expected: https://erik.science/2019/06/21/AVX-fun.html https://erik.science/2019/06/21/AVX-fun.html
- janwas 4y agoInteresting, hadn't seen this before. So it's another side channel, one of many.