#49104·cilium

endpoint bpf-prog watchdog doesn't check host devices — dead tcx links on eth0 went unnoticed for days

Author: lightsabitCreated Sep 30, 2026Updated Sep 30, 2026
Labelskind/bugneeds/triagekind/community-report

Is there an existing issue for this?

  • I have searched the existing issues

Version

equal or higher than v1.19.8 and lower than v1.20.0

What happened?

k3s cluster, Raspberry Pi 5 control-plane node, arm64, kernel 6.12.75, kubeProxyReplacement, VXLAN tunnel, host firewall off, devices "eth+ enp+ wlan+".

The agent attaches cil_from_netdev/cil_to_netdev to eth0 over tcx on startup, but on this box eth0's links keep dying. First noticed after a 2026-09-24 restart: the log showed them attached, "Unpinned defunct link" twice in the first four minutes, re-attached, then dead — and nothing for three days while the agent sat green. Restarted the agent again and watched the same thing happen inside four minutes.

The programs aren't unloaded, the links are just detached (bpftool output under "Relevant log output"). Pins still in bpffs, wlan0's links from the same restart are fine, cilium-dbg status Ok throughout. So the host-device datapath on eth0 is silently gone while every health signal stays green.

The node runs the endpoint bpf-prog watchdog, which is supposed to catch exactly this, but it only walks endpointManager.GetEndpoints() — pod veths. Host devices are never checked. Three days of 30s ticks, nothing.

I poked at the obvious fix: DeviceHasSKBProgramLoaded() already works for any device, so detection is easy. But calling orchestrator.Reinitialize (via a runtime config change) doesn't re-attach them either — it seems to skip host devices when the node config didn't change. So the heal path is missing too, not just the check.

Expected: the watchdog should notice detached host-device links and re-attach them, or at least log; with kubeProxyReplacement these programs are the datapath on that interface.

How can we reproduce the issue?

  1. Install cilium (helm) with at least: kubeProxyReplacement=true routingMode=tunnel tunnelProtocol=vxlan devices="eth+ enp+ wlan+" on a kernel with tcx support (6.6+). Verify the tcx links: bpftool link show should list tcx ingress/egress links on the devices.

  2. Detach the host-device links — on my Pi this happens by itself within ~4 minutes of an agent restart (root cause of the spontaneous detach unknown); anywhere else bpftool link detach <id> on the cil_from_netdev/cil_to_netdev tcx links gets you the same state.

  3. bpftool net show dev eth0 — tc section now empty; bpftool link show — the two tcx links read "ifindex (detached)".

  4. Wait. The endpoint bpf-prog watchdog never fires; cilium-dbg status stays Ok indefinitely.

Cilium Version

v1.19.1 (helm chart 1.19.1, image quay.io/cilium/cilium:v1.19.1) — not listed in the dropdown; all evidence above captured on this version. Happy to retest on 1.19.8 if needed.

Kernel Version

6.12.75+rpt-rpi-2712 aarch64 — Raspberry Pi 5, Debian 13 (trixie). Note: this kernel ships without BTF (/sys/kernel/btf/vmlinux missing), so my config has socketLB and BPF masquerade disabled — shouldn't matter for the tc/tcx path but noting for completeness

Kubernetes Version

v1.35.8+k3s1 (k3s, 10 nodes, mixed arm64/amd64)

Regression

Not sure it ever worked — this cluster has only run 1.19.x (1.19.1 since June); first noticed the behavior on 2026-09-24. Not calling it a regression.

Sysdump

cilium-tcx-evidence-sanitized.zip

Relevant log output

bash
# bpftool net show dev eth0
xdp:

tc:

flow_dissector:

netfilter:

# bpftool link show
1828: tcx  prog 40772
	ifindex (detached)  attach_type tcx_ingress
1829: tcx  prog 40773
	ifindex (detached)  attach_type tcx_egress

# progs 40772/40773 are cil_from_netdev/cil_to_netdev, loaded at agent
# start the same day. Pins still present in bpffs. Agent log around
# startup: two "Unpinned defunct link" lines in the first ~4 minutes,
# re-attach, then the links detach again and nothing further is logged.

Anything else?

Refile of #49058 (closed, maintainer asked for this template) — same report, same reporter.

Related: #47847, #48695, #46065.

Detection looks cheap: DeviceHasSKBProgramLoaded() already works for any device. The heal path is the harder half — orchestrator.Reinitialize skips host devices when the node config didn't change, so even a detected detach has no re-attach path short of an agent restart.

Cilium Users Document

  • Are you a user of Cilium? Please add yourself to the Users doc

Code of Conduct

  • I agree to follow this project's Code of Conduct