[openssl-dev] data_word hiding lock prefix from assembler

Kinsella, Ray ray.kinsella at intel.com
Thu Aug 27 12:06:07 UTC 2015


Hello OpenSSL Org:

The use of data_word in x86cpuid.pl has the effect of hiding the lock
prefix from the assembler.

This is problematic on the Intel X1000 microprocessor which has a bug in
the lock prefix.
On the X1000 the workaround for the bug is to use the assembler option
-momit-lock-prefix=yes
to strip the lock prefix, however when data_word is used it makes this
impossible for the assembler.

I have developed the following patch which appears to work fine on GNU
Linux x86 (32bit);
it compiles fine, passes tests etc.

Github link:

https://github.com/mdr78/openssl/commit/01b1248e57c2f9a35838ae8dac3850a9d6bb5574

I am interested to understand the original rational for using data_word
in place of the perlasm lock()?

Ray K






More information about the openssl-dev mailing list