Kernel oops and system lock up when invoking wg-quick up
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
On 2 occasions over the past week I have had full system crashes after running "wg-quick up wg0". On the terminal, the command does not complete (i.e. it does not return to the prompt), the fans on my laptop start whirring and the system gradually becomes unresponsive before my desktop crashes and the system becomes completely unresponsive. On both occasions I opened another window to run "top" to see what process was consuming resources but "top" never actually runs. On the second occasion I managed to run "dmesg" before the system crashed completely and saw multiple lines of text about a kernel oops and red-highlighted text about a null-pointer dereference.
I could reboot with "Alt-PrtScr_
I cannot reproduce this on demand. Most of the time, wg-quick performs normally. On both occasions the laptop had recently woken from suspend, but invoking "wg-quick" after waking from suspend doesn't trigger it on demand. On the first occasion I was running with stock boot options. On the second, I was running with "mitigations=off" as an experiment.
$ lsb_release -rd
Description: Ubuntu 19.10
Release: 19.10
$ apt policy wireguard
wireguard:
Installed: 0.0.20190913-
Candidate: 0.0.20190913-
Version table:
*** 0.0.20190913-
500 http://
500 http://
100 /var/lib/
$ apt policy wireguard-tools
wireguard-tools:
Installed: 0.0.20190913-
Candidate: 0.0.20190913-
Version table:
*** 0.0.20190913-
500 http://
100 /var/lib/
$ uname -a
Linux padbeast 5.3.0-23-generic #25-Ubuntu SMP Tue Nov 12 09:22:33 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/wireguard/
[Interface]
PrivateKey = MyPrivateKey=
Address = 10.66.66.
DNS = 8.8.8.8,1.1.1.1
[Peer]
PublicKey = MyPublicKey=
Endpoint = my.domain.com:1195
AllowedIPs = 0.0.0.0/0,::/0
I'm reporting this as a security bug due to the "Null pointer dereference" in the kernel, but don't know if that is relevant. I don't know how to access or send the old dmesg information, so please let me know how to access this or how to collect it if the crash recurs.
ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: wireguard 0.0.20190913-
ProcVersionSign
Uname: Linux 5.3.0-23-generic x86_64
ApportVersion: 2.20.11-0ubuntu8.2
Architecture: amd64
CurrentDesktop: MATE
Date: Wed Nov 27 20:44:24 2019
InstallationDate: Installed on 2019-10-11 (47 days ago)
InstallationMedia: Ubuntu-MATE 19.10 "Eoan Ermine" - Beta amd64 (20190926.2)
PackageArchitec
SourcePackage: wireguard
UpgradeStatus: No upgrade log present (probably fresh install)
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu16
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/pcmC0D0p: neil 3007 F...m pulseaudio
CurrentDesktop: MATE
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2019-10-11 (118 days ago)
InstallationMedia: Ubuntu-MATE 19.10 "Eoan Ermine" - Beta amd64 (20190926.2)
MachineType: LENOVO 2325A39
NonfreeKernelMo
Package: linux (not installed)
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.186
RfKill:
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
Tags: focal
Uname: Linux 5.4.0-12-generic x86_64
UpgradeStatus: Upgraded to focal on 2020-02-07 (0 days ago)
UserGroups: adm audio cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 06/19/2018
dmi.bios.vendor: LENOVO
dmi.bios.version: G2ETB3WW (2.73 )
dmi.board.
dmi.board.name: 2325A39
dmi.board.vendor: LENOVO
dmi.board.version: Not Defined
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.family: ThinkPad X230
dmi.product.name: 2325A39
dmi.product.sku: LENOVO_MT_2325
dmi.product.
dmi.sys.vendor: LENOVO
Thanks for taking the time to report this bug and helping to make Ubuntu better.
Could you please confirm if that issue only happens with IPv6 or also with IPv4?
Some reports were done regarding IPv6 issue on kernel 5.3, that affected wireguard and the following patch seems to fix it: /github. com/torvalds/ linux/commit/ ca7a03c4175366a 92cee0ccc4fec00 38c3266e26
https:/
@Tyler, could you please verify that the reported issue and above fix are related?
Thanks!