]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-link.c
network: stop to assign UUID when reconfiguring link 17707/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 24 Nov 2020 06:47:13 +0000 (15:47 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 2 Dec 2020 11:31:39 +0000 (20:31 +0900)
commit59c31eba497164d7d1bd1271af8798008ae60e9a
tree4a0e80bf4ec54fc73c5adbba610109add9954737
parentf63e09ef752ab0a4ad75c41246dc3a9a07eef2d8
network: stop to assign UUID when reconfiguring link

This fixes the following race in reconfiguring link:
1. an interface requests UUID.
2. the interface is reconfigured and link_configure() is called.
3. sd-lldp client is started on the interface (it is enabled by default).
4. networkd acquires UUID, and get_product_uuid_handler() calls
   link_configure() for the link again.
5. link_lldp_rx_configure() fails to set ifindex for already running
   sd-lldp client.
6. the link enters failed state.
src/network/networkd-link.c