Bug 1734383

Summary: [NMCI] reloading wireguard kernel module makes NetworkManager crash
Product: Red Hat Enterprise Linux 8 Reporter: Filip Pokryvka <fpokryvk>
Component: NetworkManagerAssignee: sushil kulkarni <sukulkar>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.1CC: atragler, bgalvani, fgiudici, lrintel, rkhan, sukulkar, thaller, vbenes
Target Milestone: rc   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: NetworkManager-1.20.0-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 22:30:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
NM log none

Description Filip Pokryvka 2019-07-30 12:04:51 UTC
Description of problem:
reloading wireguard kernel module before running NMCI test wireguard_activate_connection makes NM crash. The crash happens after step:
  * Add a new connection of type "wireguard" and options "ifname nm-wireguard con-name wireguard wireguard.private-key qOdhat/redhat/redhat/redhat/redhat/redhatUE= wireguard.listen-port 23456 ipv4.method manual ipv4.addresses 172.25.17.1/24 "

Version-Release number of selected component (if applicable):
NetworkManager-1.20.0-0.4.el8

How reproducible:
always

Steps to Reproduce:
# compile the kernel module, test will pass
 nmcli/runtest.sh wireguard_activate_connnection
# reload wireguard kernel module
 modprobe -r wireguard; sleep 1; modprobe wireguard 
# run test again - NM crash after the first step
 nmcli/runtest.sh wireguard_activate_connnection

Actual results:
NM crashes

Expected results:
NM should survive module reload

Additional info:
No crash in older version 1.20.0-0.3.el8

Comment 1 Filip Pokryvka 2019-07-30 12:30:57 UTC
Created attachment 1594603 [details]
NM log

Comment 3 Thomas Haller 2019-07-31 08:46:11 UTC
Fixed upstream.

Will be at lastest fixed by 1.20.0 release.

Comment 6 errata-xmlrpc 2019-11-05 22:30:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:3623