Skip to content

segfault on setting a static IPv6 address on a Wireguard interface #595

@timovanroermund

Description

@timovanroermund

I ran into the following issue: dhcpcd is segfaulting due to this entry:

interface wg0
	static ip6_address=2001:db8:0:20::1/64

It tries to configure a static IPv6 address and prefix for the Wireguard interface. Such configuration works without issues for my Ethernet interfaces; but on the Wireguard one, it causes a segfault and I see the following in my syslog:

systemd[1]: Started dhcpcd.service - DHCP Client Daemon on all interfaces.
systemd[1]: Starting networking.service - Raise network interfaces...
kernel: e1000e 0000:00:1f.6 lan0: renamed from enp0s31f6
kernel: r8169 0000:01:00.0 lan1: renamed from enp1s0
kernel: r8169 0000:02:00.0 wan0: renamed from enp2s0
dhcpcd[916]: lan0: waiting for carrier
kernel: Realtek Internal NBASE-T PHY r8169-0-100:00: attached PHY driver (mii_bus:phy_addr=r8169-0-100:00, irq=MAC)
dhcpcd[916]: lan1: waiting for carrier
dhcpcd[916]: lan0: waiting for carrier
dhcpcd[916]: lan1: waiting for carrier
kernel: r8169 0000:01:00.0 lan1: Link is Down
kernel: e1000e 0000:00:1f.6 lan0: entered allmulticast mode
kernel: r8169 0000:01:00.0 lan1: entered allmulticast mode
kernel: wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
kernel: wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
dhcpcd[916]: wg0: waiting for carrier
dhcpcd[916]: wg0: carrier acquired 
dhcpcd[916]: wg0: IAID 77:67:30:00 
systemd[1]: dhcpcd.service: Main process exited, code=killed, status=11/SEGV
systemd[1]: dhcpcd.service: Failed with result 'signal'.
kernel: show_signal_msg: 108 callbacks suppressed
kernel: dhcpcd[915]: segfault at 8 ip 000055840940a068 sp 00007ffd11d8b760 error 4 in dhcpcd[35068,5584093de000+41000] likely on CPU 7 (core 3, socket 0)
kernel: Code: 10 01 01 00 31 c9 48 89 df e8 d4 f8 ff ff 48 85 c0 0f 84 cb 00 00 00 48 8b 93 f8 00 00 00 48 c7 00 00 00 00 00 31 f6 48 89 c7 <48> 8b 4a 08 48 89 48 08 48 89 01 48 8d 0d 26 d9 ff ff 48 89 42 08 

I can assign the same address to the interface via other tools (e.g., ifupdown) without any issue.

The following issue may be related: #224

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions