Bug 80556 - networkd fails assertion on tap device going away
Summary: networkd fails assertion on tap device going away
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-26 12:58 UTC by Dave Reisner
Modified: 2014-07-01 08:21 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
bt full (3.10 KB, text/plain)
2014-06-26 12:58 UTC, Dave Reisner
Details

Description Dave Reisner 2014-06-26 12:58:39 UTC
Created attachment 101800 [details]
bt full

I can semi-reliably hit a failed assertion when shutting down a VM:

tap0            : link 41 added
tap0            : udev initializing link...
tap0            : flags change: +MULTICAST +BROADCAST
tap0            : MAC address: fe:8d:25:75:f8:a1
br-qemu         : MAC address: fe:8d:25:75:f8:a1
tap0            : flags change: +UP +LOWER_UP +RUNNING
tap0            : gained carrier
br-qemu         : flags change: +LOWER_UP +RUNNING
br-qemu         : gained carrier
sd-rtnl: discarding 20 bytes of incoming message
tap0            : added address: fe80::fc8d:25ff:fe75:f8a1/64
tap0            : udev initialized link
tap0            : link state is up-to-date
tap0            : unmanaged
tap0            : flags change: -UP -LOWER_UP -RUNNING
tap0            : removed address: fe80::fc8d:25ff:fe75:f8a1/64
tap0            : link removed
tap0            : link 41 added
tap0            : could not find udev device
could not add new link
br-qemu         : MAC address: 00:00:00:00:00:00
br-qemu         : flags change: -LOWER_UP
tap0            : link removed
br-qemu         : flags change: -RUNNING
br-qemu         : lost carrier
sd-rtnl: discarding 20 bytes of incoming message
Assertion 'm' failed at src/network/networkd-link.c:2029, function link_rtnl_process_address(). Aborting.

The KVM is given a bridge device:

# /etc/systemd/network/br-qemu.netdev
[NetDev]
Name=br-qemu
Kind=bridge

# /etc/systemd/network/br-qemu.network
[Match]
Name=br-qemu

[Network]
Description=Qemu vlan
Address=10.0.2.1/24
Address=2001:470:736c:107::1/64


And is started with args: -netdev bridge,br=br-qemu,id=mynet0 -device virtio-net,netdev=mynet0,mac=de:ad:be:ef:00:07

I've bisected this breakage to fbbeb65a93e2f90f6576001b. Backtrace attached. It's likely a race condition somewhere -- the SIGABRT sometimes turns into a SIGSEGV when I set SYSTEMD_LOG_LEVEL=debug.
Comment 1 Tom Gundersen 2014-07-01 08:21:49 UTC
Thanks for the report. This _should_ have been fixed by 5da8149fd33f07aabdac72880143ec13e516f933. Please reopen if this is still a problem.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.