]> granicus.if.org Git - openssl/commit
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>
Sat, 13 Apr 2013 19:19:16 +0000 (21:19 +0200)
commit07464787a894794be54142fe71da9df782c932af
tree9cc461f08c14564103b3e41584632aaba6579ec5
parente9a3aa97211955dc6d815a71cfa5a6d0a6c4ede9
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)
crypto/modes/modes_lcl.h