summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/allocator
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2026-11-18 17:31:47 -0800
committerJakub Kicinski <kuba@kernel.org>2026-11-18 17:31:47 -0800
commit343869114a18446ea49d0c6e8f2983ae8b84d9d2 (patch)
tree436b60f5db167473ce9ae1d062a6b5351c95a736 /rust/kernel/alloc/allocator
parent342e62fd34c2674e82bffc89cb5c7091924986d9 (diff)
parent8ddd3a1c207f2f777f01d02110e556a187da73c6 (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 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions