crypto/modes/modes_lcl.h: let STRICT_ALIGNMENT be on ARMv7.
authorAndy Polyakov <appro@openssl.org>
Sat, 13 Apr 2013 18:57:37 +0000 (20:57 +0200)
committerAndy Polyakov <appro@openssl.org>
Wed, 20 May 2015 07:18:57 +0000 (09:18 +0200)
commitd8a23532dd3a023b7fa43db7d1dc4433a42363cb
tree98434daf12ea218430bcd7b848faa9aaedd89292
parent8a09500d9cc1bafcbafb4d18c1bf2238bf354171
crypto/modes/modes_lcl.h: let STRICT_ALIGNMENT be on ARMv7.

While ARMv7 in general is capable of unaligned access, not all instructions
actually are. And trouble is that compiler doesn't seem to differentiate
those capable and incapable of unaligned access. Side effect is that kernel
goes into endless loop retrying same instruction triggering unaligned trap.
Problem was observed in xts128.c and ccm128.c modules. It's possible to
resolve it by using (volatile u32*) casts, but letting STRICT_ALIGNMENT
be feels more appropriate.

(cherry picked from commit 3bdd80521a81d50ade4214053cd9b293f920a77b)
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
crypto/modes/modes_lcl.h