Descriptioncrypto: disable NSS AES-NI support when AVX is disabled by OS.
When running under Xen, or with certain kernel configurations, it's possible
for the CPU to support AVX but for the operating system not to have configured
it. In this case, CPUID indicates that AVX support exists and NSS will try to
use it for AES-GCM. However, the first AVX instruction will cause an illegal
instruction exception.
This change works around the problem by disabling AES-NI support when AVX
support exists but is not supported by the OS. Sadly this also means that plain
AES instructions are also disabled in this case, but that's better than
crashing.
https://bugzilla.mozilla.org/show_bug.cgi?id=940794
BUG=320524
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236794
Patch Set 1 #
Total comments: 2
Patch Set 2 : Use base::Environment #
Total comments: 15
Patch Set 3 : Add NSS version check. #Patch Set 4 : ... #
Messages
Total messages: 11 (0 generated)
|