Skip to content

Close G5b: Hybrid XDP detach detection - #24

Merged
fxdv merged 4 commits into
mainfrom
harden/g5b-xdp-detach
Jul 21, 2026
Merged

Close G5b: Hybrid XDP detach detection#24
fxdv merged 4 commits into
mainfrom
harden/g5b-xdp-detach

Conversation

@fxdv

@fxdv fxdv commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Attach the XDP admit-shed via netlink so it stays visible to IFLA_XDP / ip link (and detachable with ip link set … xdp off).

  • link_alive() checks iface existence and the current XDP program id; Hybrid RCU heartbeat drops the shed and falls back to the userspace bucket on detach/replace.

  • Veth smoke coverage for admin xdp off; threat-model G5b marked mitigated.

  • I have read CLA.md and certify my contribution under Apache-2.0 OR MIT

Test plan

  • cargo check -p demiurge-dataplane -p demiurge-router
  • Linux Track B: ./scripts/xdp-veth-smoke.sh (includes xdp_admit_shed_detects_admin_xdp_off)
  • Confirm Policy / Verify / Track A / Track B / Spec green

fxdv and others added 4 commits July 18, 2026 14:37
Attach the admit-shed via netlink so IFLA_XDP remains visible, and fail Hybrid back to the userspace bucket when ip link xdp off clears the program id.
ip link xdp off only clears driver mode; use xdpgeneric off (and matching netlink flags) when the shed attached via SKB fallback.
@fxdv
fxdv merged commit f515793 into main Jul 21, 2026
5 checks passed
@fxdv
fxdv deleted the harden/g5b-xdp-detach branch July 21, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant