WireGuard Archive on lore.kernel.org
 help / color / Atom feed
* Wireguard kernel module won't load on kernel 4.19.0-5 (Debian sid/buster)
@ 2019-06-20 14:58 Nils Cant
  2019-06-22 12:23 ` Steven Honson
  2019-06-22 16:46 ` Laszlo KERTESZ
  0 siblings, 2 replies; 3+ messages in thread
From: Nils Cant @ 2019-06-20 14:58 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1.1: Type: text/plain, Size: 1767 bytes --]

Hello,

I'm unable to load the wireguard kernel module on Debian Sid or Debian Buster. (4.19.0-5-amd64 kernel)
(Debian buster is scheduled to be promoted to stable in a couple of weeks)

root@buster:~# modprobe wireguard
modprobe: ERROR: could not insert 'wireguard': Invalid argument
root@buster:~# modinfo wireguard
filename: /lib/modules/4.19.0-5-amd64/updates/dkms/wireguard.ko
alias: net-pf-16-proto-16-family-wireguard
alias: rtnl-link-wireguard
version: 0.0.20190601
author: Jason A. Donenfeld <Jason@zx2c4.com>
description: WireGuard secure network tunnel
license: GPL v2
srcversion: 69000E9D4B2B253E97C189A
depends: udp_tunnel,ip6_udp_tunnel
retpoline: Y
name: wireguard
vermagic: 4.19.0-5-amd64 SMP mod_unload modversions

The same version seems to work fine on Debian Stretch (4.9.0-9) or Fedora Core 30 (5.1.11-300)

The kernel ring throws a number of symbol version errors:

[...]
[ 97.450944] wireguard: loading out-of-tree module taints kernel.
[ 97.453335] wireguard: module verification failed: signature and/or required key missing - tainting kernel
[ 97.457727] wireguard: disagrees about version of symbol skb_put
[ 97.459772] wireguard: Unknown symbol skb_put (err -22)
[ 97.461555] wireguard: disagrees about version of symbol ip6_dst_hoplimit
[ 97.463609] wireguard: Unknown symbol ip6_dst_hoplimit (err -22)
[ 97.465590] wireguard: disagrees about version of symbol consume_skb
[ 97.467495] wireguard: Unknown symbol consume_skb (err -22)
[ 97.469326] wireguard: disagrees about version of symbol udp_sock_create4
[...]

I have tried both the apt package from debian unstable, as well as compile from source.

Any idea what could be going wrong? Is this a Debian kernel bug?
Thanks in advance,

Nils

[-- Attachment #1.2: Type: text/html, Size: 2098 bytes --]

<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div data-html-editor-font-wrapper="true" style="font-family: arial, sans-serif; font-size: 13px;">Hello,<br><br>I'm unable to load the wireguard kernel module on Debian Sid or Debian Buster. (4.19.0-5-amd64 kernel)<br>(Debian buster is scheduled to be promoted to stable in a couple of weeks)<br><br>root@buster:~# modprobe wireguard<br>modprobe: ERROR: could not insert 'wireguard': Invalid argument<br>root@buster:~# modinfo wireguard<br>filename: /lib/modules/4.19.0-5-amd64/updates/dkms/wireguard.ko<br>alias: net-pf-16-proto-16-family-wireguard<br>alias: rtnl-link-wireguard<br>version: 0.0.20190601<br>author: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;<br>description: WireGuard secure network tunnel<br>license: GPL v2<br>srcversion: 69000E9D4B2B253E97C189A<br>depends: udp_tunnel,ip6_udp_tunnel<br>retpoline: Y<br>name: wireguard<br>vermagic: 4.19.0-5-amd64 SMP mod_unload modversions<br><br>The same version seems to work fine on Debian Stretch (4.9.0-9) or Fedora Core 30 (5.1.11-300)<br><br>The kernel ring throws a number of symbol version errors:<br><br>[...]<br>[ 97.450944] wireguard: loading out-of-tree module taints kernel.<br>[ 97.453335] wireguard: module verification failed: signature and/or required key missing - tainting kernel<br>[ 97.457727] wireguard: disagrees about version of symbol skb_put<br>[ 97.459772] wireguard: Unknown symbol skb_put (err -22)<br>[ 97.461555] wireguard: disagrees about version of symbol ip6_dst_hoplimit<br>[ 97.463609] wireguard: Unknown symbol ip6_dst_hoplimit (err -22)<br>[ 97.465590] wireguard: disagrees about version of symbol consume_skb<br>[ 97.467495] wireguard: Unknown symbol consume_skb (err -22)<br>[ 97.469326] wireguard: disagrees about version of symbol udp_sock_create4<br>[...]<br><br>I have tried both the apt package from debian unstable, as well as compile from source.<br><br>Any idea what could be going wrong? Is this a Debian kernel bug?<br><br><br>Thanks in advance,<br><br>Nils<br> </div></body></html>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

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

* Re: Wireguard kernel module won't load on kernel 4.19.0-5 (Debian sid/buster)
  2019-06-20 14:58 Wireguard kernel module won't load on kernel 4.19.0-5 (Debian sid/buster) Nils Cant
@ 2019-06-22 12:23 ` Steven Honson
  2019-06-22 16:46 ` Laszlo KERTESZ
  1 sibling, 0 replies; 3+ messages in thread
From: Steven Honson @ 2019-06-22 12:23 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1.1: Type: text/plain, Size: 3472 bytes --]

Hi Nils,

I've been unable to reproduce this on a vanilla VM built using `vagrant init debian/buster64; vagrant up`:

root@buster:/home/vagrant# modprobe wireguard
root@buster:/home/vagrant# modinfo wireguard
filename: /lib/modules/4.19.0-5-amd64/updates/dkms/wireguard.ko
alias: net-pf-16-proto-16-family-wireguard
alias: rtnl-link-wireguard
version: 0.0.20190601
author: Jason A. Donenfeld <Jason@zx2c4.com>
description: WireGuard secure network tunnel
license: GPL v2
srcversion: 69000E9D4B2B253E97C189A
depends: udp_tunnel,ip6_udp_tunnel
retpoline: Y
name: wireguard
vermagic: 4.19.0-5-amd64 SMP mod_unload modversions
root@buster:/home/vagrant# dmesg | grep wireguard
[ 17.664193] wireguard: loading out-of-tree module taints kernel.
[ 17.664231] wireguard: module verification failed: signature and/or required key missing - tainting kernel
[ 17.665555] wireguard: WireGuard 0.0.20190601 loaded. See www.wireguard.com for information.
[ 17.665556] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
root@buster:/home/vagrant# uname -a
Linux buster 4.19.0-5-amd64 #1 SMP Debian 4.19.37-3 (2019-05-15) x86_64 GNU/Linux

The above output was from the WireGuard package from testing, I got similar results compiling WireGuard 0.0.20190601 from source too.

Can you check which version of the linux-image-4.19.0-5-amd64 package you have installed? I'm running 4.19.37-3 for reference.

Cheers,
Steven

On Fri, 21 Jun 2019, at 12:58 AM, Nils Cant wrote:
> Hello,
> 
> I'm unable to load the wireguard kernel module on Debian Sid or Debian Buster. (4.19.0-5-amd64 kernel)
> (Debian buster is scheduled to be promoted to stable in a couple of weeks)
> 
> root@buster:~# modprobe wireguard
> modprobe: ERROR: could not insert 'wireguard': Invalid argument
> root@buster:~# modinfo wireguard
> filename: /lib/modules/4.19.0-5-amd64/updates/dkms/wireguard.ko
> alias: net-pf-16-proto-16-family-wireguard
> alias: rtnl-link-wireguard
> version: 0.0.20190601
> author: Jason A. Donenfeld <Jason@zx2c4.com>
> description: WireGuard secure network tunnel
> license: GPL v2
> srcversion: 69000E9D4B2B253E97C189A
> depends: udp_tunnel,ip6_udp_tunnel
> retpoline: Y
> name: wireguard
> vermagic: 4.19.0-5-amd64 SMP mod_unload modversions
> 
> The same version seems to work fine on Debian Stretch (4.9.0-9) or Fedora Core 30 (5.1.11-300)
> 
> The kernel ring throws a number of symbol version errors:
> 
> [...]
> [ 97.450944] wireguard: loading out-of-tree module taints kernel.
> [ 97.453335] wireguard: module verification failed: signature and/or required key missing - tainting kernel
> [ 97.457727] wireguard: disagrees about version of symbol skb_put
> [ 97.459772] wireguard: Unknown symbol skb_put (err -22)
> [ 97.461555] wireguard: disagrees about version of symbol ip6_dst_hoplimit
> [ 97.463609] wireguard: Unknown symbol ip6_dst_hoplimit (err -22)
> [ 97.465590] wireguard: disagrees about version of symbol consume_skb
> [ 97.467495] wireguard: Unknown symbol consume_skb (err -22)
> [ 97.469326] wireguard: disagrees about version of symbol udp_sock_create4
> [...]
> 
> I have tried both the apt package from debian unstable, as well as compile from source.
> 
> Any idea what could be going wrong? Is this a Debian kernel bug?
> 
> 
> Thanks in advance,
> 
> Nils
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
> 

[-- Attachment #1.2: Type: text/html, Size: 5474 bytes --]

<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi Nils,<br></div><div><br></div><div>I've been unable to reproduce this on a vanilla VM built using `vagrant init debian/buster64; vagrant up`:<br></div><div><br></div><div>root@buster:/home/vagrant# modprobe wireguard<br></div><div>root@buster:/home/vagrant# modinfo wireguard<br></div><div>filename:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib/modules/4.19.0-5-amd64/updates/dkms/wireguard.ko<br></div><div>alias:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; net-pf-16-proto-16-family-wireguard<br></div><div>alias:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rtnl-link-wireguard<br></div><div>version:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.0.20190601<br></div><div>author:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Jason A. Donenfeld &lt;<a href="mailto:Jason@zx2c4.com">Jason@zx2c4.com</a>&gt;<br></div><div>description:&nbsp;&nbsp;&nbsp; WireGuard secure network tunnel<br></div><div>license:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GPL v2<br></div><div>srcversion:&nbsp;&nbsp;&nbsp;&nbsp; 69000E9D4B2B253E97C189A<br></div><div>depends:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; udp_tunnel,ip6_udp_tunnel<br></div><div>retpoline:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Y<br></div><div>name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wireguard<br></div><div>vermagic:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4.19.0-5-amd64 SMP mod_unload modversions<br></div><div>root@buster:/home/vagrant# dmesg | grep wireguard<br></div><div>[&nbsp;&nbsp; 17.664193] wireguard: loading out-of-tree module taints kernel.<br></div><div>[&nbsp;&nbsp; 17.664231] wireguard: module verification failed: signature and/or required key missing - tainting kernel<br></div><div>[&nbsp;&nbsp; 17.665555] wireguard: WireGuard 0.0.20190601 loaded. See <a href="http://www.wireguard.com">www.wireguard.com</a> for information.<br></div><div>[&nbsp;&nbsp; 17.665556] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld &lt;<a href="mailto:Jason@zx2c4.com">Jason@zx2c4.com</a>&gt;. All Rights Reserved.<br></div><div>root@buster:/home/vagrant# uname -a<br></div><div>Linux buster 4.19.0-5-amd64 #1 SMP Debian 4.19.37-3 (2019-05-15) x86_64 GNU/Linux<br></div><div><br></div><div>The above output was from the WireGuard package from testing, I got similar results compiling WireGuard 0.0.20190601 from source too.<br></div><div><br></div><div>Can you check which version of the linux-image-4.19.0-5-amd64 package you have installed? I'm running 4.19.37-3 for reference.<br></div><div><br></div><div>Cheers,<br></div><div>Steven<br></div><div><br></div><div>On Fri, 21 Jun 2019, at 12:58 AM, Nils Cant wrote:<br></div><blockquote type="cite" id="qt"><div style="font-family:arial, sans-serif;font-size:13px;"><div>Hello,<br></div><div><br></div><div>I'm unable to load the wireguard kernel module on Debian Sid or Debian Buster. (4.19.0-5-amd64 kernel)<br></div><div>(Debian buster is scheduled to be promoted to stable in a couple of weeks)<br></div><div><br></div><div>root@buster:~# modprobe wireguard<br></div><div>modprobe: ERROR: could not insert 'wireguard': Invalid argument<br></div><div>root@buster:~# modinfo wireguard<br></div><div>filename: /lib/modules/4.19.0-5-amd64/updates/dkms/wireguard.ko<br></div><div>alias: net-pf-16-proto-16-family-wireguard<br></div><div>alias: rtnl-link-wireguard<br></div><div>version: 0.0.20190601<br></div><div>author: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;<br></div><div>description: WireGuard secure network tunnel<br></div><div>license: GPL v2<br></div><div>srcversion: 69000E9D4B2B253E97C189A<br></div><div>depends: udp_tunnel,ip6_udp_tunnel<br></div><div>retpoline: Y<br></div><div>name: wireguard<br></div><div>vermagic: 4.19.0-5-amd64 SMP mod_unload modversions<br></div><div><br></div><div>The same version seems to work fine on Debian Stretch (4.9.0-9) or Fedora Core 30 (5.1.11-300)<br></div><div><br></div><div>The kernel ring throws a number of symbol version errors:<br></div><div><br></div><div>[...]<br></div><div>[ 97.450944] wireguard: loading out-of-tree module taints kernel.<br></div><div>[ 97.453335] wireguard: module verification failed: signature and/or required key missing - tainting kernel<br></div><div>[ 97.457727] wireguard: disagrees about version of symbol skb_put<br></div><div>[ 97.459772] wireguard: Unknown symbol skb_put (err -22)<br></div><div>[ 97.461555] wireguard: disagrees about version of symbol ip6_dst_hoplimit<br></div><div>[ 97.463609] wireguard: Unknown symbol ip6_dst_hoplimit (err -22)<br></div><div>[ 97.465590] wireguard: disagrees about version of symbol consume_skb<br></div><div>[ 97.467495] wireguard: Unknown symbol consume_skb (err -22)<br></div><div>[ 97.469326] wireguard: disagrees about version of symbol udp_sock_create4<br></div><div>[...]<br></div><div><br></div><div>I have tried both the apt package from debian unstable, as well as compile from source.<br></div><div><br></div><div>Any idea what could be going wrong? Is this a Debian kernel bug?<br></div><div><br></div><div><br></div><div>Thanks in advance,<br></div><div><br></div><div>Nils<br></div></div><div>_______________________________________________<br></div><div>WireGuard mailing list<br></div><div>WireGuard@lists.zx2c4.com<br></div><div>https://lists.zx2c4.com/mailman/listinfo/wireguard<br></div><div><br></div></blockquote><div><br></div></body></html>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

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

* Re: Wireguard kernel module won't load on kernel 4.19.0-5 (Debian sid/buster)
  2019-06-20 14:58 Wireguard kernel module won't load on kernel 4.19.0-5 (Debian sid/buster) Nils Cant
  2019-06-22 12:23 ` Steven Honson
@ 2019-06-22 16:46 ` Laszlo KERTESZ
  1 sibling, 0 replies; 3+ messages in thread
From: Laszlo KERTESZ @ 2019-06-22 16:46 UTC (permalink / raw)
  To: Nils Cant; +Cc: WireGuard mailing list

[-- Attachment #1.1: Type: text/plain, Size: 2134 bytes --]

I have this kernel on Debian Stretch (from backports) and wireguard works
just fine with it.


On Sat, Jun 22, 2019 at 10:52 AM Nils Cant <nils@krash.be> wrote:

> Hello,
>
> I'm unable to load the wireguard kernel module on Debian Sid or Debian
> Buster. (4.19.0-5-amd64 kernel)
> (Debian buster is scheduled to be promoted to stable in a couple of weeks)
>
> root@buster:~# modprobe wireguard
> modprobe: ERROR: could not insert 'wireguard': Invalid argument
> root@buster:~# modinfo wireguard
> filename: /lib/modules/4.19.0-5-amd64/updates/dkms/wireguard.ko
> alias: net-pf-16-proto-16-family-wireguard
> alias: rtnl-link-wireguard
> version: 0.0.20190601
> author: Jason A. Donenfeld <Jason@zx2c4.com>
> description: WireGuard secure network tunnel
> license: GPL v2
> srcversion: 69000E9D4B2B253E97C189A
> depends: udp_tunnel,ip6_udp_tunnel
> retpoline: Y
> name: wireguard
> vermagic: 4.19.0-5-amd64 SMP mod_unload modversions
>
> The same version seems to work fine on Debian Stretch (4.9.0-9) or Fedora
> Core 30 (5.1.11-300)
>
> The kernel ring throws a number of symbol version errors:
>
> [...]
> [ 97.450944] wireguard: loading out-of-tree module taints kernel.
> [ 97.453335] wireguard: module verification failed: signature and/or
> required key missing - tainting kernel
> [ 97.457727] wireguard: disagrees about version of symbol skb_put
> [ 97.459772] wireguard: Unknown symbol skb_put (err -22)
> [ 97.461555] wireguard: disagrees about version of symbol ip6_dst_hoplimit
> [ 97.463609] wireguard: Unknown symbol ip6_dst_hoplimit (err -22)
> [ 97.465590] wireguard: disagrees about version of symbol consume_skb
> [ 97.467495] wireguard: Unknown symbol consume_skb (err -22)
> [ 97.469326] wireguard: disagrees about version of symbol udp_sock_create4
> [...]
>
> I have tried both the apt package from debian unstable, as well as compile
> from source.
>
> Any idea what could be going wrong? Is this a Debian kernel bug?
>
>
> Thanks in advance,
>
> Nils
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
>

[-- Attachment #1.2: Type: text/html, Size: 2805 bytes --]

<div dir="ltr"><div>I have this kernel on Debian Stretch (from backports) and wireguard works just fine with it.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 22, 2019 at 10:52 AM Nils Cant &lt;<a href="mailto:nils@krash.be">nils@krash.be</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u><div><div style="font-family:arial,sans-serif;font-size:13px">Hello,<br><br>I&#39;m unable to load the wireguard kernel module on Debian Sid or Debian Buster. (4.19.0-5-amd64 kernel)<br>(Debian buster is scheduled to be promoted to stable in a couple of weeks)<br><br>root@buster:~# modprobe wireguard<br>modprobe: ERROR: could not insert &#39;wireguard&#39;: Invalid argument<br>root@buster:~# modinfo wireguard<br>filename: /lib/modules/4.19.0-5-amd64/updates/dkms/wireguard.ko<br>alias: net-pf-16-proto-16-family-wireguard<br>alias: rtnl-link-wireguard<br>version: 0.0.20190601<br>author: Jason A. Donenfeld &lt;<a href="mailto:Jason@zx2c4.com" target="_blank">Jason@zx2c4.com</a>&gt;<br>description: WireGuard secure network tunnel<br>license: GPL v2<br>srcversion: 69000E9D4B2B253E97C189A<br>depends: udp_tunnel,ip6_udp_tunnel<br>retpoline: Y<br>name: wireguard<br>vermagic: 4.19.0-5-amd64 SMP mod_unload modversions<br><br>The same version seems to work fine on Debian Stretch (4.9.0-9) or Fedora Core 30 (5.1.11-300)<br><br>The kernel ring throws a number of symbol version errors:<br><br>[...]<br>[ 97.450944] wireguard: loading out-of-tree module taints kernel.<br>[ 97.453335] wireguard: module verification failed: signature and/or required key missing - tainting kernel<br>[ 97.457727] wireguard: disagrees about version of symbol skb_put<br>[ 97.459772] wireguard: Unknown symbol skb_put (err -22)<br>[ 97.461555] wireguard: disagrees about version of symbol ip6_dst_hoplimit<br>[ 97.463609] wireguard: Unknown symbol ip6_dst_hoplimit (err -22)<br>[ 97.465590] wireguard: disagrees about version of symbol consume_skb<br>[ 97.467495] wireguard: Unknown symbol consume_skb (err -22)<br>[ 97.469326] wireguard: disagrees about version of symbol udp_sock_create4<br>[...]<br><br>I have tried both the apt package from debian unstable, as well as compile from source.<br><br>Any idea what could be going wrong? Is this a Debian kernel bug?<br><br><br>Thanks in advance,<br><br>Nils<br> </div></div>
_______________________________________________<br>
WireGuard mailing list<br>
<a href="mailto:WireGuard@lists.zx2c4.com" target="_blank">WireGuard@lists.zx2c4.com</a><br>
<a href="https://lists.zx2c4.com/mailman/listinfo/wireguard" rel="noreferrer" target="_blank">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br>
</blockquote></div>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

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

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-20 14:58 Wireguard kernel module won't load on kernel 4.19.0-5 (Debian sid/buster) Nils Cant
2019-06-22 12:23 ` Steven Honson
2019-06-22 16:46 ` Laszlo KERTESZ

WireGuard Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
		wireguard@lists.zx2c4.com zx2c4-wireguard@archiver.kernel.org
	public-inbox-index wireguard


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/com.zx2c4.lists.wireguard


AGPL code for this site: git clone https://public-inbox.org/ public-inbox