Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 4bbb590 ("Proper check of CPU's AVX2 feature support (with MSVC support)") Signed-off-by: Pascal Ernster <[email protected]>
- Loading branch information