fix(xdp): verifier padding, synchronous detach, percpu stats; add netns stress harness

Found by running the netns smoke on a real 5.15 KVM node:
- throttle_entry implicit padding rejected by the verifier (clang 14)
- XDP program left attached after the edge exited
- rampart_xdp_* gauges always zero (percpu_array read with lookup)
- RUST_LOG could not raise rampart above info
Smoke now keeps the origin inside the netns and polls for ban expiry.
This commit is contained in:
Loki 2026-11-21 15:10:37 +01:00
parent 987ccec905
commit d68b45e2b8
Signed by: boba
GPG key ID: 6CDE87BC9A778D97
11 changed files with 268 additions and 27 deletions

View file

@ -77,6 +77,10 @@ struct conntrack_entry {
struct throttle_entry {
__u64 window_start;
__u32 hits;
/* Explicit padding: the verifier rejects helper reads of uninitialised
* stack bytes, and implicit padding is not zeroed by the compiler. The
* struct size (16) is unchanged. */
__u32 pad;
};
/**