Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Feb 2018 16:39:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 225922] security/libargon2: optimised code gives illegal instruction fault on older/less capable machines
Message-ID:  <bug-225922-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225922

            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@FreeBSD.org
          Reporter: arthur@qeng-ho.org
                CC: hsw@bitmark.com
                CC: hsw@bitmark.com
             Flags: maintainer-feedback?(hsw@bitmark.com)

The Gnu makefile for argon2 by default compiles for the build machine
architecture. Unfortunately I use poudriere to build a local package reposi=
tory
on my fastest machine and install packages on all other machines on my netw=
ork.
My build machine has AVX-512 instructions, the machine I want to run the co=
de
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-225922-13>