networkd crashes when advertising blackhole route thru BGP
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
Dan Streetman |
Bug Description
[impact]
systemd-networkd crashes due to assertion failure
[test case]
run systemd-networkd and FRR as described in original description below
[regression potential]
and regression would likely involve incorrectly configured routes
[scope]
this is needed only for f
this is fixed upstream by commit 25b831bac8a5e54
the code involved in this isn't present in b so this doesn't apply there
[original description]
lsb_release -rd
Description: Ubuntu 20.04.2 LTS
Release: 20.04
apt-cache policy systemd
systemd:
Installed: 245.4-4ubuntu3.6
[Impact]
Networkd crashes when a blackhole route (route aggregation is installed as a blackhole route) is advertised via FRR.
[Fix]
networkd should not crash
[Test case]
Bug was reported to systemd (not accepted because systemd version too old) where a test case is described: https:/
Here you can see the core dump: https:/
For convenience I also packed the relevant parts of the prod env in a vagrant box showing the issue: vagrant init matijavizintin/
After some more testing i noticed that immediately after the route is being advertised, networkd detects the change and crashes with "Assertion 'ifindex' failed at src/network/
Steps how it happens:
1. networkd is running
2. frr is started without advertising the aggregated address
3. add aggregated address and reload frr
4. blackhole route is installed and networkd crashes with the error above
tags: |
added: verification-done verification-done-focal removed: verification-needed verification-needed-focal |
Have you tested with the latest upstream code yet to see if the bug still exists there?
You can use the daily builds from this ppa if that helps: /code.launchpad .net/~ubuntu- support- team/+archive/ ubuntu/ systemd
https:/