[Bug 225922] security/libargon2: optimised code gives illegal instruction fault on older/less capable machines

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Feb 15 16:39:07 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225922

            Bug ID: 225922
           Summary: security/libargon2: optimised code gives illegal
                    instruction fault on older/less capable machines
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: arthur at qeng-ho.org
                CC: hsw at bitmark.com
                CC: hsw at bitmark.com
             Flags: maintainer-feedback?(hsw at bitmark.com)

The Gnu makefile for argon2 by default compiles for the build machine
architecture. Unfortunately I use poudriere to build a local package repository
on my fastest machine and install packages on all other machines on my network.
My build machine has AVX-512 instructions, the machine I want to run the code
on doesn't and crashes with an illegal instruction when it hits a vxorps
opcode.

The ports Makefile has no option to control whether or not optimised code is
used, that depends only on the actual hardware used for the build. It needs an
option to disable use of the optimised code. I've got a quick hack to the
Makefile that works, but don't know if it's of suitable quality for ports. The
diff is attached. I reused the standard SIMD option as the control.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list