VLAN aware bridge in systemd-networkd doesn't work anymore

Hello,

I am posting here because I am not sure which update broke the VLAN aware bridge in systemd-networkd, however based on system uptime I believe the issue occurred in the past 36 days (July 10 - Aug 15). When I enable a VLAN aware bridge the systemd-networkd service fails to start as the result of a segfault error. At the moment networkd is running with just a management and wireguard interface enabled. Please let me know if you have suggestions on how to resolve the issue.

Kernel:

uname -a                                                                                                                               
Linux doombuild 6.17.0-rc1-1-MANJARO #1 SMP PREEMPT_DYNAMIC Mon, 11 Aug 2025 03:58:01 +0000 x86_64 GNU/Linux

Systemd:

systemctl --version
systemd 257 (257.8-3-manjaro)

Glibc:

ldd --version
ldd (GNU libc) 2.42

Dmesg:

[    6.432032] systemd-network[1526]: segfault at 0 ip 00007f90647703ab sp 00007ffc110af1f8 error 4 in libc.so.6[1703ab,7f9064624000+172000] likely on CPU 0 (core 0, socket
 0)

Coredump:

coredumpctl info
           PID: 2551 (systemd-network)
           UID: 981 (systemd-network)
           GID: 981 (systemd-network)
        Signal: 11 (SEGV)
     Timestamp: Fri 2025-08-15 11:35:52 EDT (10min ago)
  Command Line: /usr/lib/systemd/systemd-networkd
    Executable: /usr/lib/systemd/systemd-networkd
 Control Group: /system.slice/systemd-networkd.service
          Unit: systemd-networkd.service
         Slice: system.slice
       Boot ID: 32e72c0867e14850a9370fe89945c770
    Machine ID: 55f2287dd1454acab5e41d1787951ebc
      Hostname: doombuild
       Storage: /var/lib/systemd/coredump/core.systemd-network.981.32e72c0867e14850a9370fe89945c770.2551.1755272152000000.zst (present)
  Size on Disk: 276.3K
       Message: Process 2551 (systemd-network) of user 981 dumped core.

                Stack trace of thread 2551:
                #0  0x00007f10f9d703ab n/a (libc.so.6 + 0x1703ab)
                #1  0x000055fe4b92b1d4 n/a (/usr/lib/systemd/systemd-networkd + 0x7d1d4)
                #2  0x000055fe4b976d39 n/a (/usr/lib/systemd/systemd-networkd + 0xc8d39)
                #3  0x000055fe4b8c79a5 n/a (/usr/lib/systemd/systemd-networkd + 0x199a5)
                #4  0x00007f10fa2ac6b9 n/a (libsystemd-shared-257.8-3.so + 0x2ac6b9)
                #5  0x00007f10fa2acdb3 sd_event_dispatch (libsystemd-shared-257.8-3.so + 0x2acdb3)
                #6  0x00007f10fa2b0239 sd_event_run (libsystemd-shared-257.8-3.so + 0x2b0239)
                #7  0x00007f10fa2b0420 sd_event_loop (libsystemd-shared-257.8-3.so + 0x2b0420)
                #8  0x000055fe4b8cf7c8 n/a (/usr/lib/systemd/systemd-networkd + 0x217c8)
                #9  0x000055fe4b8c6564 n/a (/usr/lib/systemd/systemd-networkd + 0x18564)
                #10 0x00007f10f9c27675 n/a (libc.so.6 + 0x27675)
                #11 0x00007f10f9c27729 __libc_start_main (libc.so.6 + 0x27729)
                #12 0x000055fe4b8c66d5 n/a (/usr/lib/systemd/systemd-networkd + 0x186d5)
                ELF object binary architecture: AMD x86-64

Backtrace:
Unfortunately, some to the symbols can not be read, and from my understanding this appears to be caused by this kernel commit binfmt_elf: Dump smaller VMAs first in ELF cores · torvalds/linux@7d442a3 · GitHub

(gdb) bt full
#0  0x00007f10f9d703ab in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#1  0x000055fe4b92b1d4 in ?? ()
No symbol table info available.
#2  0x000055fe4b976d39 in ?? ()
No symbol table info available.
#3  0x000055fe4b8c79a5 in ?? ()
No symbol table info available.
#4  0x00007f10fa2ac6b9 in ?? () from /usr/lib/systemd/libsystemd-shared-257.8-3.so
No symbol table info available.
#5  0x00007f10fa2acdb3 in sd_event_dispatch () from /usr/lib/systemd/libsystemd-shared-257.8-3.so
No symbol table info available.
#6  0x00007f10fa2b0239 in sd_event_run () from /usr/lib/systemd/libsystemd-shared-257.8-3.so
No symbol table info available.
#7  0x00007f10fa2b0420 in sd_event_loop () from /usr/lib/systemd/libsystemd-shared-257.8-3.so
No symbol table info available.
#8  0x000055fe4b8cf7c8 in ?? ()
No symbol table info available.
#9  0x000055fe4b8c6564 in ?? ()
No symbol table info available.
#10 0x00007f10f9c27675 in ?? () from /usr/lib/libc.so.6
No symbol table info available.
#11 0x00007f10f9c27729 in __libc_start_main () from /usr/lib/libc.so.6
No symbol table info available.
#12 0x000055fe4b8c66d5 in ?? ()
No symbol table info available.

enp0s20f0u6.network:

[Match]
Name=enp0s20f0u6

[Network]
Bridge=edge-br0

[BridgeVLAN]
VLAN=6
VLAN=160

edge-br0.netdev:

[NetDev]
Name=edge-br0
Kind=bridge

[Bridge]
VLANFiltering=1
DefaultPVID=none

edge-br0.network

[Match]
Name=edge-br0

[BridgeVLAN]
VLAN=6
VLAN=160

vlan6.netdev:

[NetDev]
Name=vlan6
Kind=vlan

[VLAN]
Id=6

vlan6.network:

[Match]
Name=vlan6

[Network]
IPForward=yes
DHCP=yes

vlan160.netdev:

[NetDev]
Name=vlan160
Kind=vlan

[VLAN]
Id=160

vlan160.network:

[Match]
Name=vlan160

[Network]
IPForward=yes
DHCP=yes
IPv6PrivacyExtensions=false
IPv6AcceptRA=yes

linux617 is a kernel series in development (PRE-PATCH). Please use either a stable or LTS release: The Linux Kernel Archives - Releases

See also here: network: Bridge member VLAN configurations lead to segfault · Issue #38515 · systemd/systemd · GitHub

Philip,

I appreciate the help. Unfortunately networkd is segfaulting while running a stable kernel release.

uname -a                                                                                                                               
Linux doombuild 6.16.0-5-MANJARO #1 SMP PREEMPT_DYNAMIC Thu, 07 Aug 2025 04:47:37 +0000 x86_64 GNU/Linux

let me know if systemd 257.8-4 fixes your issue …

Thanks! Upgrading to systemd 257.8-4 resolved the issue.

Thx, pushed to all branches …