Article View: linux.kernel.netdev
Article #26904[PATCH net-next 0/2] ipv6: keep fib6 node serials from going backwards
From: Ralf Lici
Date: Fri, 04 Dec 2026 11:28
Date: Fri, 04 Dec 2026 11:28
43 lines
10297 bytes
10297 bytes
Hi, Two writers can give a fib6 node a serial older than the one it had, or one that fib6_new_sernum never allocates: ip6_link_failure writes -1 into the node of a default route, and fib6_flush_trees allocates its serial before walking the tables, so it can overwrite a newer serial stamped by a concurrent route change. Validating dsts by comparing serials by age, as Ido suggested [1], needs node serials to only move forward, so both writers have to be fixed before the respin of "ipv6: tie dst validation to the lookup that returned the dst" [2]. Patch 1 stamps the default route node with a fresh serial on link failure, and patch 2 allocates the flush serial under each table's lock. [1] https://lore.kernel.org/netdev/20261203153447.GA3201592@shredder/ [2] https://lore.kernel.org/netdev/cover.1795537128.git.ralf@mandelbit.com/ Thanks, Ralf Lici Mandelbit Srl --- Changes since v5 of "ipv6: tie dst validation to the lookup that returned the dst" [2] - Send 1/4 separately, without the Fixes tag. (Ido) - Add the fib6_flush_trees fix. (Ido) Ralf Lici (2): ipv6: stamp the default route node with a fresh serial on link failure ipv6: allocate the flush serial under each table's lock net/ipv6/ip6_fib.c | 13 ++++++++----- net/ipv6/route.c | 18 ++++++++++-------- 2 files changed, 18 insertions(+), 13 deletions(-) base-commit: 8a3d0368f58e34e34d402718c7655811902a6bd4 -- 2.56.1
Technical Details
Message-ID:
<cover.1796382778.git.ralf@mandelbit.com>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377306-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377306-linux-kernel-netdev=dewy.ru From: ralf@mandelbit.com (Ralf Lici) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next 0/2] ipv6: keep fib6 node serials from going backwards Date: Fri, 4 Dec 2026 12:28:02 +0100 Organization: Usenet Network Message-ID: <cover.1796382778.git.ralf@mandelbit.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2750819"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:k7mB4+A4NJgHv5DfceYaYiL85kU= sha256:ywJJKAb1saEHqytpm9DOMIUd64JVbg3a415LwF9bCek= sha1:vBs20JmwAeOnLnO/A970nYy0XiY= sha256:euT9EmBFFSytXyiWHZ8SASatf2PlQdrH1qB5NxYGsi8= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 5BB5F117BCF; Fri, 4 Dec 2026 14:28:57 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.298 X-Spam-Status: No, score=-3.298 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=mandelbit.com X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RK7OG2d17U0C; Fri, 4 Dec 2026 14:28:53 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-377306-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=mandelbit.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 5E766117BB8; Fri, 4 Dec 2026 14:28:42 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 238003A908; Fri, 4 Dec 2026 11:28:35 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796383713; b=lQ6Xip7eMuKwrecwXfJ5CYh38hRo+8XPqoF88nIhU8ACxoMmTI76+eqU9qabKGynkRqc MmHgj7MKw8K6VnGhI7llpAHuIS+0xFVBpe+B3UVK9xExv3jvOZFOWsiIxHe4/cKTHjQo+ N9705VqY9ySALj9vQUivFF/Jq40009iTZAyl/kH3N1fCDyx1YIt0lc5cPTGzxdEoL6h5P R0hxbODVBt15p4YpCEqrvO4ot2k2quDuBvlac08Un4EthNseQmRKeJZOPRuHqTG6Amgfi LBwdm40PV5I99SgEBVbDWgl87TfbqLiD7a582lcHqHxlf4fVs0nojsReNgWpsWoTVyg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383713; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:From:To: Cc:Subject:Date:Message-ID:X-Mailer:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Transfer-Encoding:X-Rspamd-Queue-Id; bh=u0AQVXAHY5HQBnxteID2Byy7SANe09Y7HqIRZA9dtlI=; b=pfQzAwLnSH6qJ6vq4VzK4K8g9OboLTrVadj0r0I1vUV2mnQ12bMKlLOZAX3T/WP3Rx+1 mdQQ/m8zAUdWXRQR0Dg07EvQ12yDh6884xI8bdCQdyRJTY2PY62cdB3Jou44T0L64Zmln JbzlIC7jiNFT/CG1owfooFglPkni4LQ5Zoq2NoT7zfZETr0wXWcNUiy59OFMUzqDIeC74 VDjqd0OAbyhH0tJFJ+oQ4FQx6J7Pd3HJhujA7LsUjUs909VSZFJkZ0LUb6LWQDX2lB1GM N2CVXxc9ZT9l2k080ZFBBJdsem9llfiwez5KcHnpjHZLQEQGZJDc9cSLuBEn95vM/7Q== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=vq7hsaP2; dmarc=none header.from=mandelbit.com; spf=pass smtp.mailfrom=mandelbit.com; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 406D3606A691; Fri, 4 Dec 2026 11:28:33 +0000 (UTC) X-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=vq7hsaP2 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=195.10.208.51 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796383712; b=XHcuQ35J6DGFyXKR/wzPLlf0qPK9aI+2RRnh331IuMZ1YuaKndCtrN9Foom/9zxBYcHP 94fNx/DWKMFdRdsmjsEyJe/pULL5jY9z69PJtb+OIvW+4TCXtLav4zPQjZVM5myTJRv5m ZFvDK3f08CRKm7Idz/Z2tRJ+uj/QBrck72DV5Mqz6TBZx0hAGNJBS/zExEYd7eCPCTkRg Okwo3dxwhR6Zgy6Fp7qaYJHE0SEpP/HTIytnEOaQziAXUxhjBe7iWR0QE1XY5r46r/t8D Sv4NTnTz1XeXxC78j1/HUifPRnn6bUknNoxfAbFlyUyPwv3mylR625JDVJvAa8hvj9A== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383712; 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=u0AQVXAHY5HQBnxteID2Byy7SANe09Y7HqIRZA9dtlI=; b=XM+2HDcSg2ai8OKlFYLcDN0dCuYr4bOUXeGkS20TMCh0Yfl3gKkTvU+5XB37CZE4bCqn 04Gv33WruTBzsKLcJkvxDPSGIj5bPhM5fQ+LukMSbVxw7CuCBm0+5vWnwGDo/0xrRP7hm HryOwdo40mwpPi3as3lzr+/vUKnie/eo+Grd2r+iDYOy9xr5kyUq805ChVOBFwDaSTsCy uX6KDOSfkMm3V334++ROl4v0XTX+AklRmyPpS5nfi8gK2reNlpYu8etxAsQE9SdPK/d0I dDTWFFkw9Yk5HSelqSgUBWZhFHg+oxkS+LuHc7wOP+SCnOIYm9oLEr5/NtIPQRpbryw== X-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=vq7hsaP2; arc=none smtp.remote-ip=195.10.208.51 X-Received: from mout-b-206.mailbox.org (mout-b-206.mailbox.org [195.10.208.51]) (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 6E07C606A32D; Fri, 4 Dec 2026 11:28:30 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6E07C606A32D X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mandelbit.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mandelbit.com X-Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (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-206.mailbox.org (Postfix) with ESMTPS id 4jgq4M4MdMzjP; Fri, 04 Dec 2026 12:28:19 +0100 (CET) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandelbit.com; s=MBO0001; t=1796383699; 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=u0AQVXAHY5HQBnxteID2Byy7SANe09Y7HqIRZA9dtlI=; b=vq7hsaP2QdexsjiaRb1fT4f6fmICV4FCS6CAc7dwpic5C+wwkvwRqBT283NTazuIToS28d BiuLVc02A1gOnl8aiMQl3UYtEOFC0Bzp7w1FIH+2P9M3xKDARVXlWPZH3DdDbkzxs17apy k9peaZXbHlwzUM8xxVMzdjVswQe0FOTqZcDZSSmM3iLjBVgh10cKMhIpqc8rm8IX+J1BMF o3x1MIn0VdHBuP/tmNoACip72152WjSyHQI0p/eQOuc2QhY/b/y8fQRNpehSpcDikbSN1F cem7QZUqAvObp9pw3pqik/VwJntwR8Qj/3xpOYZMx1OiysigdLBw+LdhSGdhqw== X-Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of ralf@mandelbit.com designates 2001:67c:2050:b231:465::102 as permitted sender) smtp.mailfrom=ralf@mandelbit.com X-Cc: David Ahern <dsahern@kernel.org>, Ido Schimmel <idosch@nvidia.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Willem de Bruijn <willemb@google.com>, Simon Horman <horms@kernel.org>, linux-kernel@vger.kernel.org, Antonio Quartulli <antonio@mandelbit.com> X-Mailer: git-send-email 2.56.1 X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-Rspamd-Queue-Id: 4jgq4M4MdMzjP