Development discussion of WireGuard
 help / color / mirror / Atom feed
* CentOS 7 build warning, chacha20_avx512vl
@ 2018-03-25 18:50 Vbook A1
  2018-03-25 21:17 ` Samuel Neves
  0 siblings, 1 reply; 2+ messages in thread
From: Vbook A1 @ 2018-03-25 18:50 UTC (permalink / raw)
  To: wireguard

Hello,

this is the build log of the latest "stable" WireGuard on the latest CentOS 7:

> -bash-4.2# make
>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/main.o
>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/noise.o
>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/device.o
>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/peer.o
>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/timers.o
>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/queueing.o
>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/send.o
>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/receive.o
>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/socket.o
>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/hashtables.o
>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/allowedips.o
>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/ratelimiter.o
>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/cookie.o
>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/netlink.o
>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/crypto/curve25519.o
>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/crypto/chacha20poly1305.o
>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/crypto/blake2s.o
>  AS [M]  /dev/shm/WireGuard-0.0.20180304/src/crypto/chacha20-x86_64.o
> /dev/shm/WireGuard-0.0.20180304/src/crypto/chacha20-x86_64.o: warning: objtool: chacha20_avx512vl()+0x3f: can't find jump dest instruction at .text+0x2669
>  AS [M]  /dev/shm/WireGuard-0.0.20180304/src/crypto/poly1305-x86_64.o
>  AS [M]  /dev/shm/WireGuard-0.0.20180304/src/crypto/blake2s-x86_64.o
>  AS [M]  /dev/shm/WireGuard-0.0.20180304/src/crypto/curve25519-x86_64.o
>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/compat/siphash/siphash.o
>  LD [M]  /dev/shm/WireGuard-0.0.20180304/src/wireguard.o
>  Building modules, stage 2.
>  MODPOST 1 modules
>  CC      /dev/shm/WireGuard-0.0.20180304/src/wireguard.mod.o
>  LD [M]  /dev/shm/WireGuard-0.0.20180304/src/wireguard.ko
>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/wg.o
>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/config.o
>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/show.o
>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/terminal.o
>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/ipc.o
>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/mnlg.o
>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/encoding.o
>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/curve25519.o
>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/setconf.o
>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/genkey.o
>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/showconf.o
>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/pubkey.o
>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/set.o
>  LD      /dev/shm/WireGuard-0.0.20180304/src/tools/wg


git "unstable" version gives the same warning:

>   AS [M]  /dev/shm/WireGuard/src/crypto/chacha20-x86_64.o
> /dev/shm/WireGuard/src/crypto/chacha20-x86_64.o: warning: objtool: chacha20_avx512vl()+0x3f: can't find jump dest instruction at .text+0x2669


However Wireguard [seemingly] works well despite this warning, tested
with three CentOS 7 servers. Is it OK?


System info:
CentOS 7.4.1708 64bit
Kernel 3.10.0-693.21.1.el7.x86_64
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16)
Make 3.82
elfutils 0.168-8.el7
libmnl 1.0.3-7.el7


BTW many thanks for such a great software, I fell in love with
Wireguard for its simplicity after working for several years with
OpenVPN.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: CentOS 7 build warning, chacha20_avx512vl
  2018-03-25 18:50 CentOS 7 build warning, chacha20_avx512vl Vbook A1
@ 2018-03-25 21:17 ` Samuel Neves
  0 siblings, 0 replies; 2+ messages in thread
From: Samuel Neves @ 2018-03-25 21:17 UTC (permalink / raw)
  To: Vbook A1; +Cc: wireguard

I don't think this is a problem.

This seems to be related to the toolchain not knowing about AVX-512
instructions yet, and therefore mistaking some instruction bytes for
other instructions (i.e., the byte sequence 7d 28 at 0x263f looks like
a jump to offset 0x2669, but it's part of an AVX-512 instruction
`vmovdqa32 ymm16,ymm0`).

Since Linux only added AVX-512 support in version 3.15, this wouldn't
make any difference anyway, as CentOS is stuck on 3.10.

Best,
Samuel Neves


On Sun, Mar 25, 2018 at 7:50 PM, Vbook A1 <vbooka1maillist@gmail.com> wrote:
> Hello,
>
> this is the build log of the latest "stable" WireGuard on the latest CentOS 7:
>
>> -bash-4.2# make
>>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/main.o
>>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/noise.o
>>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/device.o
>>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/peer.o
>>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/timers.o
>>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/queueing.o
>>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/send.o
>>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/receive.o
>>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/socket.o
>>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/hashtables.o
>>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/allowedips.o
>>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/ratelimiter.o
>>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/cookie.o
>>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/netlink.o
>>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/crypto/curve25519.o
>>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/crypto/chacha20poly1305.o
>>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/crypto/blake2s.o
>>  AS [M]  /dev/shm/WireGuard-0.0.20180304/src/crypto/chacha20-x86_64.o
>> /dev/shm/WireGuard-0.0.20180304/src/crypto/chacha20-x86_64.o: warning: objtool: chacha20_avx512vl()+0x3f: can't find jump dest instruction at .text+0x2669
>>  AS [M]  /dev/shm/WireGuard-0.0.20180304/src/crypto/poly1305-x86_64.o
>>  AS [M]  /dev/shm/WireGuard-0.0.20180304/src/crypto/blake2s-x86_64.o
>>  AS [M]  /dev/shm/WireGuard-0.0.20180304/src/crypto/curve25519-x86_64.o
>>  CC [M]  /dev/shm/WireGuard-0.0.20180304/src/compat/siphash/siphash.o
>>  LD [M]  /dev/shm/WireGuard-0.0.20180304/src/wireguard.o
>>  Building modules, stage 2.
>>  MODPOST 1 modules
>>  CC      /dev/shm/WireGuard-0.0.20180304/src/wireguard.mod.o
>>  LD [M]  /dev/shm/WireGuard-0.0.20180304/src/wireguard.ko
>>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/wg.o
>>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/config.o
>>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/show.o
>>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/terminal.o
>>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/ipc.o
>>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/mnlg.o
>>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/encoding.o
>>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/curve25519.o
>>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/setconf.o
>>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/genkey.o
>>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/showconf.o
>>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/pubkey.o
>>  CC      /dev/shm/WireGuard-0.0.20180304/src/tools/set.o
>>  LD      /dev/shm/WireGuard-0.0.20180304/src/tools/wg
>
>
> git "unstable" version gives the same warning:
>
>>   AS [M]  /dev/shm/WireGuard/src/crypto/chacha20-x86_64.o
>> /dev/shm/WireGuard/src/crypto/chacha20-x86_64.o: warning: objtool: chacha20_avx512vl()+0x3f: can't find jump dest instruction at .text+0x2669
>
>
> However Wireguard [seemingly] works well despite this warning, tested
> with three CentOS 7 servers. Is it OK?
>
>
> System info:
> CentOS 7.4.1708 64bit
> Kernel 3.10.0-693.21.1.el7.x86_64
> gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16)
> Make 3.82
> elfutils 0.168-8.el7
> libmnl 1.0.3-7.el7
>
>
> BTW many thanks for such a great software, I fell in love with
> Wireguard for its simplicity after working for several years with
> OpenVPN.
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-25 21:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-25 18:50 CentOS 7 build warning, chacha20_avx512vl Vbook A1
2018-03-25 21:17 ` Samuel Neves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).