From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-4318.protonmail.ch (mail-4318.protonmail.ch [185.70.43.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C9D03EF0B1; Thu, 5 Feb 2026 15:10:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770304240; cv=none; b=NcOJztmvbIwf+GKSJ6iaA2XU/t5/3qRXXv/3CxnR2gI1cj7NgjuAmtsWl5wWcPLeD55SMbCpZ7zD+DxstPaoNT16xIgt0UnqHb4Uaes01FsGmyaVQmse7GY7b46sNEqTppZKB4pFC+ce6Yp5a/6kTq5tS5LC8kMGs6to13ZYwN0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770304240; c=relaxed/simple; bh=+/oooh7MkEq7+wpFfViAxh7pOdpoD2uyi0gMO2YAsJo=; h=Date:To:From:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=FS6l89eOVj0rZ/oirDDfXRc8CY0hw2+WsPbKjc/w95/bDv5hJCkXVfua8evtfk/4xBc0XmbVUrfOoC01IALI0tstLWuN6foCAt3FIyWS9UrCT+Ez1A8T2LX5gfL2WWgJizamzn0+RC14cZ/NnAfRPPg/b3u9TmXOhfiCHRLoNJo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=1g4.org; spf=pass smtp.mailfrom=1g4.org; dkim=pass (2048-bit key) header.d=1g4.org header.i=@1g4.org header.b=e73av8Cl; arc=none smtp.client-ip=185.70.43.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=1g4.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=1g4.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=1g4.org header.i=@1g4.org header.b="e73av8Cl" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1g4.org; s=protonmail2; t=1770304230; x=1770563430; bh=IUi/TmfOR7R158ie7wFHBTdZ1FO3LNQ2s6W4AfG5OYM=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=e73av8ClCmO0qRd/gV+KttCiaMym4uCRynYrv4fE/RLOsQT22qH12+PEc80f+s4hq q8q+5KEd7vABGdIKuFHM3gt+SXT3KTpnUAbvnipk2YjrohKyySKc2mtp6Yhgp00zk9 TqDD+b5CXDenmRbjoySpavn/WRETBMebCu8SzUXhhPr0EHCV/rZv7kj+86bRDvdFH/ d8epxRSpMm4NzgCEYU5ZhXWR5dFv5LfAF41ZeJizUhM44f6/frRGZ+Z4aVQoAuvUnE VXyg3TYgZzPdfQdl99d4OlKef64YOW+HVA6Eq/UXAxEc3R1D+PHsV3epgdkjCc/QX8 rnD6oIDDMLapw== Date: Thu, 05 Feb 2026 15:10:23 +0000 To: Victor Nogueira , Jamal Hadi Salim , Cong Wang , Jiri Pirko From: Paul Moses Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Moses Subject: [PATCH net v5 0/1] net/sched: act_gate: snapshot parameters with RCU on replace Message-ID: <20260205150958.412278-1-p@1g4.org> Feedback-ID: 8253658:user:proton X-Pm-Message-ID: 5f8e9bb3f7058715a9a8b10173b59934561778d3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable This series fixes a schedule lifetime race in `act_gate` between the control-plane replace path and the running hrtimer callback (gate_timer_fun= c). Changes since v4: - Drop the gate_clockid_to_offset helper, validate clockid once, and set tk_offset in one place. - Seed missing attrs from the old params when entries are replaced - Reimplemented the timer cancel from RCU snapshot and cancel before taking= tcf_lock. - Reuse a single protected deref under tcf_lock - Compare old/new values directly in gate_timer_needs_cancel() - Cleanup no longer assumes rtnl_lock Paul Moses (1): net/sched: act_gate: snapshot parameters with RCU on replace include/net/tc_act/tc_gate.h | 33 ++++- net/sched/act_gate.c | 266 ++++++++++++++++++++++++++--------- 2 files changed, 228 insertions(+), 71 deletions(-) --=20 2.52.GIT