Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=195.10.208.47 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796383790; b=jSbKYUYBUtP/U9Vz+lHs0tjPn9+ItHa9+LY1Rix1SyuVqgT7DMkWJRZFY6lAYrxNs+gk oFA4ChSKi67YsOGsWkmUbTIJ1hd9AA5Gr3Yj41aypO5UwtaAlqYNy7XruQ20OpA5FmtDr d0kqzHaZCASnW9Nw5x9/0uo+0rt+831wTwJmXav6Erpc445slYgck/Vmt0jVBR/oqNbow bPhvy22a4Zsi27lhgsLY7at2UJaCtrkoz6hjI4mlApOPAG9lq1DlEMeyN66DgUuuO57re HSFiltJiBwUpO2n3ycDpSNo81slwvX2iX6tOqMCyqVA30JvrAMMA2esbKyK/P9QOQBw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383790; h=DMARC-Filter:Received:DKIM-Signature:From:To:Cc:Subject:Date: Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding: X-Rspamd-Queue-Id; bh=DCCnSEjpYbAikKuwz+jNvXox2kZqEC9RYXvMW6EZkL0=; b=eu3AYBQ/ZY2/hs+F+j568d07s1JQt+gVErGwXwAyNZCwEflZ+F5rv4D2Nkl5OsULgSff BunAw8z3Ern0wL9bQYuZh+rvb8elZdDfd6mdfPhYWg+/SMWhxays9l6b4B/Wf3p4mkS2B O4zKVEf2F/V0f6t1fKAgADY3SBOEiKqkO/rsUv1c+q7L2AyhPA/vgiVFsGvNB2tyoq7+q OEZpB1HppvaLbrhcfKslYmsj6horVnN36OyN2Jy9CpQQoUgCUZ5KzPYj1yhf8qx7ee07E rK0XTXcqSI9xVjSc50rqhP3GUMqvaBiQcK5qmLANlG3EkKB31V68zjUgW8i6vCvyyFQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=mandelbit.com; spf=pass smtp.mailfrom=mandelbit.com; dkim=pass header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=hIJh9D3O; arc=none smtp.remote-ip=195.10.208.47 Received: from mout-b-107.mailbox.org (mout-b-107.mailbox.org [195.10.208.47]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 81223606A322; Fri, 4 Dec 2026 11:29:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 81223606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mandelbit.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mandelbit.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=hIJh9D3O Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-b-107.mailbox.org (Postfix) with ESMTPS id 4jgq5v6Q87z3yNC; Fri, 04 Dec 2026 12:29:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandelbit.com; s=MBO0001; t=1796383779; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=DCCnSEjpYbAikKuwz+jNvXox2kZqEC9RYXvMW6EZkL0=; b=hIJh9D3OBZpOF3raeXfVIe9pFQNBdz0EUS5KUCL9Ek63mTrxqxtoh8v2ipESo6ZO5AtxPp lwleLMqLg5rMy0ijjcFASfTQoQJhxxKYANIDP6I31lkZj4rgBDOkjoZinKgxWbi1a0eW2y iywUlIM/n1IXjlOdhlP8sT6qXFgT7wWUgF3CDw5peKP2aI1Vg8S4KkgyD9ZDivRCG/pMh7 n+XxMxQsLZtEMOpOA652Gqrd+nQnxwYiCrk4eIULRDR8GLnBSkh8YOOr6OhAPbC2SbsKkF SARVMmkFdo3CxQJ2R1rgXhmRHV/L1DtCKnApgwtnGsV/9gE5Pz1kuvu/w6k5EA== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of ralf@mandelbit.com designates 2001:67c:2050:b231:465::1 as permitted sender) smtp.mailfrom=ralf@mandelbit.com From: Ralf Lici To: netdev@vger.kernel.org Cc: David Ahern , Ido Schimmel , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Willem de Bruijn , Simon Horman , linux-kernel@vger.kernel.org, David Ahern , Andrea Mayer , Antonio Quartulli Subject: [PATCH net-next 0/2] ipv6: move superseded pcpu dsts to the uncached list Date: Fri, 4 Dec 2026 12:29:26 +0100 Message-ID: X-Mailer: git-send-email 2.56.1 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4jgq5v6Q87z3yNC Hi, When rt6_get_pcpu_route finds that the per-CPU dst of a route using a nexthop object is stale, it calls dst_dev_put on it, so the packets of holders that have not checked it again yet are dropped. IPv4 fixed the same problem by putting such routes on the uncached list in commits 5018c59607a5 ("ipv4: fix race condition between route lookup and invalidation") and ae89f2724db1 ("ipv4: route: don't blackhole in-use routes when retiring fnhe routes"). In IPv6, membership in the uncached list also tells the callers of RT6_LOOKUP_F_DST_NOREF lookups whether they own a reference, so patch 1 bases the ownership on the flag alone, as Ido suggested [1]. Patch 2, from David's series [2], then puts the stale dst on the uncached list and drops the slot's reference after a grace period. Both are needed by the respin of "ipv6: tie dst validation to the lookup that returned the dst" [3], which replaces the per-CPU dsts of all routes this way. [1] https://lore.kernel.org/netdev/20261202161942.GA2800642@shredder/ [2] https://lore.kernel.org/netdev/20261201174021.7211-3-dsahern@kernel.org/ [3] https://lore.kernel.org/netdev/cover.1795537128.git.ralf@mandelbit.com/ Thanks, Ralf Lici Mandelbit Srl --- Changes to patch 2 since David's v3 [2]: - Drop the slot's reference after a grace period. - Drop the comment and the Fixes tag. (Ido) David Ahern (1): ipv6: keep a superseded pcpu dst working until its holders notice Ralf Lici (1): ipv6: base dst ownership on RT6_LOOKUP_F_DST_NOREF only include/net/ip6_route.h | 7 ++----- net/ipv6/route.c | 36 +++++++++++++++++++++++++----------- net/ipv6/seg6_local.c | 2 +- 3 files changed, 28 insertions(+), 17 deletions(-) base-commit: 8a3d0368f58e34e34d402718c7655811902a6bd4 -- 2.56.1