diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2026-11-18 17:31:47 -0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-11-18 17:31:47 -0800 |
| commit | 343869114a18446ea49d0c6e8f2983ae8b84d9d2 (patch) | |
| tree | 436b60f5db167473ce9ae1d062a6b5351c95a736 /tools/perf/scripts/python | |
| parent | 342e62fd34c2674e82bffc89cb5c7091924986d9 (diff) | |
| parent | 8ddd3a1c207f2f777f01d02110e556a187da73c6 (diff) | |
Merge branch 'amt-relay-tunnel-lifetime-validation-and-request-path-hardening'
Omar Ramadan says:
====================
amt: relay tunnel lifetime, validation and request-path hardening
This series hardens AMT relay tunnel lifetime, validates gateway input, and
keeps unauthenticated Requests from consuming relay state. The problems
fixed by patches 3 and 4, and the pre-Query drop in patch 5, were found
during the AMT IPv6 outer transport work, which is not included here.
I am using the existing IPv4 AMT relay and gateway implementation in a
multicast delivery network, where gateways on access networks send IGMP/MLD
membership state through a relay to reach downstream receivers.
The first patch detaches the receive path before amt_dev_stop() tears down
events and tunnels, so no receive-path reader can queue work after the
teardown. The second closes the gc_wq re-arm use-after-free, the double
free of a tunnel when amt_dev_stop() races amt_tunnel_expire(), and the
group/source timer-work lifetime bugs, makes teardown safe for RCU
readers, and bounds the nodes parked for garbage collection. The third
rejects Queries and Data from 0.0.0.0 before relay discovery and
revalidates deferred Queries. The fourth requires exactly four bytes for
IFLA_AMT_LOCAL_IP and IFLA_AMT_DISCOVERY_IP. The fifth makes pre-Query
drops visible, avoids counting successful reports as drops, and uses
concurrent-safe TX statistics. The sixth keeps Requests stateless,
authenticates Membership Updates and checks their IGMP/MLD message before
allocation, keys state by address and port, bounds per-source admission
at a share of max_tunnels, and silently drops failed endpoint admission.
Each commit message says how its problems were found. The problem in
patch 4 was triggered while writing an IPv6 selftest; the others were
found by review or code inspection.
====================
Link: https://patch.msgid.link/20261110210538.217936-1-omar@blockcast.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
