Article View: linux.kernel.netdev
Article #19236Re: [PATCH net-next v3 2/3] ipv6: return EMSGSIZE when first route in dump does not fit
From: David Ahern
Date: Thu, 19 Nov 2026 15:51
Date: Thu, 19 Nov 2026 15:51
23 lines
8833 bytes
8833 bytes
On 11/17/26 4:13 PM, Stephen Hemminger wrote:
> If a route does not fit in an empty dump skb, fib6_dump_node()
> suspends the walker and inet6_dump_fib() returns 1.
> rtnl_dumpit() then returns skb->len, which is 0, and the dump ends
> with NLMSG_DONE and status 0, silently dropping the route and those after it.
>
> This became reachable when multipath routes started being dumped as a
> single message with an RTA_MULTIPATH attribute; a wide enough route no
> longer fits.
>
> Return -EMSGSIZE in this case, as IPv4 does. This depends on the
> rtnl_dumpit() fix in the previous patch.
>
> Fixes: beb1afac518d ("net: ipv6: Add support to dump multipath routes via RTA_MULTIPATH attribute")
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> Reviewed-by: Ido Schimmel <idosch@nvidia.com>
> ---
> net/ipv6/ip6_fib.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
Reviewed-by: David Ahern <dsahern@kernel.org>
Technical Details
Message-ID:
<54447dd9-50ca-43ac-911c-3265be2c1b7c@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367130-linux-kernel-netdev=dewy.ruReferences:
<20261117221538.184948-1-stephen@networkplumber.org> <20261117221538.184948-3-stephen@networkplumber.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367130-linux-kernel-netdev=dewy.ru From: dsahern@kernel.org (David Ahern) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v3 2/3] ipv6: return EMSGSIZE when first route in dump does not fit Date: Thu, 19 Nov 2026 08:51:11 -0700 Organization: Usenet Network Message-ID: <54447dd9-50ca-43ac-911c-3265be2c1b7c@kernel.org> References: <20261117221538.184948-1-stephen@networkplumber.org> <20261117221538.184948-3-stephen@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="2916359"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:JeiOYJu5leXR6D5NfqLhLO8UnRM= sha256:smAb5Yq4AU8UnX+ZRmjcGHj4S2cQvBDBtkochIoQ8eM= sha1:O66benyBuHTDDxqTYkYm4+ee5hU= sha256:NUBgXktKUAfdz6E6RrE3kv4PkXcDvo4CUuIj3RTph0s= Content-Language: en-US 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 865E01156CD; Thu, 19 Nov 2026 18:51:28 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org 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 hriH9a5YtJrY; Thu, 19 Nov 2026 18:51:25 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-367130-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 820F511564F; Thu, 19 Nov 2026 18:51:17 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 51322C01FB; Thu, 19 Nov 2026 15:51:15 +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=1795103473; b=haVVm7QjPKHpuQxNCsYWHCU+er3HsF5u4GAXrfY09agByAJoJS3JyI21g0O1K8ofwbDx dxvb6olbRr7Uf6A+3DCj8Yosts2DQlVPhPLEvP6yqlAUwmXT2vx/iKHOz4aFq1vxGgLB5 4pz4HG/3Da7mu5AGeNYRScoZymJLdQHpaqunUya69MBSt/4qmHgvo4b+qi94KW/QA3Ju6 uO1ccMVTep7fgeXhJk3rTtC599+RdhCRwPmhv6QpaiROSHDia5EagUS6yTP/kHqkIpase UxqEyLlr/nIaIWap1gnp2jFwxvnZrR+hSCgAC8aSLdOojyZKP8uNIrZgN4vt3x7L+oQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795103473; h=X-Original-To:Received:Received:DKIM-Signature:Message-ID:Date: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent: Subject:Content-Language:To:Cc:References:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=mNv9duDmdr+E+4uwAAITXj6VkyKFirznqkpw8zttkrs=; b=qy7I5swFpAjRJC+RsH5Ky6ZVqwAZ49j8CdtQAKMmq/LIUHMLpDZu7Re7gbHuYOnpuVRs mDdRS8fy0r77iSOXad14Zn8fqSCpJdTYQCcY1V3ylzod6chsprjksz2wpcIg1dgWAsoMa kDGoL6MBKE48p+xjV6FuVibe/DAuiU8UDfoUTSMxmPz3wvCvaQom/ugIRCrgvHfSfvyfg d8gSA+hkoz99hi9+my98TR9/uObEYYP694GMc/Ev2PP6cQkKgupmBgMAJbYoocJ50i79q M2ZUCRvVdp07a+vFuLOPbfs92RzFqaiRhlnyyOyxC+Funsz0+y1LLeQnkOKkpi4MNRw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ZRbBS8xd; 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 21BCD606A331; Thu, 19 Nov 2026 15:51:13 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ZRbBS8xd X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795103472; b=MDaAd5BFMUUebSVx30yWEGRQ9sQ2KlhZL1iSOJCql82KdzR+qWYji8Wx2ZkGmmpIjN+v 6o+EcyeBsvwM7pAR2Tgh1+7qNujEL3Z2rmX8x5CR/6zYPzlZ8yg83YwK49EPeFp6vqN97 C4ZfvuwJ/aL0XroJ68FwjL7D/8VlTz1D1+xOfsMbjo9YwyifYVWXHTjL1rlbbGIlizu32 mh7iEOaDqb4cmNY2Lepwq28ZupAw+i1DnaTzon9i6D3ntwSLiqIkni+XJ8ICmnrK1X1Wv IRv+cS2cKSZF1JE8lJKvoNLGRxPlvZbBEwIwYRA83z339T2x+fWNzEAI2h8f0PNiQPQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795103472; h=Received:DKIM-Signature:Message-ID:Date:MIME-Version:User-Agent: Subject:Content-Language:To:Cc:References:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=mNv9duDmdr+E+4uwAAITXj6VkyKFirznqkpw8zttkrs=; b=fDhlXhnmB9EV5mhtyXh1iz4i27BGRlDpJoBkDwzN0KlS1F8uA50zsbg//0IAYQOwF9M5 +oUX3RcxQWvgKa3O8GEqAtjcbClhzzFv1qPU6EMknEBy7KHyNe1k8UAq1HcB/77rGrcv7 OLJZwSSTkGVCX1L86jHI/otfaMKjRZtQA5cJr6QbrSQReMujt0ppltxrCJWlicKwSSdGF mEyv0784KZDjZVkwCnGQJGYHHErGA4Lr388q+Gfc6bZc+uyxFXdoWPFvppXypp/migcoO Lp+xDS8fZ2TXZaL9xM0eBISeZima7XtbpMkn7y0h8vI++coHvnviAVwSSKAcUD2Kk9A== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ZRbBS8xd; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C2B8606A320; Thu, 19 Nov 2026 15:51:11 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D4F21F000C4; Thu, 19 Nov 2026 15:51:11 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795103471; bh=mNv9duDmdr+E+4uwAAITXj6VkyKFirznqkpw8zttkrs=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=ZRbBS8xds1TFSwEY66JPeKQGLj0dN8kCfuhUO25psxbI+zXc9Q9usiM08yNB1IRJm oHWCPHw6e1Weob6ETcz7k8VqRYYzapPI3b3puSoi3XwyXYo8gIRt1sX9Yit9h/X2Bd sRWVAz4XGMTWsoz1iHhmI1fvTYJzgy9xSlEflKZY3IWxaDe+m32cxqW9+O756Ixa7f /87vnIO88PKAZm+NWGu3l6g7fcOcCCCrIsuAgEBW4Ah0O0H0APa2Kr8NOV1aoWPNPV IabWt01yHbtrAfYrP3Djice+W/rV0PSe5PvdLVQeV4mnfZZ7Hzrq81Z6PdD1dl0ZP3 GB5rUa1wkUJkg== 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-User-Agent: Mozilla Thunderbird X-Cc: 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>, Simon Horman <horms@kernel.org>, open list <linux-kernel@vger.kernel.org> X-In-Reply-To: <20261117221538.184948-3-stephen@networkplumber.org>