[Bug 261127] net/wireguard-kmod

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 11 Jan 2022 18:36:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261127

            Bug ID: 261127
           Summary: net/wireguard-kmod
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: decke@FreeBSD.org
          Reporter: dennis.noordsij@alumni.helsinki.fi
             Flags: maintainer-feedback?(decke@FreeBSD.org)
          Assignee: decke@FreeBSD.org

I've been running several physical servers and several KVM-virtualized VPS's
with FreeBSD 13.0-RELEASE and wireguard-kmod without any problems.

Today I've created a new VPS at a different than my usual VPS provider:

  machine       amd64
  kern.supported_archs: amd64 i386
  hw.machine: amd64
  hw.machine_arch: amd64
  kern.vm_guest: kvm

with a bog standard clean 13.0-RELEASE installation (by untarring base.txz and
kernel.txz) updated to the latest patch release, like I do for all my systems.

There is one difference: whenever "ifconfig wg0 destroy" is run it just hangs.

This includes on reboot so it's a nuisance since it requires a power cycle and
an fsck.

The wireguard config is not that exciting and not any different than any other
system I have been using. Wireguard itself works otherwise fine.

There is nothing printed to the console or the logs. It just hangs, but the
system can be used otherwise (another login or access via the virtual console).




root@:~ # ifconfig
vtnet0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
       
options=4c07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,TXCSUM_IPV6>
        ether X
        inet X netmask 0xffffffff broadcast X
        media: Ethernet autoselect (10Gbase-T <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
vtnet1: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1450
       
options=4c079b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,TXCSUM_IPV6>
        ether X
        inet X netmask 0xffffffff broadcast X
        media: Ethernet autoselect (10Gbase-T <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
        groups: lo
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
wg0: flags=80c1<UP,RUNNING,NOARP,MULTICAST> metric 0 mtu 1420
        options=80000<LINKSTATE>
        inet 10.98.0.1 netmask 0xffffffff
        groups: wg
        nd6 options=109<PERFORMNUD,IFDISABLED,NO_DAD>

root@:~ # kldstat 
Id Refs Address                Size Name
 1   37 0xffffffff80200000  1f11f90 kernel
 2    1 0xffffffff82112000     4608 kvmclock.ko
 3    1 0xffffffff82318000     3250 ichsmb.ko
 4    1 0xffffffff8231c000     2180 smbus.ko
 5    1 0xffffffff8231f000     4304 virtio_console.ko
 6    1 0xffffffff82324000     22a8 virtio_random.ko
 7    1 0xffffffff82327000     2340 uhid.ko
 8    1 0xffffffff8232a000     3380 usbhid.ko
 9    1 0xffffffff8232e000     31f8 hidbus.ko
10    1 0xffffffff82332000     3320 wmt.ko
11    1 0xffffffff82336000    35548 if_wg.ko


root@:~ # pkg info
bash-5.1.12                    GNU Project's Bourne Again SHell
gettext-runtime-0.21           GNU gettext runtime libraries and programs
indexinfo-0.3.1                Utility to regenerate the GNU info page index
kvmclock-kmod-0.0.0.a4         Paravirtualized Linux KVM clock support
libffi-3.3_1                   Foreign Function Interface
mpdecimal-2.5.1                C/C++ arbitrary precision decimal floating point
libraries
pkg-1.17.5                     Package manager
python38-3.8.12_1              Interpreted object-oriented programming language
python39-3.9.9                 Interpreted object-oriented programming language
readline-8.1.1                 Library for editing command lines as they are
typed
vim-8.2.3745                   Improved version of the vi editor (console
flavor)
wireguard-2,1                  Meta-port for Wireguard
wireguard-kmod-0.0.20211105    WireGuard implementation for the FreeBSD kernel
wireguard-tools-1.0.20210914_1 Fast, modern and secure VPN Tunnel



I didn't try the Go version of wireguard, am more interested in getting this to
work. 

I'd be happy to try any suggestion.

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