]> git.proxmox.com Git - mirror_zfs.git/commit
Prevent segfaults in SSE optimized Fletcher-4
authorTyler J. Stachecki <stachecki.tyler@gmail.com>
Mon, 18 Jul 2016 21:38:55 +0000 (17:38 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 19 Jul 2016 16:03:44 +0000 (09:03 -0700)
commit3d11ecbddd535e37eeb751a830fb5a897881d25d
tree019faafe30027b486c9ddc558d58b46823f6c63b
parent1b87e0f53249a17f2fbb1d5ca725e65add391ace
Prevent segfaults in SSE optimized Fletcher-4

In some cases, the compiler was not respecting the GNU aligned
attribute for stack variables in 35a76a0. This was resulting in
a segfault on CentOS 6.7 hosts using gcc 4.4.7-17.  This issue
was fixed in gcc 4.6.

To prevent this from occurring, use unaligned loads and stores
for all stack and global memory references in the SSE optimized
Fletcher-4 code.

Disable zimport testing against master where this flaw exists:

TEST_ZIMPORT_VERSIONS="installed"

Signed-off-by: Tyler J. Stachecki <stachecki.tyler@gmail.com>
Signed-off-by: Gvozden Neskovic <neskovic@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4862
module/zcommon/zfs_fletcher_sse.c