Re: [PATCH net v8 1/1] net/sched: act_gate: snapshot parameters with RCU on replace
From: Victor Nogueira
Date: Fri Feb 27 2026 - 08:34:10 EST
> The gate action can be replaced while the hrtimer callback or dump path is
> walking the schedule list.
>
> Convert the parameters to an RCU-protected snapshot and swap updates under
> tcf_lock, freeing the previous snapshot via call_rcu(). When REPLACE omits
> the entry list, preserve the existing schedule so the effective state is
> unchanged.
>
> Fixes: a51c328df310 ("net: qos: introduce a gate control flow action")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Paul Moses <p@xxxxxxx>
Reviewed-by: Victor Nogueira <victor@xxxxxxxxxxxx>