All of lore.kernel.org
 help / color / mirror / Atom feed
* wireguard-dkms and CentOS 7.5
@ 2018-05-10 13:59 Henry Snow
  2018-05-10 15:34 ` Jason A. Donenfeld
  0 siblings, 1 reply; 17+ messages in thread
From: Henry Snow @ 2018-05-10 13:59 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1: Type: text/plain, Size: 5865 bytes --]

Hi Wireguard Users,

It looks like CentOS 7.5 was released recently, bringing with it new kernel
and tools versions. When installing the wireguard-dkms package from the
RHEL/CentOS7 repo, I'm seeing the following error:

make -j40 KERNELRELEASE=3.10.0-862.el7.x86_64 -C
/lib/modules/3.10.0-862.el7.x86_64/build
M=/var/lib/dkms/wireguard/0.0.20180420/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 3.10.0-862.el7.x86_64
(x86_64)
Consult /var/lib/dkms/wireguard/0.0.20180420/build/make.log for more
information.

For brevity, the first few lines from make.log is pasted below. Full output
can be found at https://pastebin.com/raw/teYsNLV1
<https://pastebin.com/teYsNLV1>

Any new requirements needed to build, or is a code change required?

make.log:
DKMS make.log for wireguard-0.0.20180420 for kernel 3.10.0-862.el7.x86_64
(x86_64)
Thu May 10 09:37:05 EDT 2018
make: Entering directory `/usr/src/kernels/3.10.0-862.el7.x86_64'
  LD      /var/lib/dkms/wireguard/0.0.20180420/build/built-in.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/main.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/noise.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/device.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/peer.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/timers.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/queueing.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/send.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/receive.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/socket.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/hashtables.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/allowedips.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/ratelimiter.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/cookie.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/netlink.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/crypto/curve25519.o
  CC [M]
/var/lib/dkms/wireguard/0.0.20180420/build/crypto/chacha20poly1305.o
  AS [M]
/var/lib/dkms/wireguard/0.0.20180420/build/crypto/chacha20-x86_64.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/crypto/blake2s.o
  AS [M]
/var/lib/dkms/wireguard/0.0.20180420/build/crypto/poly1305-x86_64.o
  AS [M]  /var/lib/dkms/wireguard/0.0.20180420/build/crypto/blake2s-x86_64.o
  CC [M]
/var/lib/dkms/wireguard/0.0.20180420/build/compat/siphash/siphash.o
/var/lib/dkms/wireguard/0.0.20180420/build/crypto/chacha20-x86_64.o:
warning: objtool: chacha20_avx512vl()+0x3f: can't find jump dest
instruction at .text+0x2669
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from include/linux/filter.h:11:0,
                 from include/net/sock.h:67,
                 from include/linux/tcp.h:23,
                 from include/linux/ipv6.h:70,
                 from include/net/dsfield.h:11,
                 from include/net/ip_tunnels.h:12,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/net/sch_generic.h:454:20: note: previous definition of
‘skb_reset_tc’ was here
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from include/linux/filter.h:11:0,
                 from include/net/sock.h:67,
                 from include/linux/tcp.h:23,
                 from include/linux/ipv6.h:70,
                 from include/net/dsfield.h:11,
                 from include/net/ip_tunnels.h:12,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/net/sch_generic.h:454:20: note: previous definition of
‘skb_reset_tc’ was here
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from include/linux/filter.h:11:0,
                 from include/net/sock.h:67,
                 from include/linux/tcp.h:23,
                 from include/linux/ipv6.h:70,
                 from include/net/dsfield.h:11,
                 from include/net/ip_tunnels.h:12,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/net/sch_generic.h:454:20: note: previous definition of
‘skb_reset_tc’ was here
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:177:0,
                 from <command-line>:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/checksum/checksum_partial_compat.h:192:19:
error: static declaration of ‘skb_checksum_setup’ follows non-static
declaration
-- 
Henry Snow | Director, Site Reliability Engineering
eXelate, a Nielsen company <http://exelate.com/>
E: henry.snow@nielsen.com | M: 347.366.2700
675 6th Ave, 3rd Floor, New York, NY 10010

[-- Attachment #2: Type: text/html, Size: 8343 bytes --]

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

* Re: wireguard-dkms and CentOS 7.5
  2018-05-10 13:59 wireguard-dkms and CentOS 7.5 Henry Snow
@ 2018-05-10 15:34 ` Jason A. Donenfeld
  2018-05-10 16:14   ` Jason A. Donenfeld
  0 siblings, 1 reply; 17+ messages in thread
From: Jason A. Donenfeld @ 2018-05-10 15:34 UTC (permalink / raw)
  To: Henry Snow; +Cc: wireguard

Hi Henry,

Thanks for the report. I'll look into RHEL 7.5 compat code and get back to you.

Jason

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

* Re: wireguard-dkms and CentOS 7.5
  2018-05-10 15:34 ` Jason A. Donenfeld
@ 2018-05-10 16:14   ` Jason A. Donenfeld
  2018-05-10 16:31     ` Henry Snow
  2018-05-11 16:07     ` Joe Doss
  0 siblings, 2 replies; 17+ messages in thread
From: Jason A. Donenfeld @ 2018-05-10 16:14 UTC (permalink / raw)
  To: Henry Snow, Joe Doss; +Cc: wireguard

Hi again,

I've fixed that here:
https://git.zx2c4.com/WireGuard/patch/?id=94f25e47b23ddeba26120de4ee3c098438fc2251

This will be part of the next snapshot. In the meantime, you can apply
that manually to the src directory, and perhaps Joe (CCd) can add it
to the rpm.

Jason

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

* Re: wireguard-dkms and CentOS 7.5
  2018-05-10 16:14   ` Jason A. Donenfeld
@ 2018-05-10 16:31     ` Henry Snow
  2018-05-10 17:24       ` Henry Snow
  2018-05-11 16:07     ` Joe Doss
  1 sibling, 1 reply; 17+ messages in thread
From: Henry Snow @ 2018-05-10 16:31 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: wireguard

[-- Attachment #1: Type: text/plain, Size: 632 bytes --]

Perfect, that patch worked for me. Thank you for the quick fix!

On Thu, May 10, 2018 at 12:14 PM Jason A. Donenfeld <Jason@zx2c4.com> wrote:

> Hi again,
>
> I've fixed that here:
>
> https://git.zx2c4.com/WireGuard/patch/?id=94f25e47b23ddeba26120de4ee3c098438fc2251
>
> This will be part of the next snapshot. In the meantime, you can apply
> that manually to the src directory, and perhaps Joe (CCd) can add it
> to the rpm.
>
> Jason
>
-- 
Henry Snow | Director, Site Reliability Engineering
eXelate, a Nielsen company <http://exelate.com/>
E: henry.snow@nielsen.com | M: 347.366.2700
675 6th Ave, 3rd Floor, New York, NY 10010

[-- Attachment #2: Type: text/html, Size: 1747 bytes --]

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

* Re: wireguard-dkms and CentOS 7.5
  2018-05-10 16:31     ` Henry Snow
@ 2018-05-10 17:24       ` Henry Snow
  2018-05-10 17:25         ` Jason A. Donenfeld
  0 siblings, 1 reply; 17+ messages in thread
From: Henry Snow @ 2018-05-10 17:24 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: wireguard

[-- Attachment #1: Type: text/plain, Size: 1830 bytes --]

Well, I might have spoken too soon. As soon as a connection was established
to another wireguard peer (v. 0.0.20180118), the CentOS 7.5 server kernel
panic'd.

Message from syslogd@tun001 at May 10 12:53:12 ...
 kernel:Kernel panic - not syncing: Fatal exception in interrupt

Seeing something along the lines of this in the console output on boot:
[   29.418257] wireguard: loading out-of-tree module taints kernel.
[   29.454659] wireguard: WireGuard 0.0.20180420 loaded. See
www.wireguard.com for information.
[   29.464057] wireguard: Copyright (C) 2015-2018 Jason A. Donenfeld <
Jason@zx2c4.com>. All Rights R.
[   29.598028] ------------[ cut here ]------------
[   29.604356] kernel BUG at mm/slub.c:3601!
[   29.609122] invalid opcode: 0000 [#1] SMP
[   29.614013] Modules linked in: veth vxlan wireguard(OE) bridge stp llc
ip_vs ip6_udp_tunnel udp_tunnel bonding ip


On Thu, May 10, 2018 at 12:31 PM Henry Snow <henry.snow@nielsen.com> wrote:

> Perfect, that patch worked for me. Thank you for the quick fix!
>
>
> On Thu, May 10, 2018 at 12:14 PM Jason A. Donenfeld <Jason@zx2c4.com>
> wrote:
>
>> Hi again,
>>
>> I've fixed that here:
>>
>> https://git.zx2c4.com/WireGuard/patch/?id=94f25e47b23ddeba26120de4ee3c098438fc2251
>>
>> This will be part of the next snapshot. In the meantime, you can apply
>> that manually to the src directory, and perhaps Joe (CCd) can add it
>> to the rpm.
>>
>> Jason
>>
> --
> Henry Snow | Director, Site Reliability Engineering
> eXelate, a Nielsen company <http://exelate.com/>
> E: henry.snow@nielsen.com | M: 347.366.2700 <(347)%20366-2700>
> 675 6th Ave, 3rd Floor, New York, NY 10010
>
-- 
Henry Snow | Director, Site Reliability Engineering
eXelate, a Nielsen company <http://exelate.com/>
E: henry.snow@nielsen.com | M: 347.366.2700
675 6th Ave, 3rd Floor, New York, NY 10010

[-- Attachment #2: Type: text/html, Size: 4299 bytes --]

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

* Re: wireguard-dkms and CentOS 7.5
  2018-05-10 17:24       ` Henry Snow
@ 2018-05-10 17:25         ` Jason A. Donenfeld
  2018-05-10 17:35           ` Henry Snow
  0 siblings, 1 reply; 17+ messages in thread
From: Jason A. Donenfeld @ 2018-05-10 17:25 UTC (permalink / raw)
  To: Henry Snow; +Cc: wireguard

Yikes. I guess I need to examine my compat backport closely. Do you
have any more logging than that? Usually there's a backtrace.

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

* Re: wireguard-dkms and CentOS 7.5
  2018-05-10 17:25         ` Jason A. Donenfeld
@ 2018-05-10 17:35           ` Henry Snow
  2018-05-10 17:36             ` Jason A. Donenfeld
  0 siblings, 1 reply; 17+ messages in thread
From: Henry Snow @ 2018-05-10 17:35 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: wireguard

[-- Attachment #1: Type: text/plain, Size: 3213 bytes --]

Was able to pull a little more this time. This help?

 datasource:      [   29.570013] ------------[ cut here ]------------
[   29.575937] kernel BUG at mm/slub.c:3601!
[   29.580741] invalid opcode: 0000 [#1] SMP
[   29.585663] Modules linked in: wireguard(OE) veth vxlan ip6_udp_tunnel
udp_tunnel bridge sd
[   29.689129] CPU: 1 PID: 223 Comm: kworker/1:1 Tainted: G           OE
------------   3.101
[   29.700019] Hardware name: Dell Inc. PowerEdge R640/0W23H8, BIOS 1.3.7
02/08/2018
[   29.708399] Workqueue: wg-crypt-wg0 packet_rx_worker [wireguard]
[   29.715340] task: ffff920e8b608000 ti: ffff920e8b610000 task.ti:
ffff920e8b610000
[   29.723722] RIP: 0010:[<ffffffff8b1f6c1c>]  [<ffffffff8b1f6c1c>]
kfree+0x13c/0x140
[   29.732222] RSP: 0018:ffff920e8b613ce8  EFLAGS: 00010246
[   29.738429] RAX: 006fffff00000000 RBX: ffff920e76fbf000 RCX:
00000000fffbdd13
[   29.746466] RDX: 006fffff00000000 RSI: 0000000000000206 RDI:
ffff920e76fbf000
[   29.754489] RBP: ffff920e8b613d00 R08: 0000000000000001 R09:
b7c55a3205f72200
[   29.762508] R10: 0000000000000000 R11: ffffeddddfdbefc0 R12:
ffff920e76fbf6c0
[   29.770525] R13: ffffffff8b5d60c5 R14: ffff920e80220000 R15:
ffff920e7e7e2500
[   29.778535] FS:  0000000000000000(0000) GS:ffff920e8be00000(0000)
knlGS:0000000000000000
[   29.787497] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   29.794125] CR2: 00007ffe415adee0 CR3: 0000000c0e1ea000 CR4:
00000000007607e0
[   29.802143] DR0: 0000000000000000 DR1: 0000000000000000 DR2:
0000000000000000
[   29.810161] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7:
0000000000000400
[   29.818152] PKRU: 00000000
[   29.821713] Call Trace:
[   29.825002]  [<ffffffff8b5d60c5>] skb_release_data+0xf5/0x140
[   29.831595]  [<ffffffff8b5d6134>] skb_release_all+0x24/0x30
[   29.838008]  [<ffffffff8b5d659c>] consume_skb+0x2c/0x90
[   29.844073]  [<ffffffffc088df35>] packet_rx_worker+0x2d5/0x7f0
[wireguard]
[   29.851802]  [<ffffffff8b71291c>] ? __schedule+0x41c/0xa20
[   29.858139]  [<ffffffff8b0b2dff>] process_one_work+0x17f/0x440
[   29.864817]  [<ffffffff8b0b3ac6>] worker_thread+0x126/0x3c0
[   29.871238]  [<ffffffff8b0b39a0>] ? manage_workers.isra.24+0x2a0/0x2a0
[   29.878612]  [<ffffffff8b0bae31>] kthread+0xd1/0xe0
[   29.884338]  [<ffffffff8b0bad60>] ? insert_kthread_work+0x40/0x40
[   29.891284]  [<ffffffff8b71f61d>] ret_from_fork_nospec_begin+0x7/0x21
[   29.898578]  [<ffffffff8b0bad60>] ? insert_kthread_work+0x40/0x40
[   29.905513] Code: 49 8b 03 31 f6 f6 c4 40 74 04 41 8b 73 68 4c 89 df e8
89 63 fa ff eb 84
[   29.927746] RIP  [<ffffffff8b1f6c1c>] kfree+0x13c/0x140
[   29.933888]  RSP <ffff920e8b613ce8>
                [   29.938300] ---[ end trace 66811942e35f2cba ]---
                            #
[   29.948435] Kernel panic - not syncing: Fatal exception in interrupt


On Thu, May 10, 2018 at 1:26 PM Jason A. Donenfeld <Jason@zx2c4.com> wrote:

> Yikes. I guess I need to examine my compat backport closely. Do you
> have any more logging than that? Usually there's a backtrace.
>
-- 
Henry Snow | Director, Site Reliability Engineering
eXelate, a Nielsen company <http://exelate.com/>
E: henry.snow@nielsen.com | M: 347.366.2700
675 6th Ave, 3rd Floor, New York, NY 10010

[-- Attachment #2: Type: text/html, Size: 4842 bytes --]

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

* Re: wireguard-dkms and CentOS 7.5
  2018-05-10 17:35           ` Henry Snow
@ 2018-05-10 17:36             ` Jason A. Donenfeld
  2018-05-10 17:49               ` Jason A. Donenfeld
  0 siblings, 1 reply; 17+ messages in thread
From: Jason A. Donenfeld @ 2018-05-10 17:36 UTC (permalink / raw)
  To: Henry Snow; +Cc: wireguard

Perfect, thanks. I'll look into it. Anything funky about your setup or
just vanilla tunneling?

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

* Re: wireguard-dkms and CentOS 7.5
  2018-05-10 17:36             ` Jason A. Donenfeld
@ 2018-05-10 17:49               ` Jason A. Donenfeld
  2018-05-10 18:26                 ` Germano Massullo
  2018-05-10 20:25                 ` Jason A. Donenfeld
  0 siblings, 2 replies; 17+ messages in thread
From: Jason A. Donenfeld @ 2018-05-10 17:49 UTC (permalink / raw)
  To: Henry Snow; +Cc: wireguard

Hi Henry,

With preliminary tests, I'm unable to reproduce on a freshly installed
and fully updated CentOS 7.5. Is it possible that perhaps your build
directory wasn't clean in between the patch, and so it's a
mis-compilation? Perhaps if you try to remove all objects (make
clean), and try again, there'll be higher success? On my end I'll keep
playing and seeing if I can crash it.

Jason

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

* Re: wireguard-dkms and CentOS 7.5
  2018-05-10 17:49               ` Jason A. Donenfeld
@ 2018-05-10 18:26                 ` Germano Massullo
  2018-05-10 20:25                 ` Jason A. Donenfeld
  1 sibling, 0 replies; 17+ messages in thread
From: Germano Massullo @ 2018-05-10 18:26 UTC (permalink / raw)
  To: wireguard

QSB5dW0gbWVzc2FnZSB3aGlsZSB1cGdyYWRpbmcgZnJvbSBDZW50T1MgZnJvbSA3LjQgdG8g
Ny41Cj09PT09PT0KoFVwZGF0ZSCgoKAgOgoxOndpcmVndWFyZC1ka21zLTAuMC4yMDE4MDQy
MC0xLmVsNy5jZW50b3Mubm9hcmNooKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCg
oKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKAK
NDQvMzc2Cndhcm5pbmc6ICVwb3N0KHdpcmVndWFyZC1ka21zLTE6MC4wLjIwMTgwNDIwLTEu
ZWw3LmNlbnRvcy5ub2FyY2gpCnNjcmlwdGxldCBmYWlsZWQsIHNpZ25hbCA5Ck5vbi1mYXRh
bCBQT1NUSU4gc2NyaXB0bGV0IGZhaWx1cmUgaW4gcnBtIHBhY2thZ2UKMTp3aXJlZ3VhcmQt
ZGttcy0wLjAuMjAxODA0MjAtMS5lbDcuY2VudG9zLm5vYXJjaApLaWxsZWQKPT09PT09PQo=

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

* Re: wireguard-dkms and CentOS 7.5
  2018-05-10 17:49               ` Jason A. Donenfeld
  2018-05-10 18:26                 ` Germano Massullo
@ 2018-05-10 20:25                 ` Jason A. Donenfeld
  2018-05-10 21:41                   ` Henry Snow
  1 sibling, 1 reply; 17+ messages in thread
From: Jason A. Donenfeld @ 2018-05-10 20:25 UTC (permalink / raw)
  To: Henry Snow; +Cc: wireguard

Hi Henry,

Here's a transcript of things working fine with the latest master
branch: https://=D7=90.cc/GEDdGn4N

I'm still playing to see if I can reproduce your crash.

Jason

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

* Re: wireguard-dkms and CentOS 7.5
  2018-05-10 20:25                 ` Jason A. Donenfeld
@ 2018-05-10 21:41                   ` Henry Snow
  2018-05-10 21:47                     ` Jason A. Donenfeld
  0 siblings, 1 reply; 17+ messages in thread
From: Henry Snow @ 2018-05-10 21:41 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: wireguard

[-- Attachment #1: Type: text/plain, Size: 4206 bytes --]

Hmm...yeah, I've followed these steps:

Fresh CentOS 7.5 install
yum install git libmnl-devel elfutils-libelf-devel kernel-devel
@development-tools
git clone https://git.zx2c4.com/WireGuard
cd WireGuard/src
make
make install
deploy /etc/wireguard/wg0.conf
systemctl start wg-quick@wg0
kernel panic.

Any additional debugging steps I can provide? This trace looks a little
different, so also including it:

[ 1571.621740] ------------[ cut here ]------------
[ 1571.627195] WARNING: CPU: 1 PID: 264 at arch/x86/kernel/smp.c:127
native_smp_send_reschedule+0x65/0x70
[ 1571.637324] Modules linked in: wireguard(OE) ip6_udp_tunnel udp_tunnel
bonding skx_edac intel_powerclamp coretempd
[ 1571.715278] CPU: 1 PID: 264 Comm: kworker/1:2 Tainted: G      D    OE
------------   3.10.0-862.2.3.el7.x86_64 #1
[ 1571.726478] Hardware name: Dell Inc. PowerEdge R640/0W23H8, BIOS 1.3.7
02/08/2018
[ 1571.734820] Workqueue: wg-crypt-wg0 packet_rx_worker [wireguard]
[ 1571.741700] Call Trace:
[ 1571.744990]  <IRQ>  [<ffffffffa7d0d78e>] dump_stack+0x19/0x1b
[ 1571.751604]  [<ffffffffa76916d8>] __warn+0xd8/0x100
[ 1571.757319]  [<ffffffffa769181d>] warn_slowpath_null+0x1d/0x20
[ 1571.763975]  [<ffffffffa7654245>] native_smp_send_reschedule+0x65/0x70
[ 1571.771325]  [<ffffffffa76dd791>] trigger_load_balance+0x191/0x280
[ 1571.778320]  [<ffffffffa76d1f75>] ? sched_clock_cpu+0x85/0xc0
[ 1571.784883]  [<ffffffffa76cd41a>] scheduler_tick+0x10a/0x150
[ 1571.791355]  [<ffffffffa7701420>] ? tick_sched_do_timer+0x50/0x50
[ 1571.798254]  [<ffffffffa76a4825>] update_process_times+0x65/0x80
[ 1571.805063]  [<ffffffffa7701220>] tick_sched_handle+0x30/0x70
[ 1571.811608]  [<ffffffffa7701459>] tick_sched_timer+0x39/0x80
[ 1571.818060]  [<ffffffffa76beff6>] __hrtimer_run_queues+0xd6/0x260
[ 1571.824937]  [<ffffffffa76bf58f>] hrtimer_interrupt+0xaf/0x1d0
[ 1571.831549]  [<ffffffffa76577fb>] local_apic_timer_interrupt+0x3b/0x60
[ 1571.838863]  [<ffffffffa7d24063>] smp_apic_timer_interrupt+0x43/0x60
[ 1571.846003]  [<ffffffffa7d207b2>] apic_timer_interrupt+0x162/0x170
[ 1571.852973]  <EOI>  [<ffffffffa7d07b80>] ? panic+0x1d8/0x21f
[ 1571.859455]  [<ffffffffa7d17763>] oops_end+0xd3/0xe0
[ 1571.865223]  [<ffffffffa762e96b>] die+0x4b/0x70
[ 1571.870555]  [<ffffffffa7d16eb0>] do_trap+0x60/0x170
[ 1571.876314]  [<ffffffffa762b284>] do_invalid_op+0xb4/0x130
[ 1571.882591]  [<ffffffffa77f6bbc>] ? kfree+0x13c/0x140
[ 1571.888435]  [<ffffffffa76d3838>] ? __enqueue_entity+0x78/0x80
[ 1571.895059]  [<ffffffffa76da2fc>] ? enqueue_entity+0x26c/0xb60
[ 1571.901676]  [<ffffffffa795bb78>] ? prandom_u32+0x18/0x20
[ 1571.907858]  [<ffffffffa7bd60c5>] ? skb_release_data+0xf5/0x140
[ 1571.914561]  [<ffffffffa7d22aee>] invalid_op+0x1e/0x30
[ 1571.920479]  [<ffffffffa7bd60c5>] ? skb_release_data+0xf5/0x140
[ 1571.927164]  [<ffffffffa77f6bbc>] ? kfree+0x13c/0x140
[ 1571.932962]  [<ffffffffa7bd60c5>] skb_release_data+0xf5/0x140
[ 1571.939446]  [<ffffffffa7bd6134>] skb_release_all+0x24/0x30
[ 1571.945743]  [<ffffffffa7bd659c>] consume_skb+0x2c/0x90
[ 1571.951700]  [<ffffffffc08eff35>] packet_rx_worker+0x2d5/0x7f0
[wireguard]
[ 1571.959302]  [<ffffffffa76b2dff>] process_one_work+0x17f/0x440
[ 1571.965847]  [<ffffffffa76b3ac6>] worker_thread+0x126/0x3c0
[ 1571.972117]  [<ffffffffa76b39a0>] ? manage_workers.isra.24+0x2a0/0x2a0
[ 1571.979327]  [<ffffffffa76bae31>] kthread+0xd1/0xe0
[ 1571.984873]  [<ffffffffa76bad60>] ? insert_kthread_work+0x40/0x40
[ 1571.991611]  [<ffffffffa7d1f5dd>] ret_from_fork_nospec_begin+0x7/0x21
[ 1571.998687]  [<ffffffffa76bad60>] ? insert_kthread_work+0x40/0x40
[ 1572.005389] ---[ end trace 5ef54fbe37d13ebd ]---



On Thu, May 10, 2018 at 4:25 PM Jason A. Donenfeld <Jason@zx2c4.com> wrote:

> Hi Henry,
>
> Here's a transcript of things working fine with the latest master
> branch: https://א.cc/GEDdGn4N <https://xn--4db.cc/GEDdGn4N>
>
> I'm still playing to see if I can reproduce your crash.
>
> Jason
>
-- 
Henry Snow | Director, Site Reliability Engineering
eXelate, a Nielsen company <http://exelate.com/>
E: henry.snow@nielsen.com | M: 347.366.2700
675 6th Ave, 3rd Floor, New York, NY 10010

[-- Attachment #2: Type: text/html, Size: 6162 bytes --]

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

* Re: wireguard-dkms and CentOS 7.5
  2018-05-10 21:41                   ` Henry Snow
@ 2018-05-10 21:47                     ` Jason A. Donenfeld
  0 siblings, 0 replies; 17+ messages in thread
From: Jason A. Donenfeld @ 2018-05-10 21:47 UTC (permalink / raw)
  To: Henry Snow; +Cc: wireguard

Hmm. Is the traffic on the box locally generated, or is it mostly
forwarding traffic? What ethernet driver are you using? Could you send
me the complete build directory of the WireGuard module -- with all
the .o files and the resultant .ko file?

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

* Re: wireguard-dkms and CentOS 7.5
  2018-05-10 16:14   ` Jason A. Donenfeld
  2018-05-10 16:31     ` Henry Snow
@ 2018-05-11 16:07     ` Joe Doss
  2018-05-11 16:15       ` Henry Snow
  1 sibling, 1 reply; 17+ messages in thread
From: Joe Doss @ 2018-05-11 16:07 UTC (permalink / raw)
  To: Jason A. Donenfeld, Henry Snow; +Cc: wireguard

On 05/10/2018 11:14 AM, Jason A. Donenfeld wrote:
> Hi again,
> 
> I've fixed that here:
> https://git.zx2c4.com/WireGuard/patch/?id=94f25e47b23ddeba26120de4ee3c098438fc2251
> 
> This will be part of the next snapshot. In the meantime, you can apply
> that manually to the src directory, and perhaps Joe (CCd) can add it
> to the rpm.

It sounds like the patch maybe causing some problems still based on this 
thread. Regardless, patch or snapshot, I will have some time this 
weekend build the RPM with the fix.

Joe




-- 
Joe Doss
joe@solidadmin.com

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

* Re: wireguard-dkms and CentOS 7.5
  2018-05-11 16:07     ` Joe Doss
@ 2018-05-11 16:15       ` Henry Snow
  2018-05-13 16:56         ` Jason A. Donenfeld
  0 siblings, 1 reply; 17+ messages in thread
From: Henry Snow @ 2018-05-11 16:15 UTC (permalink / raw)
  To: Joe Doss; +Cc: wireguard

[-- Attachment #1: Type: text/plain, Size: 1213 bytes --]

I've been doing a bit of off-list debugging with Jason -- it's looking like
a separate issue. The compat.h changes were effective in fixing the
compilation issues. The crash seems to be in the i40e ethernet driver
(v 1.3.46-k) update that comes with RHEL/CentOS 7.5. Compiling
i40e-2.4.6.tar.gz from sourceforge has let me bring up the tunnels
successfully.

On Fri, May 11, 2018 at 12:07 PM Joe Doss <joe@solidadmin.com> wrote:

> On 05/10/2018 11:14 AM, Jason A. Donenfeld wrote:
> > Hi again,
> >
> > I've fixed that here:
> >
> https://git.zx2c4.com/WireGuard/patch/?id=94f25e47b23ddeba26120de4ee3c098438fc2251
> >
> > This will be part of the next snapshot. In the meantime, you can apply
> > that manually to the src directory, and perhaps Joe (CCd) can add it
> > to the rpm.
>
> It sounds like the patch maybe causing some problems still based on this
> thread. Regardless, patch or snapshot, I will have some time this
> weekend build the RPM with the fix.
>
> Joe
>
>
>
>
> --
> Joe Doss
> joe@solidadmin.com
>
-- 
Henry Snow | Director, Site Reliability Engineering
eXelate, a Nielsen company <http://exelate.com/>
E: henry.snow@nielsen.com | M: 347.366.2700
675 6th Ave, 3rd Floor, New York, NY 10010

[-- Attachment #2: Type: text/html, Size: 2466 bytes --]

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

* Re: wireguard-dkms and CentOS 7.5
  2018-05-11 16:15       ` Henry Snow
@ 2018-05-13 16:56         ` Jason A. Donenfeld
  0 siblings, 0 replies; 17+ messages in thread
From: Jason A. Donenfeld @ 2018-05-13 16:56 UTC (permalink / raw)
  To: wireguard

Hi list,

This issue has now been solved in the latest snapshot just released.

Jason

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

* wireguard-dkms and CentOS 7.5
@ 2018-05-10 13:50 Henry Snow
  0 siblings, 0 replies; 17+ messages in thread
From: Henry Snow @ 2018-05-10 13:50 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1: Type: text/plain, Size: 46576 bytes --]

Hi Wireguard Users,

It looks like CentOS 7.5 was released recently, bringing with it new kernel
and tools versions. When installing the wireguard-dkms package from the
RHEL/CentOS7 repo, I'm seeing the following error:

make -j40 KERNELRELEASE=3.10.0-862.el7.x86_64 -C
/lib/modules/3.10.0-862.el7.x86_64/build
M=/var/lib/dkms/wireguard/0.0.20180420/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 3.10.0-862.el7.x86_64
(x86_64)
Consult /var/lib/dkms/wireguard/0.0.20180420/build/make.log for more
information.

The make.log is pasted below. Any new requirements needed to build, or is a
code change required?

DKMS make.log for wireguard-0.0.20180420 for kernel 3.10.0-862.el7.x86_64
(x86_64)
Thu May 10 09:37:05 EDT 2018
make: Entering directory `/usr/src/kernels/3.10.0-862.el7.x86_64'
  LD      /var/lib/dkms/wireguard/0.0.20180420/build/built-in.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/main.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/noise.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/device.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/peer.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/timers.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/queueing.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/send.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/receive.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/socket.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/hashtables.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/allowedips.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/ratelimiter.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/cookie.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/netlink.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/crypto/curve25519.o
  CC [M]
/var/lib/dkms/wireguard/0.0.20180420/build/crypto/chacha20poly1305.o
  AS [M]
/var/lib/dkms/wireguard/0.0.20180420/build/crypto/chacha20-x86_64.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20180420/build/crypto/blake2s.o
  AS [M]
/var/lib/dkms/wireguard/0.0.20180420/build/crypto/poly1305-x86_64.o
  AS [M]  /var/lib/dkms/wireguard/0.0.20180420/build/crypto/blake2s-x86_64.o
  CC [M]
/var/lib/dkms/wireguard/0.0.20180420/build/compat/siphash/siphash.o
/var/lib/dkms/wireguard/0.0.20180420/build/crypto/chacha20-x86_64.o:
warning: objtool: chacha20_avx512vl()+0x3f: can't find jump dest
instruction at .text+0x2669
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from include/linux/filter.h:11:0,
                 from include/net/sock.h:67,
                 from include/linux/tcp.h:23,
                 from include/linux/ipv6.h:70,
                 from include/net/dsfield.h:11,
                 from include/net/ip_tunnels.h:12,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/net/sch_generic.h:454:20: note: previous definition of
‘skb_reset_tc’ was here
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from include/linux/filter.h:11:0,
                 from include/net/sock.h:67,
                 from include/linux/tcp.h:23,
                 from include/linux/ipv6.h:70,
                 from include/net/dsfield.h:11,
                 from include/net/ip_tunnels.h:12,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/net/sch_generic.h:454:20: note: previous definition of
‘skb_reset_tc’ was here
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from include/linux/filter.h:11:0,
                 from include/net/sock.h:67,
                 from include/linux/tcp.h:23,
                 from include/linux/ipv6.h:70,
                 from include/net/dsfield.h:11,
                 from include/net/ip_tunnels.h:12,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/net/sch_generic.h:454:20: note: previous definition of
‘skb_reset_tc’ was here
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:177:0,
                 from <command-line>:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/checksum/checksum_partial_compat.h:192:19:
error: static declaration of ‘skb_checksum_setup’ follows non-static
declaration
 static inline int skb_checksum_setup(struct sk_buff *skb, bool recalculate)
                   ^
In file included from include/linux/filter.h:11:0,
                 from include/net/sock.h:67,
                 from include/linux/tcp.h:23,
                 from include/linux/ipv6.h:70,
                 from include/net/dsfield.h:11,
                 from include/net/ip_tunnels.h:12,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/net/sch_generic.h:454:20: note: previous definition of
‘skb_reset_tc’ was here
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from include/linux/ip.h:20:0,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/linux/skbuff.h:3855:5: note: previous declaration of
‘skb_checksum_setup’ was here
 int skb_checksum_setup(struct sk_buff *skb, bool recalculate);
     ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:177:0,
                 from <command-line>:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/checksum/checksum_partial_compat.h:192:19:
error: static declaration of ‘skb_checksum_setup’ follows non-static
declaration
 static inline int skb_checksum_setup(struct sk_buff *skb, bool recalculate)
                   ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:177:0,
                 from <command-line>:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/checksum/checksum_partial_compat.h:192:19:
error: static declaration of ‘skb_checksum_setup’ follows non-static
declaration
 static inline int skb_checksum_setup(struct sk_buff *skb, bool recalculate)
                   ^
In file included from include/linux/ip.h:20:0,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/linux/skbuff.h:3855:5: note: previous declaration of
‘skb_checksum_setup’ was here
 int skb_checksum_setup(struct sk_buff *skb, bool recalculate);
     ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:445:31: error:
static declaration of ‘genl_family_attrbuf’ follows non-static declaration
 static inline struct nlattr **genl_family_attrbuf(const struct genl_family
*family)
                               ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:439:0,
                 from <command-line>:0:
include/net/genetlink.h:77:17: note: previous declaration of
‘genl_family_attrbuf’ was here
 struct nlattr **genl_family_attrbuf(const struct genl_family *family);
                 ^
In file included from include/linux/ip.h:20:0,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/linux/skbuff.h:3855:5: note: previous declaration of
‘skb_checksum_setup’ was here
 int skb_checksum_setup(struct sk_buff *skb, bool recalculate);
     ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:177:0,
                 from <command-line>:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/checksum/checksum_partial_compat.h:192:19:
error: static declaration of ‘skb_checksum_setup’ follows non-static
declaration
 static inline int skb_checksum_setup(struct sk_buff *skb, bool recalculate)
                   ^
In file included from include/linux/ip.h:20:0,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/linux/skbuff.h:3855:5: note: previous declaration of
‘skb_checksum_setup’ was here
 int skb_checksum_setup(struct sk_buff *skb, bool recalculate);
     ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:445:31: error:
static declaration of ‘genl_family_attrbuf’ follows non-static declaration
 static inline struct nlattr **genl_family_attrbuf(const struct genl_family
*family)
                               ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:439:0,
                 from <command-line>:0:
include/net/genetlink.h:77:17: note: previous declaration of
‘genl_family_attrbuf’ was here
 struct nlattr **genl_family_attrbuf(const struct genl_family *family);
                 ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:445:31: error:
static declaration of ‘genl_family_attrbuf’ follows non-static declaration
 static inline struct nlattr **genl_family_attrbuf(const struct genl_family
*family)
                               ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:439:0,
                 from <command-line>:0:
include/net/genetlink.h:77:17: note: previous declaration of
‘genl_family_attrbuf’ was here
 struct nlattr **genl_family_attrbuf(const struct genl_family *family);
                 ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from include/linux/filter.h:11:0,
                 from include/net/sock.h:67,
                 from include/linux/tcp.h:23,
                 from include/linux/ipv6.h:70,
                 from include/net/dsfield.h:11,
                 from include/net/ip_tunnels.h:12,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/net/sch_generic.h:454:20: note: previous definition of
‘skb_reset_tc’ was here
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from include/linux/filter.h:11:0,
                 from include/net/sock.h:67,
                 from include/linux/tcp.h:23,
                 from include/linux/ipv6.h:70,
                 from include/net/dsfield.h:11,
                 from include/net/ip_tunnels.h:12,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/net/sch_generic.h:454:20: note: previous definition of
‘skb_reset_tc’ was here
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from include/linux/filter.h:11:0,
                 from include/net/sock.h:67,
                 from include/linux/tcp.h:23,
                 from include/linux/ipv6.h:70,
                 from include/net/dsfield.h:11,
                 from include/net/ip_tunnels.h:12,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/net/sch_generic.h:454:20: note: previous definition of
‘skb_reset_tc’ was here
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:445:31: error:
static declaration of ‘genl_family_attrbuf’ follows non-static declaration
 static inline struct nlattr **genl_family_attrbuf(const struct genl_family
*family)
                               ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:439:0,
                 from <command-line>:0:
include/net/genetlink.h:77:17: note: previous declaration of
‘genl_family_attrbuf’ was here
 struct nlattr **genl_family_attrbuf(const struct genl_family *family);
                 ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from include/linux/filter.h:11:0,
                 from include/net/sock.h:67,
                 from include/linux/tcp.h:23,
                 from include/linux/ipv6.h:70,
                 from include/net/dsfield.h:11,
                 from include/net/ip_tunnels.h:12,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/net/sch_generic.h:454:20: note: previous definition of
‘skb_reset_tc’ was here
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from include/linux/filter.h:11:0,
                 from include/net/sock.h:67,
                 from include/linux/tcp.h:23,
                 from include/linux/ipv6.h:70,
                 from include/net/dsfield.h:11,
                 from include/net/ip_tunnels.h:12,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/net/sch_generic.h:454:20: note: previous definition of
‘skb_reset_tc’ was here
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:177:0,
                 from <command-line>:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/checksum/checksum_partial_compat.h:192:19:
error: static declaration of ‘skb_checksum_setup’ follows non-static
declaration
 static inline int skb_checksum_setup(struct sk_buff *skb, bool recalculate)
                   ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:177:0,
                 from <command-line>:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/checksum/checksum_partial_compat.h:192:19:
error: static declaration of ‘skb_checksum_setup’ follows non-static
declaration
 static inline int skb_checksum_setup(struct sk_buff *skb, bool recalculate)
                   ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:177:0,
                 from <command-line>:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/checksum/checksum_partial_compat.h:192:19:
error: static declaration of ‘skb_checksum_setup’ follows non-static
declaration
 static inline int skb_checksum_setup(struct sk_buff *skb, bool recalculate)
                   ^
In file included from include/linux/ip.h:20:0,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/linux/skbuff.h:3855:5: note: previous declaration of
‘skb_checksum_setup’ was here
 int skb_checksum_setup(struct sk_buff *skb, bool recalculate);
     ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from include/linux/ip.h:20:0,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/linux/skbuff.h:3855:5: note: previous declaration of
‘skb_checksum_setup’ was here
 int skb_checksum_setup(struct sk_buff *skb, bool recalculate);
     ^
In file included from include/linux/ip.h:20:0,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/linux/skbuff.h:3855:5: note: previous declaration of
‘skb_checksum_setup’ was here
 int skb_checksum_setup(struct sk_buff *skb, bool recalculate);
     ^
In file included from include/linux/filter.h:11:0,
                 from include/net/sock.h:67,
                 from include/linux/tcp.h:23,
                 from include/linux/ipv6.h:70,
                 from include/net/dsfield.h:11,
                 from include/net/ip_tunnels.h:12,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/net/sch_generic.h:454:20: note: previous definition of
‘skb_reset_tc’ was here
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:177:0,
                 from <command-line>:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/checksum/checksum_partial_compat.h:192:19:
error: static declaration of ‘skb_checksum_setup’ follows non-static
declaration
 static inline int skb_checksum_setup(struct sk_buff *skb, bool recalculate)
                   ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:177:0,
                 from <command-line>:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/checksum/checksum_partial_compat.h:192:19:
error: static declaration of ‘skb_checksum_setup’ follows non-static
declaration
 static inline int skb_checksum_setup(struct sk_buff *skb, bool recalculate)
                   ^
In file included from include/linux/ip.h:20:0,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/linux/skbuff.h:3855:5: note: previous declaration of
‘skb_checksum_setup’ was here
 int skb_checksum_setup(struct sk_buff *skb, bool recalculate);
     ^
In file included from include/linux/ip.h:20:0,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/linux/skbuff.h:3855:5: note: previous declaration of
‘skb_checksum_setup’ was here
 int skb_checksum_setup(struct sk_buff *skb, bool recalculate);
     ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:445:31: error:
static declaration of ‘genl_family_attrbuf’ follows non-static declaration
 static inline struct nlattr **genl_family_attrbuf(const struct genl_family
*family)
                               ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:445:31: error:
static declaration of ‘genl_family_attrbuf’ follows non-static declaration
 static inline struct nlattr **genl_family_attrbuf(const struct genl_family
*family)
                               ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:439:0,
                 from <command-line>:0:
include/net/genetlink.h:77:17: note: previous declaration of
‘genl_family_attrbuf’ was here
 struct nlattr **genl_family_attrbuf(const struct genl_family *family);
                 ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:439:0,
                 from <command-line>:0:
include/net/genetlink.h:77:17: note: previous declaration of
‘genl_family_attrbuf’ was here
 struct nlattr **genl_family_attrbuf(const struct genl_family *family);
                 ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:445:31: error:
static declaration of ‘genl_family_attrbuf’ follows non-static declaration
 static inline struct nlattr **genl_family_attrbuf(const struct genl_family
*family)
                               ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:439:0,
                 from <command-line>:0:
include/net/genetlink.h:77:17: note: previous declaration of
‘genl_family_attrbuf’ was here
 struct nlattr **genl_family_attrbuf(const struct genl_family *family);
                 ^
In file included from include/linux/filter.h:11:0,
                 from include/net/sock.h:67,
                 from include/linux/tcp.h:23,
                 from include/linux/ipv6.h:70,
                 from include/net/dsfield.h:11,
                 from include/net/ip_tunnels.h:12,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/net/sch_generic.h:454:20: note: previous definition of
‘skb_reset_tc’ was here
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:177:0,
                 from <command-line>:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/checksum/checksum_partial_compat.h:192:19:
error: static declaration of ‘skb_checksum_setup’ follows non-static
declaration
 static inline int skb_checksum_setup(struct sk_buff *skb, bool recalculate)
                   ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from include/linux/filter.h:11:0,
                 from include/net/sock.h:67,
                 from include/linux/tcp.h:23,
                 from include/linux/ipv6.h:70,
                 from include/net/dsfield.h:11,
                 from include/net/ip_tunnels.h:12,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/net/sch_generic.h:454:20: note: previous definition of
‘skb_reset_tc’ was here
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from include/linux/ip.h:20:0,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/linux/skbuff.h:3855:5: note: previous declaration of
‘skb_checksum_setup’ was here
 int skb_checksum_setup(struct sk_buff *skb, bool recalculate);
     ^
In file included from include/linux/filter.h:11:0,
                 from include/net/sock.h:67,
                 from include/linux/tcp.h:23,
                 from include/linux/ipv6.h:70,
                 from include/net/dsfield.h:11,
                 from include/net/ip_tunnels.h:12,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/net/sch_generic.h:454:20: note: previous definition of
‘skb_reset_tc’ was here
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:445:31: error:
static declaration of ‘genl_family_attrbuf’ follows non-static declaration
 static inline struct nlattr **genl_family_attrbuf(const struct genl_family
*family)
                               ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:439:0,
                 from <command-line>:0:
include/net/genetlink.h:77:17: note: previous declaration of
‘genl_family_attrbuf’ was here
 struct nlattr **genl_family_attrbuf(const struct genl_family *family);
                 ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:445:31: error:
static declaration of ‘genl_family_attrbuf’ follows non-static declaration
 static inline struct nlattr **genl_family_attrbuf(const struct genl_family
*family)
                               ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:439:0,
                 from <command-line>:0:
include/net/genetlink.h:77:17: note: previous declaration of
‘genl_family_attrbuf’ was here
 struct nlattr **genl_family_attrbuf(const struct genl_family *family);
                 ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from include/linux/filter.h:11:0,
                 from include/net/sock.h:67,
                 from include/linux/tcp.h:23,
                 from include/linux/ipv6.h:70,
                 from include/net/dsfield.h:11,
                 from include/net/ip_tunnels.h:12,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/net/sch_generic.h:454:20: note: previous definition of
‘skb_reset_tc’ was here
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from include/linux/filter.h:11:0,
                 from include/net/sock.h:67,
                 from include/linux/tcp.h:23,
                 from include/linux/ipv6.h:70,
                 from include/net/dsfield.h:11,
                 from include/net/ip_tunnels.h:12,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/net/sch_generic.h:454:20: note: previous definition of
‘skb_reset_tc’ was here
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:177:0,
                 from <command-line>:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/checksum/checksum_partial_compat.h:192:19:
error: static declaration of ‘skb_checksum_setup’ follows non-static
declaration
 static inline int skb_checksum_setup(struct sk_buff *skb, bool recalculate)
                   ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:445:31: error:
static declaration of ‘genl_family_attrbuf’ follows non-static declaration
 static inline struct nlattr **genl_family_attrbuf(const struct genl_family
*family)
                               ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:439:0,
                 from <command-line>:0:
include/net/genetlink.h:77:17: note: previous declaration of
‘genl_family_attrbuf’ was here
 struct nlattr **genl_family_attrbuf(const struct genl_family *family);
                 ^
In file included from include/linux/ip.h:20:0,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/linux/skbuff.h:3855:5: note: previous declaration of
‘skb_checksum_setup’ was here
 int skb_checksum_setup(struct sk_buff *skb, bool recalculate);
     ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:177:0,
                 from <command-line>:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/checksum/checksum_partial_compat.h:192:19:
error: static declaration of ‘skb_checksum_setup’ follows non-static
declaration
 static inline int skb_checksum_setup(struct sk_buff *skb, bool recalculate)
                   ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from include/linux/filter.h:11:0,
                 from include/net/sock.h:67,
                 from include/linux/tcp.h:23,
                 from include/linux/ipv6.h:70,
                 from include/net/dsfield.h:11,
                 from include/net/ip_tunnels.h:12,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/net/sch_generic.h:454:20: note: previous definition of
‘skb_reset_tc’ was here
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:177:0,
                 from <command-line>:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/checksum/checksum_partial_compat.h:192:19:
error: static declaration of ‘skb_checksum_setup’ follows non-static
declaration
 static inline int skb_checksum_setup(struct sk_buff *skb, bool recalculate)
                   ^
In file included from include/linux/ip.h:20:0,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/linux/skbuff.h:3855:5: note: previous declaration of
‘skb_checksum_setup’ was here
 int skb_checksum_setup(struct sk_buff *skb, bool recalculate);
     ^
In file included from include/linux/ip.h:20:0,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/linux/skbuff.h:3855:5: note: previous declaration of
‘skb_checksum_setup’ was here
 int skb_checksum_setup(struct sk_buff *skb, bool recalculate);
     ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:177:0,
                 from <command-line>:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/checksum/checksum_partial_compat.h:192:19:
error: static declaration of ‘skb_checksum_setup’ follows non-static
declaration
 static inline int skb_checksum_setup(struct sk_buff *skb, bool recalculate)
                   ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:177:0,
                 from <command-line>:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/checksum/checksum_partial_compat.h:192:19:
error: static declaration of ‘skb_checksum_setup’ follows non-static
declaration
 static inline int skb_checksum_setup(struct sk_buff *skb, bool recalculate)
                   ^
In file included from include/linux/ip.h:20:0,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/linux/skbuff.h:3855:5: note: previous declaration of
‘skb_checksum_setup’ was here
 int skb_checksum_setup(struct sk_buff *skb, bool recalculate);
     ^
In file included from include/linux/ip.h:20:0,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/linux/skbuff.h:3855:5: note: previous declaration of
‘skb_checksum_setup’ was here
 int skb_checksum_setup(struct sk_buff *skb, bool recalculate);
     ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:445:31: error:
static declaration of ‘genl_family_attrbuf’ follows non-static declaration
 static inline struct nlattr **genl_family_attrbuf(const struct genl_family
*family)
                               ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:439:0,
                 from <command-line>:0:
include/net/genetlink.h:77:17: note: previous declaration of
‘genl_family_attrbuf’ was here
 struct nlattr **genl_family_attrbuf(const struct genl_family *family);
                 ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:445:31: error:
static declaration of ‘genl_family_attrbuf’ follows non-static declaration
 static inline struct nlattr **genl_family_attrbuf(const struct genl_family
*family)
                               ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:439:0,
                 from <command-line>:0:
include/net/genetlink.h:77:17: note: previous declaration of
‘genl_family_attrbuf’ was here
 struct nlattr **genl_family_attrbuf(const struct genl_family *family);
                 ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:177:0,
                 from <command-line>:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/checksum/checksum_partial_compat.h:192:19:
error: static declaration of ‘skb_checksum_setup’ follows non-static
declaration
 static inline int skb_checksum_setup(struct sk_buff *skb, bool recalculate)
                   ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:445:31: error:
static declaration of ‘genl_family_attrbuf’ follows non-static declaration
 static inline struct nlattr **genl_family_attrbuf(const struct genl_family
*family)
                               ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:439:0,
                 from <command-line>:0:
include/net/genetlink.h:77:17: note: previous declaration of
‘genl_family_attrbuf’ was here
 struct nlattr **genl_family_attrbuf(const struct genl_family *family);
                 ^
In file included from include/linux/ip.h:20:0,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/linux/skbuff.h:3855:5: note: previous declaration of
‘skb_checksum_setup’ was here
 int skb_checksum_setup(struct sk_buff *skb, bool recalculate);
     ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:445:31: error:
static declaration of ‘genl_family_attrbuf’ follows non-static declaration
 static inline struct nlattr **genl_family_attrbuf(const struct genl_family
*family)
                               ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:439:0,
                 from <command-line>:0:
include/net/genetlink.h:77:17: note: previous declaration of
‘genl_family_attrbuf’ was here
 struct nlattr **genl_family_attrbuf(const struct genl_family *family);
                 ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:445:31: error:
static declaration of ‘genl_family_attrbuf’ follows non-static declaration
 static inline struct nlattr **genl_family_attrbuf(const struct genl_family
*family)
                               ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:439:0,
                 from <command-line>:0:
include/net/genetlink.h:77:17: note: previous declaration of
‘genl_family_attrbuf’ was here
 struct nlattr **genl_family_attrbuf(const struct genl_family *family);
                 ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:445:31: error:
static declaration of ‘genl_family_attrbuf’ follows non-static declaration
 static inline struct nlattr **genl_family_attrbuf(const struct genl_family
*family)
                               ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:439:0,
                 from <command-line>:0:
include/net/genetlink.h:77:17: note: previous declaration of
‘genl_family_attrbuf’ was here
 struct nlattr **genl_family_attrbuf(const struct genl_family *family);
                 ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from include/linux/filter.h:11:0,
                 from include/net/sock.h:67,
                 from include/linux/tcp.h:23,
                 from include/linux/ipv6.h:70,
                 from include/net/dsfield.h:11,
                 from include/net/ip_tunnels.h:12,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/net/sch_generic.h:454:20: note: previous definition of
‘skb_reset_tc’ was here
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:115:20: error:
redefinition of ‘skb_reset_tc’
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from include/linux/filter.h:11:0,
                 from include/net/sock.h:67,
                 from include/linux/tcp.h:23,
                 from include/linux/ipv6.h:70,
                 from include/net/dsfield.h:11,
                 from include/net/ip_tunnels.h:12,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/net/sch_generic.h:454:20: note: previous definition of
‘skb_reset_tc’ was here
 static inline void skb_reset_tc(struct sk_buff *skb)
                    ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:177:0,
                 from <command-line>:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/checksum/checksum_partial_compat.h:192:19:
error: static declaration of ‘skb_checksum_setup’ follows non-static
declaration
 static inline int skb_checksum_setup(struct sk_buff *skb, bool recalculate)
                   ^
make[1]: *** [/var/lib/dkms/wireguard/0.0.20180420/build/main.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:177:0,
                 from <command-line>:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/checksum/checksum_partial_compat.h:192:19:
error: static declaration of ‘skb_checksum_setup’ follows non-static
declaration
 static inline int skb_checksum_setup(struct sk_buff *skb, bool recalculate)
                   ^
In file included from include/linux/ip.h:20:0,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/linux/skbuff.h:3855:5: note: previous declaration of
‘skb_checksum_setup’ was here
 int skb_checksum_setup(struct sk_buff *skb, bool recalculate);
     ^
In file included from include/linux/ip.h:20:0,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:80,
                 from <command-line>:0:
include/linux/skbuff.h:3855:5: note: previous declaration of
‘skb_checksum_setup’ was here
 int skb_checksum_setup(struct sk_buff *skb, bool recalculate);
     ^
make[1]: *** [/var/lib/dkms/wireguard/0.0.20180420/build/peer.o] Error 1
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:445:31: error:
static declaration of ‘genl_family_attrbuf’ follows non-static declaration
 static inline struct nlattr **genl_family_attrbuf(const struct genl_family
*family)
                               ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:439:0,
                 from <command-line>:0:
include/net/genetlink.h:77:17: note: previous declaration of
‘genl_family_attrbuf’ was here
 struct nlattr **genl_family_attrbuf(const struct genl_family *family);
                 ^
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:445:31: error:
static declaration of ‘genl_family_attrbuf’ follows non-static declaration
 static inline struct nlattr **genl_family_attrbuf(const struct genl_family
*family)
                               ^
In file included from
/var/lib/dkms/wireguard/0.0.20180420/build/compat/compat.h:439:0,
                 from <command-line>:0:
include/net/genetlink.h:77:17: note: previous declaration of
‘genl_family_attrbuf’ was here
 struct nlattr **genl_family_attrbuf(const struct genl_family *family);
                 ^
make[1]: *** [/var/lib/dkms/wireguard/0.0.20180420/build/noise.o] Error 1
/var/lib/dkms/wireguard/0.0.20180420/build/netlink.c: In function
‘genetlink_init’:
/var/lib/dkms/wireguard/0.0.20180420/build/netlink.c:511:2: error: implicit
declaration of function ‘genl_register_family_with_ops’
[-Werror=implicit-function-declaration]
  return genl_register_family(&genl_family);
  ^
make[1]: *** [/var/lib/dkms/wireguard/0.0.20180420/build/queueing.o] Error 1
make[1]: *** [/var/lib/dkms/wireguard/0.0.20180420/build/device.o] Error 1
make[1]: *** [/var/lib/dkms/wireguard/0.0.20180420/build/hashtables.o]
Error 1
make[1]: *** [/var/lib/dkms/wireguard/0.0.20180420/build/ratelimiter.o]
Error 1
make[1]: *** [/var/lib/dkms/wireguard/0.0.20180420/build/allowedips.o]
Error 1
make[1]: *** [/var/lib/dkms/wireguard/0.0.20180420/build/socket.o] Error 1
cc1: some warnings being treated as errors
make[1]: *** [/var/lib/dkms/wireguard/0.0.20180420/build/receive.o] Error 1
make[1]: *** [/var/lib/dkms/wireguard/0.0.20180420/build/send.o] Error 1
make[1]: *** [/var/lib/dkms/wireguard/0.0.20180420/build/netlink.o] Error 1
make[1]: *** [/var/lib/dkms/wireguard/0.0.20180420/build/timers.o] Error 1
make[1]: ***
[/var/lib/dkms/wireguard/0.0.20180420/build/crypto/curve25519.o] Error 1
make[1]: ***
[/var/lib/dkms/wireguard/0.0.20180420/build/compat/siphash/siphash.o] Error
1
make[1]: *** [/var/lib/dkms/wireguard/0.0.20180420/build/crypto/blake2s.o]
Error 1
make[1]: *** [/var/lib/dkms/wireguard/0.0.20180420/build/cookie.o] Error 1
make[1]: ***
[/var/lib/dkms/wireguard/0.0.20180420/build/crypto/chacha20poly1305.o]
Error 1
make: *** [_module_/var/lib/dkms/wireguard/0.0.20180420/build] Error 2
make: Leaving directory `/usr/src/kernels/3.10.0-862.el7.x86_64'
-- 
Henry Snow | Director, Site Reliability Engineering
eXelate, a Nielsen company <http://exelate.com/>
E: henry.snow@nielsen.com | M: 347.366.2700
675 6th Ave, 3rd Floor, New York, NY 10010

[-- Attachment #2: Type: text/html, Size: 57633 bytes --]

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

end of thread, other threads:[~2018-05-13 16:53 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-10 13:59 wireguard-dkms and CentOS 7.5 Henry Snow
2018-05-10 15:34 ` Jason A. Donenfeld
2018-05-10 16:14   ` Jason A. Donenfeld
2018-05-10 16:31     ` Henry Snow
2018-05-10 17:24       ` Henry Snow
2018-05-10 17:25         ` Jason A. Donenfeld
2018-05-10 17:35           ` Henry Snow
2018-05-10 17:36             ` Jason A. Donenfeld
2018-05-10 17:49               ` Jason A. Donenfeld
2018-05-10 18:26                 ` Germano Massullo
2018-05-10 20:25                 ` Jason A. Donenfeld
2018-05-10 21:41                   ` Henry Snow
2018-05-10 21:47                     ` Jason A. Donenfeld
2018-05-11 16:07     ` Joe Doss
2018-05-11 16:15       ` Henry Snow
2018-05-13 16:56         ` Jason A. Donenfeld
  -- strict thread matches above, loose matches on Subject: below --
2018-05-10 13:50 Henry Snow

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.