Closed hardfalcon closed 9 months ago
By the way, this issue also affects node.js, and projects that use node.js, like electron or lightdm-webkit2-greeter.
Merged, thanks for the contribution!
You're welcome, thanks for merging so quickly :)
@aklomp would it be possible to do a v0.5.1 release? That would help node and electron.
@bnoordhuis Indeed, it's time. I created #122 and will get on it right now.
Alright, released v0.5.1.
Excellent, thanks!
The old/faulty code would try to use AVX/AVX2 if either the SSE bit or the AVX bit were set in XCR0, but did not check if both bits were set.
In most cases, this still worked, but on some machines, enabling linux kernel mitigations for the "gather data sampling" vulnerability results in only the SSE bit but not the AVX bit being set, thus resulting in an illegal instruction and crashing the application.
Fix this by checking that both bits are set.
Fixes: 4bbb590bd047e7d877bf9cc9218ee525ceca1a9b ("Proper check of CPU's AVX2 feature support (with MSVC support)")